/* ===========================
   Typos
   =========================== */

@font-face {
  font-family: "N27";
  src: url("fonts/N27-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "N27";
  src: url("fonts/N27-RegularItalic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "N27";
  src: url("fonts/N27-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto Flex";
  src: url("fonts/RobotoFlex.ttf")
       format("truetype-variations");
  font-weight: 100 1000;     /* wght */
  font-stretch: 25% 151%;     /* wdth */
  font-style: oblique -10deg 0deg; /* slnt */
  font-display: swap;
}


:root {
  --bg: #ffffff;
  --text: #161412;
  --card: #ffffff;
  --muted: #e5e7eb;
  --accent: #757500;
  --secondary: #ffff00;
  --ok: #10b981;
  --warn: #f59e0b;
  --err: #ff0000;
  --font-ui: "Roboto Flex", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-brand: "N27", "Roboto Flex", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}






body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  text-align: justify;
}

a {
  color: var(--accent);
}

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 24px;
}

.card {
  background: var(--card);
  padding: 20px;

}


.card.gris {
  border: dashed 1px var(--text) ;
}
h1,
h2,
h3 {
  margin: 0 0 12px 0;
  font-family: var(--font-brand);
}
h1 {
  background-color: var(--secondary);
  padding: 0px 10px;
  font-size: 50px;
  display: inline-block;
}

p.slogan {
  font-size: 24px ;
  display: flex;
   align-items: center;
  
}

p.slogan img{
  margin-right: 20px;
  margin-left: 20px;
}


.grid {
  display: grid;
  gap: 16px;
}

.grid-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.grid-2 {
  grid-template-columns: 1fr 1fr;
}

.input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--text);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
}

textarea {
  resize: vertical;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  color: var(--text);
}

.btn {
  display: inline-block;
  border: none;
  padding: 10px 14px;
  color: #001b2e;
  font-weight: 700;
  cursor: pointer;
}

.btn.secondary {
  color: #0b1220;
}

.btn.full {
  width: 100%;
}

.btn.submit {
  background-color: var(--text);
  color: var(--secondary);
  font-family: var(--font-brand);
  font-size: 25px;
}
.btn#next, .btn#prev, .btn#zoomin, .btn#zoomout{
  font-size: 30px;
  background-color: transparent;
}

.row {
  display: flex;
  gap: 16px;
  align-items: center;
}

.badge {
  padding: .2rem .5rem;
  font-size: 12px;
  background: var(--secondary);
  color: var(--text);
}

.badge.ok {
  background: rgba(16,185,129,.2);
  color: #10b981;
}

.badge.err {
  background: rgba(239,68,68,.2);
  color: var(--err);
}

.badge.warn {
  background: rgba(245,158,11,.2);
  color: #f59e0b;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table tr:hover {
    background-color: #f6f6f6;
}
.table th,
.table td {
  padding: 10px;
  border-bottom: 1px solid #1f2937;
  text-align: left;
  font-size: 14px;
}

.table th {
  font-family: var(--font-brand);
}

.drop {
  border: 2px dashed #374151;
  padding: 24px;
  text-align: center;
  position: relative;
}

.drop.dragover {
  border-color: var(--accent);
  background: rgba(14,165,233,.08);
}

.small {
  font-size: 12px;
  color: #161412;
}

.mt-2 {
  margin-top: 8px;
}

.mt-3 {
  margin-top: 12px;
}

.mt-4 {
  margin-top: 16px;
}

.mt-6 {
  margin-top: 24px;
}

hr {
  border: none;
  border-top: 1px solid #1f2937;
  margin: 18px 0;
}

.drop input[type=file] {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.drop.ready {
  border-color: var(--accent);
  background: rgba(14,165,233,.08);
}

.drop .hint {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #94a3b8;
}

.drop .fileinfo {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text);
}

 /* Conteneur qui recevra le canvas + le calque */
  .pdf-lock{
    position: relative;
    display: inline-block;
    line-height: 0;

  }
  /* Le calque transparent qui intercepte le clic droit / drag */
  .pdf-lock__overlay{
    position: absolute;
    inset: 0;
    background: transparent;
    cursor: default;
  }

  #viewerLock { overflow: auto; }

    /* conteneur fixe : ne grandit pas quand on zoome */
  #viewerLock{
    height: 70vh;      /* ajuste à ton goût */
    overflow: hidden;  /* on masque ce qui dépasse */
  }

  #viewerLock.is-loading {
    background: url(img/circles.gif) center center no-repeat;
  }
  

#viewer { background: transparent !important; }
#viewerLock.is-loading #viewer { opacity: 0; }
/* Optionnel: stabilise le layout pendant chargement */
/*#viewerLock { min-height: 60vh; }*/



  .pdf-lock{
    position: relative;
    display: block;
  }

  .pdf-lock__overlay{
    position: absolute;
    inset: 0;
    background: transparent;
    cursor: grab;      /* visuel “main” */
  }
  .pdf-lock__overlay--drag{
    cursor: grabbing;
  }

  /* .pdf-lock doit avoir une hauteur ; à ajuster à ton design */
.pdf-lock {
  position: relative;
  height: 70vh;        /* ou une hauteur fixe si tu préfères */
  overflow: hidden;
}
#viewer {
  display: block;
  will-change: transform; /* un poil plus fluide */
}

#viewerControls {
  margin-top: 20px;
  border-top: 1px dashed var(--text);
}

@media screen and (max-width: 1200px) {
  .grid {
    display: block;
  }
}