:root {
  --encre: #221C16;
  --encre-2: #3A322A;
  --texte: #2A241E;
  --texte-2: #5C5248;
  --texte-3: #6F6459;
  --surface: #FFFFFF;
  --fond: #F2EFE9;
  --trait: #E3DCD1;
  --or: #B27A36;
  --or-action: #8A5620;
  --or-fonce: #6F4416;
  --or-pale: #F6EEDE;
  --valide: #2F6B45;
  --attente: #855C10;
  --refus: #A0352A;
  --focus: #2F6FED;
  --rayon: 10px;

  --gris-repere: #9B9184;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

*, *::before, *::after { box-sizing: border-box; }
body.espace-pro {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font: 400 15px/1.6 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.espace-pro a { color: var(--or-action); }
.espace-pro a:hover { text-decoration: underline; text-underline-offset: 3px; }

.espace-pro a.bouton, .espace-pro a.bouton:hover { text-decoration: none; }
.espace-pro h1, .espace-pro h2, .espace-pro h3 {
  font-family: Fraunces, Georgia, serif; font-weight: 600; line-height: 1.2;
  letter-spacing: -0.01em; margin: 0;
}
.espace-pro h1 { font-size: 1.55rem; }
.espace-pro h2 { font-size: 1.1rem; }
.espace-pro h3 { font-size: 1rem; }
.espace-pro p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.espace-pro input:focus-visible, .espace-pro textarea:focus-visible { outline-offset: 0; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }

.rail {
  background: var(--encre); color: #CFC5B8;
  display: flex; flex-direction: column; padding: 22px 0;
  position: sticky; top: 0; height: 100vh;
}

.rail-marque {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none; padding: 0 20px 22px;
}
.marque-jeton {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--or-action); color: #fff;

  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
}
.marque-jeton svg {
  width: 21px; height: 21px; display: block;

  stroke-width: 2;
}
.marque-jeton-lettres {
  font-family: Fraunces, Georgia, serif; font-weight: 700; font-size: .98rem;
  letter-spacing: .01em;
}
.marque-texte { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.rail-marque .logo-nom {
  font-family: Fraunces, Georgia, serif; font-weight: 700; font-size: 1.03rem;
  color: #fff; font-style: normal; line-height: 1.16;
}

.rail-marque .logo-nom-long { font-size: .92rem; }
.rail-marque small {
  font-size: .64rem; font-weight: 500; color: #A79B8C;
  letter-spacing: .07em; text-transform: uppercase; margin-top: 3px;
}
.rail nav { display: flex; flex-direction: column; gap: 1px; }
.rail nav a {
  color: #CFC5B8; text-decoration: none; padding: 10px 22px; font-size: .93rem;
  border-left: 3px solid transparent;
}
.rail nav a:hover { background: rgba(255,255,255,.05); color: #fff; text-decoration: none; }
.rail nav a[aria-current="page"] {
  background: rgba(178,122,54,.14); border-left-color: var(--or); color: #fff; font-weight: 500;
}
.rail-bas { margin-top: auto; padding: 18px 22px 0; border-top: 1px solid rgba(255,255,255,.09); }
.rail-compte { font-size: .85rem; color: #fff; margin-bottom: 2px; }
.rail-mail { font-size: .74rem; color: #A79B8C; word-break: break-all; margin-bottom: 10px; }
.rail-quitter { font-size: .82rem; color: #CFC5B8; text-decoration: none; }
.espace-pro .rail a { color: inherit; }
.espace-pro .rail a:hover { color: #fff; }

.travail { padding: 0 0 60px; min-width: 0; }
.barre {
  background: var(--surface); border-bottom: 1px solid var(--trait);
  padding: 20px 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.barre p { margin: 4px 0 0; color: var(--texte-3); font-size: .88rem; }
.contenu { padding: 28px 34px; }

@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .rail { position: static; height: auto; flex-direction: row; align-items: center;
          flex-wrap: wrap; gap: 4px 14px; padding: 14px 18px; }
  .rail-marque { padding: 0; }
  .rail nav { flex-direction: row; flex-wrap: wrap; }
  .rail nav a { padding: 7px 12px; border-left: 0; border-bottom: 3px solid transparent; border-radius: 6px; }
  .rail nav a[aria-current="page"] { border-left: 0; border-bottom-color: var(--or); }
  .rail-bas { margin: 0 0 0 auto; padding: 0; border: 0; }
  .rail-mail { display: none; }
  .barre, .contenu { padding-inline: 18px; }
}

.panneau {
  background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon);
  padding: 24px 28px; margin-bottom: 20px;
}

.panneau > h2 {
  margin: 0 0 4px; padding-bottom: 10px; border-bottom: 1px solid var(--trait);
}
.panneau > h2 + .panneau-note { margin-top: 12px; }
.panneau > h2:not(:first-child) { margin-top: 34px; }
.panneau-note { color: var(--texte-2); font-size: .92rem; max-width: 62ch; }
.vide p { max-width: 62ch; margin-inline: auto; }
.vide {
  border: 1px dashed #D6CCBD; border-radius: var(--rayon);
  padding: 40px 28px; text-align: center; color: var(--texte-2); background: var(--surface);
  margin-bottom: 20px;
}
.vide p:first-child { font-size: 1.05rem; color: var(--texte); font-weight: 500; }
.vide p:last-child { margin-bottom: 0; }

.etablissements { list-style: none; margin: 14px 0 0; padding: 0; }
.etablissements li {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 14px 0; border-top: 1px solid var(--trait);
}
.etablissements li:first-child { border-top: 0; }
.etab-nom { font-weight: 600; }
.etab-adresse { color: var(--texte-3); font-size: .88rem; }
.etablissements li > div:first-child { flex: 1; min-width: 220px; }

.etat { font-size: .78rem; font-weight: 600; padding: 6px 13px; border-radius: 100px; white-space: nowrap; }
.etat-attente { background: #FBF1DC; color: var(--attente); }
.etat-valide { background: #E7F1E9; color: var(--valide); }
.etat-refus { background: #F8E7E4; color: var(--refus); }

.bouton {
  display: inline-block; font: 600 .92rem/1.2 Inter, sans-serif; cursor: pointer;
  border: 1px solid transparent; border-radius: 8px; padding: 11px 18px;
  text-decoration: none; transition: background-color .12s, border-color .12s;
}
.bouton:active { transform: translateY(1px); }
.espace-pro .bouton-principal { background: var(--or-action); color: #fff; }
.espace-pro .bouton-principal:hover { background: var(--or-fonce); color: #fff; }
.espace-pro .bouton-second { background: var(--surface); border-color: var(--trait); color: var(--texte); }
.espace-pro .bouton-second:hover { border-color: var(--or-action); color: var(--or-action); background: #FCFAF6; }
.espace-pro .bouton-discret { background: none; border: 0; color: var(--texte-2); padding: 11px 6px; }
.espace-pro .bouton-discret:hover { color: var(--refus); text-decoration: underline; }

.champ { margin-bottom: 18px; max-width: 460px; }
.champ label { display: block; font-weight: 500; margin-bottom: 5px; }
.champ input[type="text"], .champ input[type="email"], .champ input[type="tel"],
.champ input[type="url"], .champ input[type="password"], .champ input[type="search"],
.champ input[type="file"], .champ textarea {
  width: 100%; font: inherit; padding: 10px 13px;
  border: 1px solid var(--trait); border-radius: 8px; background: var(--surface); color: var(--texte);
}
.champ input:hover, .champ textarea:hover { border-color: #CFC4B4; }
.champ input:focus, .champ textarea:focus { border-color: var(--or-action); }
.champ textarea { resize: vertical; }
.champ .aide { display: block; color: var(--texte-3); font-size: .84rem; margin-top: 5px; }
.champs-paire { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 22px; max-width: 720px; }
.champs-paire .champ { max-width: none; }

.recherche { display: flex; max-width: 560px; margin-bottom: 4px; }
.recherche input { flex: 1; min-width: 0; font: inherit; padding: 11px 14px;
  border: 1px solid var(--trait); border-right: 0; border-radius: 8px 0 0 8px; background: var(--surface); }
.recherche button { font: 600 .92rem/1 Inter, sans-serif; color: #fff; background: var(--encre);
  border: 0; border-radius: 0 8px 8px 0; padding: 0 20px; cursor: pointer; }
.recherche button:hover { background: var(--encre-2); }

.message { border-radius: 8px; padding: 13px 17px; margin-bottom: 20px; font-size: .93rem; }
.message-ok { background: #E7F1E9; color: #21563A; }
.message-erreur { background: #F8E7E4; color: #82291F; }
.message-attente { background: #FBF1DC; color: #7C5514; }

.semaine { border: 1px solid var(--trait); border-radius: var(--rayon); overflow: hidden; margin: 16px 0 26px; }
.semaine-jour {
  display: grid; grid-template-columns: 108px 1fr 1fr auto; align-items: center; gap: 14px;
  padding: 12px 18px; border-top: 1px solid var(--trait); background: var(--surface);
}
.semaine-jour:first-child { border-top: 0; }
.semaine-jour:nth-child(even) { background: #FCFAF7; }
.jour-nom { font-weight: 600; }
.jour-repere { display: block; font-size: .74rem; color: var(--texte-3); font-weight: 400; }
.creneau { display: flex; align-items: center; gap: 7px; }
.creneau input[type="time"] {
  font: inherit; padding: 7px 9px; border: 1px solid var(--trait);
  border-radius: 7px; background: var(--surface); color: var(--texte);
}
.creneau span { color: var(--texte-3); font-size: .85rem; }
.jour-ferme { display: flex; align-items: center; gap: 7px; font-size: .86rem; color: var(--texte-2); white-space: nowrap; }
.semaine-jour.est-ferme { background: #F4F1EC; }
.semaine-jour.est-ferme .creneau { opacity: .35; }
.semaine-jour.est-ferme .jour-nom { color: var(--texte-3); }
.semaine-entete {
  display: grid; grid-template-columns: 108px 1fr 1fr auto; gap: 14px;
  padding: 10px 18px; background: var(--encre); color: #BFB5A6; font-size: .78rem;
}
.creneau input[type="time"]:hover { border-color: #CFC4B4; }
.creneau input[type="time"]:focus { border-color: var(--or-action); }
.jour-ferme input { width: 17px; height: 17px; accent-color: var(--or-action); }

@media (max-width: 700px) {
  .semaine-entete { display: none; }
  .semaine-jour { grid-template-columns: 1fr; gap: 8px; padding: 14px 16px; }
  .jour-ferme { justify-content: flex-start; }
}

.horaires-lecture { border-collapse: collapse; font-size: .92rem; }
.horaires-lecture th { text-align: left; font-weight: 400; color: var(--texte-3); padding: 3px 22px 3px 0; }
.horaires-lecture td { padding: 3px 0; }

.photos { list-style: none; padding: 0; margin: 0 0 20px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.photos li { position: relative; }
.photos img { width: 100%; height: 128px; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--trait); display: block; }
.photos .etat { position: absolute; left: 8px; bottom: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.18); }

.compteur {
  font-family: Inter, sans-serif; font-size: .72rem; font-weight: 600;
  background: var(--encre); color: #fff; border-radius: 100px; padding: 3px 10px;
  vertical-align: 3px; margin-left: 8px;
}
.dossier { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon);
  padding: 20px 24px; margin-bottom: 16px; }
.dossier-titre { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.dossier-lieu { color: var(--texte-3); font-size: .86rem; }
.dossier-qui { font-size: .9rem; color: var(--texte-2); margin-bottom: 12px; }
.dossier-mot { border-left: 3px solid var(--trait); margin: 0 0 14px; padding: 2px 0 2px 14px;
  color: var(--texte-2); font-style: normal; }

.indices { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 5px; }
.indices li { font-size: .89rem; padding-left: 24px; position: relative; }
.indices li::before { position: absolute; left: 0; top: -1px; font-weight: 700; }
.indice-ok { color: var(--valide); }
.indice-ok::before { content: "✓"; }
.indice-non { color: var(--refus); }
.indice-non::before { content: "✕"; }
.indice-info { color: var(--texte-3); }
.indice-info::before { content: "·"; left: 6px; }

.decision { display: flex; gap: 10px; align-items: center; margin: 0; flex-wrap: wrap; }
.apercu { max-width: 300px; border-radius: 8px; border: 1px solid var(--trait); display: block; margin-bottom: 14px; }
.valeur { font-weight: 500; word-break: break-word; margin-bottom: 14px; }

.accueil-pro { display: grid; place-items: center; min-height: 100vh; padding: 40px 20px; }
.carte-entree {
  background: var(--surface); border: 1px solid var(--trait); border-radius: 14px;
  padding: 36px 38px; width: 100%; max-width: 430px;
}

.carte-entree .marque { margin-bottom: 26px; }
.carte-entree h1 { margin-bottom: 6px; }
.carte-entree .sous { color: var(--texte-2); font-size: .93rem; margin-bottom: 24px; }
.carte-entree .champ { max-width: none; }
.carte-entree .bouton { width: 100%; text-align: center; }
.entree-pied { margin: 22px 0 0; font-size: .9rem; color: var(--texte-2); text-align: center; }

.depart {
  background: var(--surface); border: 1px solid var(--trait); border-radius: 14px;
  padding: 44px 40px; text-align: center; margin-bottom: 22px;
}
.depart h2 { font-size: 1.35rem; margin-bottom: 10px; }
.depart p { color: var(--texte-2); max-width: 58ch; margin-inline: auto; }
.depart .recherche { margin: 26px auto 10px; }
.depart-aide { font-size: .88rem; color: var(--texte-3); }
.recherche-large input { padding: 14px 16px; font-size: 1rem; }
.recherche-large button { padding: 0 24px; }

.fiches { display: grid; gap: 16px; margin-bottom: 22px; }
.fiche-carte {
  background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon);
  padding: 22px 26px;
}
.fiche-carte-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.fiche-carte h2 { font-size: 1.12rem; margin: 0; border: 0; padding: 0; }
.fiche-carte-adresse { color: var(--texte-3); font-size: .88rem; margin: 3px 0 0; }
.fiche-carte-note { color: var(--texte-2); font-size: .92rem; margin: 14px 0 0; max-width: 62ch; }

.jauge { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 16px 0 18px; }
.jauge li { font-size: .89rem; padding-left: 22px; position: relative; }
.jauge li::before { position: absolute; left: 0; font-weight: 700; }
.jauge-fait { color: var(--valide); }
.jauge-fait::before { content: "✓"; }
.jauge-manque { color: var(--attente); }
.jauge-manque::before { content: "○"; font-weight: 400; top: -1px; }

.fiche-carte-pied { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.lien-discret { font-size: .9rem; }

.ajout {
  background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon);
  margin-bottom: 20px;
}
.ajout > summary {
  cursor: pointer; padding: 16px 26px; font-weight: 500; list-style: none;
  display: flex; align-items: center; gap: 10px;
}
.ajout > summary::-webkit-details-marker { display: none; }
.ajout > summary::before {
  content: "+"; display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; background: var(--or-pale);
  color: var(--or-action); font-weight: 700; line-height: 1;
}
.ajout[open] > summary::before { content: "–"; }
.ajout > summary:hover { color: var(--or-action); }
.ajout-corps { padding: 0 26px 22px; }

.semaine-outil { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: -8px 0 26px; }
.semaine-outil-note { font-size: .85rem; color: var(--texte-3); }

.barre-enregistrer {
  position: sticky; bottom: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon);
  padding: 14px 22px; margin-bottom: 20px;
  box-shadow: 0 -2px 14px rgba(34, 28, 22, .07);
}
.barre-enregistrer p { margin: 0; font-size: .88rem; color: var(--texte-3); }

@media (max-width: 640px) {
  .depart { padding: 30px 22px; }
  .barre-enregistrer { flex-direction: column; align-items: stretch; text-align: center; }
  .barre-enregistrer .bouton { width: 100%; }
}

.groupe-cases { border: 0; padding: 0; margin: 0 0 22px; }
.groupe-cases legend {
  font-weight: 600; font-size: .92rem; padding: 0; margin-bottom: 10px; color: var(--texte);
}
.case {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  border: 1px solid var(--trait); border-radius: 100px; padding: 8px 15px 8px 12px;
  margin: 0 8px 8px 0; font-size: .9rem; background: var(--surface);
}
.case:hover { border-color: #CFC4B4; }
.case input { width: 16px; height: 16px; accent-color: var(--or-action); margin: 0; }
.case:has(input:checked) { border-color: var(--or-action); background: var(--or-pale); color: var(--texte); }
.champ input[type="date"] {
  width: 100%; font: inherit; padding: 10px 13px;
  border: 1px solid var(--trait); border-radius: 8px; background: var(--surface); color: var(--texte);
}
.liste-equipements { margin: 0 0 14px; padding-left: 20px; color: var(--texte-2); font-size: .92rem; }

.panneau-grave { border-color: #E2D3CB; }
.grave { border-top: 1px solid var(--trait); }
.grave:first-of-type { margin-top: 6px; }
.grave > summary {
  cursor: pointer; padding: 14px 0; font-weight: 500; list-style: none;
  display: flex; align-items: center; gap: 10px; color: var(--texte-2);
}
.grave > summary::-webkit-details-marker { display: none; }
.grave > summary::before {
  content: "›"; display: inline-block; width: 14px; font-weight: 700; color: var(--texte-3);
  transition: transform .12s;
}
.grave[open] > summary::before { transform: rotate(90deg); }
.grave > summary:hover { color: var(--refus); }
.grave-corps { padding: 4px 0 22px 24px; border-left: 2px solid var(--trait); margin-left: 6px; }

.reperage { display: flex; flex-wrap: wrap; gap: 22px 34px; align-items: flex-end; }
#form-position { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.champ-rayon { margin: 0; max-width: none; }
.champ-rayon span { display: block; font-weight: 500; margin-bottom: 5px; }
.champ-rayon select {
  font: inherit; padding: 10px 13px; border: 1px solid var(--trait);
  border-radius: 8px; background: var(--surface); color: var(--texte);
}
.reperage-etat { font-size: .88rem; color: var(--texte-3); padding-bottom: 12px; }
.etab-dist {
  font-size: .8rem; color: var(--or-action); background: var(--or-pale);
  border-radius: 100px; padding: 3px 10px; margin-left: 8px;
}
.jauge-compacte { margin: 8px 0 0; gap: 6px 16px; }
.jauge-compacte li { font-size: .82rem; }

.filtres { display: flex; gap: 8px; margin-bottom: 18px; }
.filtre {
  font-size: .9rem; padding: 7px 15px; border-radius: 100px; text-decoration: none;
  border: 1px solid var(--trait); background: var(--surface); color: var(--texte-2);
}
.espace-pro .filtre:hover { text-decoration: none; border-color: var(--or-action); color: var(--or-action); }
.espace-pro .filtre-actif { background: var(--encre); border-color: var(--encre); color: #fff; }

.journal { width: 100%; border-collapse: collapse; font-size: .92rem; }
.journal th, .journal td { text-align: left; padding: 11px 14px 11px 0; vertical-align: top; }
.journal thead th {
  font-size: .78rem; font-weight: 600; color: var(--texte-3);
  border-bottom: 1px solid var(--trait); padding-bottom: 8px;
}
.journal tbody tr { border-bottom: 1px solid var(--trait); }
.journal tbody tr:last-child { border-bottom: 0; }
.journal-date { white-space: nowrap; }
.journal-date span, .journal-qui span, .journal-detail {
  display: block; font-size: .8rem; color: var(--texte-3);
}
.journal-detail { display: block; }
.journal .etat { display: inline-block; margin-bottom: 4px; }
.pagination-journal { display: flex; gap: 10px; }

@media (max-width: 760px) {
  .journal thead { display: none; }
  .journal tbody tr { display: block; padding: 12px 0; }
  .journal td { display: block; padding: 2px 0; }
}

.photos li { position: relative; }
.photo-credit {
  display: block; font-size: .76rem; color: var(--texte-3); margin-top: 5px;
}

.etat-direct { background: var(--or-pale); color: var(--or-action); }

.rail-groupe {
  font-size: .72rem; color: #8C8072; margin: 18px 22px 6px;
  letter-spacing: .04em; font-weight: 500;
}
.rail nav > .rail-groupe:first-child { margin-top: 4px; }
.rail-groupe-admin {
  border-top: 1px solid rgba(255,255,255,.09); padding-top: 16px; color: var(--or);
}
@media (max-width: 820px) {
  .rail-groupe { display: none; }
  .rail-groupe-admin { display: block; border: 0; padding: 0; margin: 0 4px 0 12px;
    align-self: center; }
}

.barres {
  list-style: none; padding: 0; margin: 16px 0 8px;
  display: flex; align-items: flex-end; gap: 3px; height: 120px;
}
.barres li {
  flex: 1 1 0; height: 100%; min-width: 2px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.barre-tige {
  display: block; width: 100%; background: var(--or); border-radius: 2px 2px 0 0;
}
.barres li:last-child .barre-tige { background: var(--or-action); }

.barres-chiffrees { height: 138px; }
.barre-valeur {
  display: block; text-align: center; white-space: nowrap;
  font-size: .62rem; line-height: 1.4; color: var(--texte-3);
  font-variant-numeric: tabular-nums; padding-top: 3px;
}
@media (max-width: 720px) {
  .barre-valeur { display: none; }
}
.barres-legende {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: .8rem; color: var(--texte-3); margin: 0 0 20px;
}

.chiffres { display: flex; flex-wrap: wrap; gap: 28px 44px; padding-top: 6px; }
.chiffre {
  display: block; font-family: Fraunces, Georgia, serif; font-weight: 600;
  font-size: 1.6rem; line-height: 1.1; color: var(--texte);
}
.chiffre-note { font-size: .84rem; color: var(--texte-3); }

.journal-nombre {
  font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap;
  padding-right: 18px !important;
}
.journal-serre th, .journal-serre td { padding: 6px 12px 6px 0; }
.groupe-titre-pro {
  font-size: .8rem; color: var(--texte-3); margin: 18px 0 4px; font-weight: 500;
}
.deux-colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.deux-colonnes .panneau { margin-bottom: 0; }

.couverture { width: 100%; border-collapse: collapse; }
.couverture th, .couverture td { padding: 11px 0; vertical-align: middle; }
.couverture tr + tr th, .couverture tr + tr td { border-top: 1px solid var(--trait); }
.couverture th {
  text-align: left; font-weight: 500; font-size: .95rem; padding-right: 20px;
}
.couverture th .journal-detail { font-weight: 400; margin-top: 2px; }
.couverture-nombre {
  text-align: right; font-variant-numeric: tabular-nums; font-weight: 600;
  white-space: nowrap; padding-right: 18px !important; width: 6em;
}
.couverture-part { width: 46%; }

.couverture-part .barre {
  display: inline-block; vertical-align: middle; width: calc(100% - 4.2em);
  height: 8px; padding: 0; border: 0; background: var(--trait);
  border-radius: 100px; overflow: hidden;
}
.couverture-part .barre span {
  display: block; height: 100%; background: var(--or-action); border-radius: 100px;
}
.couverture-pourcent {
  display: inline-block; width: 3.6em; text-align: right; margin-left: .6em;
  font-variant-numeric: tabular-nums; font-size: .88rem; color: var(--texte-2);
}

.photo-retrait { margin-top: 6px; }
.photo-retrait .bouton-discret { padding: 4px 0; font-size: .82rem; }

.compte-tete {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 20px; flex-wrap: wrap;
}
.compte-tete h2 {
  margin: 0 0 4px; padding: 0; border: 0; font-size: 1.1rem;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.compte-mail { margin: 0; font-size: .9rem; color: var(--texte-2); }
.compte-dates { margin: 0; font-size: .82rem; color: var(--texte-3); text-align: right; }
.compte-suspendu { border-color: #E2D3CB; background: #FDFAF9; }
.compte-actions {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--trait);
}
@media (max-width: 620px) { .compte-dates { text-align: left; } }

.pro-scene {
  position: relative; min-height: 100vh; isolation: isolate;
  display: flex; flex-direction: column; color: #F6F1E9;
  background: var(--encre);
}
.pro-scene-pleine { height: 100vh; max-height: 100vh; overflow: auto; }

.pro-fond {
  position: absolute; inset: 0; z-index: -1;
  background: url("../images/pro-fond.jpg") center 58% / cover no-repeat;
}

.pro-fond::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(26, 18, 12, .93) 0%, rgba(26, 18, 12, .86) 34%,
                    rgba(26, 18, 12, .52) 62%, rgba(26, 18, 12, .38) 100%),
    linear-gradient(0deg, rgba(59, 42, 30, .30), rgba(59, 42, 30, .30));
}

.pro-barre {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding: 22px clamp(24px, 5vw, 64px);
}
.pro-marque { margin: 0; }
.espace-pro .pro-marque a {
  font-family: Fraunces, Georgia, serif; font-size: 1.05rem; font-weight: 600;
  color: #FBF7F1; text-decoration: none; letter-spacing: -.01em;
}
.pro-marque span { color: var(--or); }
.pro-marque small { font-size: .72em; color: rgba(246, 241, 233, .6); font-weight: 400; }

.pro-acces { display: flex; align-items: center; gap: 14px; margin: 0; }
.espace-pro .pro-lien-clair {
  font-size: .88rem; color: rgba(246, 241, 233, .82); text-decoration: none;
}
.espace-pro .pro-lien-clair:hover { color: #fff; text-decoration: underline; }

.espace-pro .pro-bouton {
  display: inline-block; font: 600 .92rem/1 Inter, sans-serif; text-decoration: none;
  padding: 11px 22px; border-radius: 100px; background: var(--or-action); color: #fff;
  transition: background-color .16s, transform .1s;
}
.espace-pro .pro-bouton:hover { background: var(--or-fonce); text-decoration: none; }
.espace-pro .pro-bouton:active { transform: translateY(1px); }

.espace-pro .pro-bouton-clair {
  background: #FBF7F1; color: var(--encre);
}
.espace-pro .pro-bouton-clair:hover { background: #fff; }

.pro-centre {
  flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center;
  padding: 18px clamp(24px, 5vw, 64px) 34px; max-width: 720px;
}
.pro-oeil {
  margin: 0 0 16px; font-size: .72rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--or); font-weight: 600;
}
.pro-centre h1 {
  font-size: clamp(2.3rem, 5.6vw, 3.9rem); line-height: 1.02; letter-spacing: -.028em;
  margin: 0 0 18px; color: #FFFBF6;
}
.pro-chapo {
  max-width: 44ch; margin: 0; font-size: 1.05rem; line-height: 1.6;
  color: rgba(246, 241, 233, .82);
}
.pro-chapo strong { color: #fff; font-weight: 600; }

.pro-recherche {
  display: flex; align-items: center; gap: 4px; max-width: 540px;
  margin: 30px 0 18px; padding: 6px 6px 6px 18px;
  background: #fff; border: 0; border-radius: 100px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
  transition: box-shadow .18s;
}
.pro-recherche::before {
  content: ""; flex: 0 0 auto; width: 15px; height: 15px; margin-right: 6px;
  border: 2px solid #9a8f82; border-radius: 50%;
  box-shadow: 7px 7px 0 -5.5px #9a8f82;
  transform: rotate(-45deg) translate(-1px, -1px);
}
.pro-recherche:focus-within { box-shadow: 0 12px 36px rgba(0, 0, 0, .34); }
.pro-recherche input {
  flex: 1 1 auto; min-width: 0; width: 100%;
  font: inherit; font-size: 1.02rem; line-height: 1.2;
  padding: 13px 14px; border: 0; background: none; color: var(--texte);
  white-space: nowrap; text-overflow: ellipsis;
}
.pro-recherche input:focus { outline: none; }
.pro-recherche input::placeholder { color: #9a8f82; opacity: 1; }
.pro-recherche button {
  flex: 0 0 auto; font: 600 .95rem/1 Inter, sans-serif; cursor: pointer;
  padding: 15px 26px; border: 0; border-radius: 100px; white-space: nowrap;
  background: var(--or-action); color: #fff;
  transition: background-color .16s, transform .1s;
}
.pro-recherche button:hover { background: var(--or-fonce); }
.pro-recherche button:active { transform: translateY(1px); }

.pro-garanties {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 6px 22px;
  font-size: .85rem; color: rgba(246, 241, 233, .72);
}
.pro-garanties li { display: flex; align-items: center; gap: 7px; }
.pro-garanties li::before { content: "✓"; color: var(--or); font-weight: 700; }

.pro-resultats {
  background: var(--surface); color: var(--texte);
  padding: 30px clamp(24px, 5vw, 64px);
}
.pro-resultats h2 { margin: 0 0 14px; font-size: 1.12rem; }
.pro-liste { list-style: none; padding: 0; margin: 0; }
.pro-liste li {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 13px 0; border-bottom: 1px solid var(--trait); flex-wrap: wrap;
}
.pro-liste-nom { display: block; font-weight: 500; }
.pro-liste-lieu { display: block; font-size: .86rem; color: var(--texte-3); }
.pro-note { margin: 0; font-size: .88rem; line-height: 1.6; color: var(--texte-2); }

.pro-socle {
  padding: 16px clamp(24px, 5vw, 64px) 20px;
  border-top: 1px solid rgba(246, 241, 233, .14);
  background: rgba(20, 14, 10, .34);
}
.pro-publie {
  list-style: none; margin: 0 0 8px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px 26px;
  font-size: .86rem; color: rgba(246, 241, 233, .74);
}
.pro-publie li { display: flex; align-items: baseline; gap: 8px; }
.pro-publie li::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--or); flex: 0 0 auto; transform: translateY(-2px);
}
.pro-publie strong { color: #FBF7F1; font-weight: 600; }
.pro-socle-note { margin: 0; font-size: .8rem; color: rgba(246, 241, 233, .55); }
.espace-pro .pro-socle-note a { color: rgba(246, 241, 233, .78); }
.pro-socle-note strong { color: var(--or); }

@media (max-width: 860px) {
  .pro-scene-pleine { height: auto; max-height: none; }
  .pro-fond { background-image: url("../images/pro-fond-petit.jpg"); }
  .pro-fond::after {
    background:
      linear-gradient(180deg, rgba(26, 18, 12, .88) 0%, rgba(26, 18, 12, .80) 55%,
                      rgba(26, 18, 12, .90) 100%),
      linear-gradient(0deg, rgba(59, 42, 30, .30), rgba(59, 42, 30, .30));
  }
  .pro-centre { padding: 26px 24px 30px; }
  .pro-recherche { flex-wrap: wrap; border-radius: 22px; padding: 12px; }
  .pro-recherche input { flex: 1 0 100%; }
  .pro-recherche button { flex: 1 0 100%; }
}

.entree-rappel {
  margin: 0 0 18px; padding: 12px 15px;
  background: var(--or-pale); border-left: 3px solid var(--or);
  border-radius: 8px; font-size: .9rem; line-height: 1.55; color: #6B5230;
}
.entree-rappel strong { color: var(--croute, #3B2A1E); }

.bienvenue {
  display: flex; align-items: center; justify-content: space-between; gap: 26px;
  background: linear-gradient(135deg, #FDF8EF, var(--or-pale));
  border: 1px solid #EADFC8; border-radius: 16px;
  padding: 22px 26px; margin-bottom: 26px;
}
.bienvenue-titre {
  margin: 0 0 4px; padding: 0; border: 0;
  font-family: Fraunces, Georgia, serif; font-size: 1.3rem; color: var(--croute, #3B2A1E);
}
.bienvenue-mot { margin: 0; font-size: .95rem; line-height: 1.6; color: #6B5230; max-width: 52ch; }
.bienvenue-mot strong { color: var(--croute, #3B2A1E); }

.bienvenue-cadran {
  flex: 0 0 auto; width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--or-action) calc(var(--part) * 1%), #EFE3CC 0);
}
.bienvenue-cadran::before {
  content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #FDFAF4;
}
.bienvenue-cadran span {
  position: relative; font-weight: 700; font-size: 1.28rem; color: var(--croute, #3B2A1E);
  font-variant-numeric: tabular-nums;
}
.bienvenue-cadran small { font-size: .62em; font-weight: 600; margin-left: 1px; }

.fiche-carte-tete { display: flex; align-items: flex-start; gap: 16px; }
.fiche-vignette {
  flex: 0 0 auto; width: 64px; height: 64px; border-radius: 12px;
  object-fit: cover; background: var(--or-pale); border: 1px solid var(--trait);
}
.fiche-vignette-vide {
  display: block;
  background: repeating-linear-gradient(-45deg, #F3EADA, #F3EADA 6px, #EFE4D0 6px, #EFE4D0 12px);
}
.fiche-carte-tete > div { flex: 1 1 auto; min-width: 0; }

.avancement { margin: 16px 0 12px; }
.avancement-barre {
  display: block; height: 6px; border-radius: 100px; background: #EDE6DB; overflow: hidden;
  position: relative;
}
.avancement-barre::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--part) * 1%);
  background: var(--or-action); border-radius: 100px;
  transition: width .4s ease;
}
.avancement-texte { display: block; margin-top: 6px; font-size: .8rem; color: var(--texte-3); }

.fiche-carte-complete { border-left: 3px solid #6F9E5B; }

@media (max-width: 620px) {
  .bienvenue { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) { .avancement-barre::before { transition: none; } }

.sommaire {
  display: flex; align-items: center; gap: 12px 22px; flex-wrap: wrap;
  padding: 14px 18px; margin-bottom: 20px;
  background: var(--surface); border: 1px solid var(--trait); border-radius: 12px;
}
.sommaire-titre { margin: 0; font-size: .88rem; color: var(--texte-2); }
.sommaire-titre strong { color: var(--texte); }
.sommaire ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto;
}
.espace-pro .sommaire a {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .84rem; text-decoration: none; color: var(--texte-2);
  padding: 6px 13px; border-radius: 100px; border: 1px solid var(--trait);
  transition: border-color .15s, color .15s, background-color .15s;
}
.espace-pro .sommaire a:hover { border-color: var(--or-action); color: var(--or-action); }
.sommaire li::before {
  content: "";
}
.sommaire-fait a::before {
  content: "✓"; color: #4A7C3B; font-weight: 700;
}
.sommaire-manque a::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--or); flex: 0 0 auto;
}
.sommaire-manque a { background: var(--or-pale); border-color: #EADFC8; color: #6B5230; }
.espace-pro .sommaire a.sommaire-ici {
  border-color: var(--or-action); color: var(--or-action); background: var(--surface);
}

.barre-enregistrer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; margin-top: 22px;
}
.barre-enregistrer p { margin: 0; font-size: .86rem; color: var(--texte-3); }
.barre-collante {
  position: sticky; bottom: 0; z-index: 20;
  margin: 22px -14px -14px; padding: 14px 20px;
  background: rgba(255, 253, 250, .96); backdrop-filter: blur(8px);
  border-top: 1px solid var(--trait); border-radius: 12px 12px 0 0;
  box-shadow: 0 -6px 24px rgba(34, 28, 22, .07);
}
.barre-collante p { color: var(--or-action); font-weight: 500; }

@media (max-width: 620px) {
  .sommaire ul { margin-left: 0; }
  .barre-collante { margin-inline: -20px; border-radius: 0; }
}

.avancement-large { margin: 4px 0 22px; }
.avancement-large .avancement-barre { height: 10px; }
.avancement-large .avancement-texte { font-size: .95rem; color: var(--texte-2); margin-top: 9px; }
.avancement-large strong { color: var(--or-action); font-size: 1.05rem; }

.marque {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  font-family: Fraunces, Georgia, serif; font-weight: 700; font-size: 1.22rem;
  color: var(--texte);
}
.marque .marque-jeton { width: 42px; height: 42px; border-radius: 12px; }
.marque .marque-jeton svg { width: 23px; height: 23px; }

.logo-nom { display: inline-block; font-style: normal; }

.logo-tld { font-weight: 400; font-size: .8em; opacity: .62; }
.logo-et { color: var(--or); font-weight: 400; font-size: .82em; margin-inline: .12em; }

.cles {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px; background: var(--trait); border: 1px solid var(--trait);
  border-radius: var(--rayon); overflow: hidden; margin-bottom: 20px;
}
.cle { background: var(--surface); padding: 18px 20px 16px; }
.cle-note {
  display: block; font-size: .82rem; color: var(--texte-3); margin-bottom: 6px;
}
.cle-valeur {
  display: block; font-family: Fraunces, Georgia, serif; font-weight: 600;
  font-size: 1.85rem; line-height: 1.05; color: var(--texte); margin-bottom: 6px;
}
.cle-valeur small { font-size: .58em; font-weight: 600; margin-left: .06em; }
.cle-detail { display: block; font-size: .8rem; color: var(--texte-3); }

.ecart {
  display: inline-block; font-size: .82rem; font-weight: 500;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.ecart-hausse { color: var(--valide); }
.ecart-baisse { color: var(--refus); }
.ecart-stable { color: var(--texte-3); font-weight: 400; }
.ecart-note { color: var(--texte-3); font-weight: 400; }
.barre p .ecart, .barre .ecart { font-size: .85rem; }

.courbe-cadre { overflow-x: auto; }
.courbe { display: block; width: 100%; height: auto; margin: 6px 0 4px; }
.courbe-basse { margin-bottom: 18px; }

.courbe-grille { stroke: var(--trait); stroke-width: 1; }
.courbe-repere, .courbe-date {
  fill: var(--texte-3); font-family: Inter, system-ui, sans-serif; font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.courbe-weekend { fill: var(--trait); fill-opacity: .45; }

.courbe-aire { fill: var(--or-action); fill-opacity: .10; stroke: none; }
.courbe-detail { fill: var(--or-action); fill-opacity: .13; stroke: none; }
.courbe-trait {
  fill: none; stroke: var(--or-action); stroke-width: 2;
  stroke-linejoin: round; stroke-linecap: round;
}

.courbe-avant {
  fill: none; stroke: var(--gris-repere); stroke-width: 1.5;
  stroke-linejoin: round; stroke-linecap: round;
}

.courbe-point { fill: var(--or-action); stroke: var(--surface); stroke-width: 2; }
.courbe-point-avant { fill: var(--gris-repere); stroke: var(--surface); stroke-width: 2; }

.courbe-survol { fill: transparent; }
.jour-marque { opacity: 0; pointer-events: none; }
.jour:hover .jour-marque { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .jour-marque { transition: opacity .09s ease-out; }
}

.courbe-guide { stroke: var(--texte-3); stroke-width: 1; stroke-dasharray: 3 3; opacity: .55; }

.bulle-fond {
  fill: var(--encre); fill-opacity: .95;

  filter: drop-shadow(0 2px 6px rgba(34, 28, 22, .28));
}
.bulle-texte {
  fill: #EDE6DC; font-family: Inter, system-ui, sans-serif; font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}
.bulle-titre { fill: #fff; font-weight: 600; }

.courbe-valeur {
  fill: var(--texte-2); font-family: Inter, system-ui, sans-serif; font-size: 11px;
  font-weight: 600; font-variant-numeric: tabular-nums;
}

.courbe-legende {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px;
  font-size: .85rem; color: var(--texte-2); margin: 10px 0 0;
}
.cle-serie { display: inline-flex; align-items: center; gap: 8px; }
.cle-serie::before {
  content: ""; width: 16px; height: 3px; border-radius: 2px; background: var(--gris-repere);
}
.cle-serie-courante::before { background: var(--or-action); }
.cle-serie-note { color: var(--texte-3); font-size: .8rem; }

.couverture-ecart { text-align: right; white-space: nowrap; width: 7em; }
.panneau-note code {
  font-size: .86em; background: var(--or-pale); border-radius: 4px; padding: 1px 5px;
}

@media (max-width: 720px) {

  .courbe { min-width: 560px; }
  .cles { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .cle-valeur { font-size: 1.5rem; }
  .couverture-ecart { width: auto; }

  .couverture-part .barre { display: none; }
  .couverture-pourcent { margin-left: 0; text-align: left; }
}

.decision .motif {
  flex: 1 1 15em; min-width: 12em; padding: 9px 12px;
  border: 1px solid var(--trait); border-radius: 8px;
  font: inherit; font-size: .9rem; color: var(--texte); background: var(--surface);
}
.decision .motif::placeholder { color: var(--texte-3); }

.avis-file {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  flex-wrap: wrap; margin: 0 0 20px; padding: 14px 18px;
  background: var(--or-pale); border: 1px solid #E9DCC2; border-radius: var(--rayon);
  color: var(--texte-2); font-size: .92rem;
}
.avis-file span { max-width: 62ch; }
.avis-file form { margin: 0; }

td.journal-detail, th.journal-detail { display: table-cell; }

.trace-cron {
  margin: 0; padding: 12px 14px; max-height: 320px; overflow: auto;
  background: #FBF8F3; border: 1px solid var(--trait); border-radius: 8px;
  font: .78rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--texte-2); white-space: pre-wrap; overflow-wrap: anywhere;
}

.panneau h3 {
  font-size: .95rem; font-weight: 600; margin: 26px 0 8px; color: var(--texte);
}
