/* CV Studio — Atelier : interface, document A4 et outils de conception */

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #e9edf1;
  font: 14px Arial,sans-serif;
  color: #20252b;
}
button,input,select,textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid #c8d0d8;
  border-radius: 7px;
  background: white;
  padding: 8px 12px;
  color: #203247;
}
button:hover {
  background: #e6edf4;
}
button.primary {
  background: #064968;
  color: white;
  border-color: #064968;
}
#bar {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 14px;
  background: #fff;
  border-bottom: 1px solid #d9e0e5;
}
#bar a {
  color: #84919e;
  text-decoration: none;
  font-size: 12px;
}
#workspace {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  padding: 18px;
}
#editor {
  width: 340px;
  flex: none;
  background: white;
  border-radius: 10px;
  padding: 16px;
  max-height: calc(100vh - 90px);
  overflow: auto;
  position: sticky;
  top: 10px;
}
#editor[hidden] {
  display: none;
}
#editor h2 {
  font-size: 17px;
  margin: 0 0 12px;
}
#editor h3 {
  font-size: 13px;
  text-transform: uppercase;
  color: #607386;
  margin: 18px 0 8px;
}
#editor label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  margin: 8px 0;
}
#editor input:not([type=color],[type=checkbox]),#editor select,#editor textarea {
  width: 100%;
  padding: 7px;
  border: 1px solid #ccd4dc;
  border-radius: 5px;
}
#editor textarea {
  min-height: 150px;
  resize: vertical;
}
#editor input[type=color] {
  width: 100%;
  height: 30px;
  border: 0;
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin: 8px 0;
}
.hint {
  font-size: 12px;
  line-height: 1.4;
  color: #607386;
}
#sheet {
  width: 210mm;
  min-height: 297mm;
  background: white;
  display: grid;
  grid-template-columns: var(--width) 1fr;
  box-shadow: 0 8px 36px #20324720;
  font-family: var(--font);
  font-size: var(--size);
  line-height: 1.32;
  color: var(--ink);
}
.column {
  padding: var(--pad);
  min-width: 0;
}
.left {
  background: var(--side);
  color: white;
}
.block {
  position: relative;
  overflow-wrap: anywhere;
  margin-bottom: var(--space);
  font-size: var(--blocksize);
  color: var(--blockcolor,inherit);
  background: var(--blockbg,transparent);
}
.block:last-child {
  margin-bottom: 0;
}
.block h2 {
  font-size: 1.09em;
  text-transform: uppercase;
  margin: 0 0 7px;
  font-weight: 800;
  line-height: 1.15;
}
.left .block h2 {
  border-bottom: 3px solid currentColor;
  padding-bottom: 5px;
}
.block p {
  margin: 0;
  white-space: pre-wrap;
}
.block p+p {
  margin-top: 4px;
}
.job h2,.project h2 {
  break-after: avoid;
}
.job h2,.project h2 {
  color: var(--accent);
  text-transform: none;
  margin-bottom: 2px;
  font-size: 1.18em;
}
.project h2 {
  font-size: 1.13em;
}
.header h2 {
  font-size: 2em;
  margin-bottom: 3px;
  letter-spacing: -.4px;
}
.header strong {
  font-size: 1.27em;
  color: var(--accent);
}
.photo img {
  display: block;
  width: var(--photo);
  height: var(--photo);
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 13px;
}
.heading h2 {
  font-size: 1.2em;
  margin: 0;
}
.editable .block {
  cursor: pointer;
  outline: 1px dashed transparent;
  outline-offset: 3px;
}
.editable .block:hover,.editable .selected {
  outline-color: #e5a629;
}
.editable .selected {
  outline-style: solid;
}
.status {
  font-size: 12px;
  color: #526879;
}
#fit.bad {
  color: #b32429;
  font-weight: bold;
}
.screen-only {
}
@media(max-width:850px) {
  #workspace {
    display: block;
    padding: 8px;
  }
  #editor {
    width: 100%;
    position: static;
    max-height: none;
    margin-bottom: 12px;
  }
  #sheet {
    width: 100%;
    min-height: 0;
  }
}
@media(max-width:550px) {
  #sheet {
    display: flex;
    flex-direction: column;
  }
  .right {
    order: -1;
  }
  .column {
    padding: 20px;
  }
  .left {
    padding-top: 22px;
  }
  .block {
    font-size: max(13px,var(--blocksize));
  }
}
@page {
  size: A4;
  margin: 0;
}
@media print {
  body {
    background: white;
  }
  #bar,#editor {
    display: none!important;
  }
  #workspace {
    display: block;
    padding: 0;
  }
  #sheet {
    width: 210mm;
    height: 297mm;
    min-height: 297mm;
    display: grid;
    grid-template-columns: var(--width) 1fr;
    box-shadow: none;
    overflow: hidden;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .right {
    order: 0;
  }
  .column {
    padding: var(--pad);
  }
  .block {
    font-size: var(--blocksize);
    outline: none!important;
  }
  .photo img {
    margin-bottom: 13px;
  }
}
@media screen and (max-width:850px) {
  #editor input,#editor select,#editor textarea {
    font-size: 16px!important;
  }
  button,#adminLink {
    min-height: 44px;
  }
  #bar a {
    font-size: 23px;
    padding: 8px 14px;
  }
  #workspace {
    padding: 8px;
  }
  #editor {
    overflow: visible;
  }
  #sheet {
    max-width: 100%;
  }
}
@media print {
  #mobileHelp {
    display: none!important;
  }
}
[hidden] {
  display: none!important;
}
#login {
  position: fixed;
  inset: 0;
  background: #10243699;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}
#login form {
  background: white;
  border-radius: 12px;
  padding: 24px;
  width: min(100%,360px);
  box-shadow: 0 12px 50px #0003;
}
#login input {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  font-size: 16px;
  border: 1px solid #aab6c3;
  border-radius: 6px;
}
#loginError {
  color: #b32429;
}
#adminLink {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 12px;
  font-size: 20px!important;
  cursor: pointer;
}
#studioTools {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #29313d;
  color: white;
  padding: 10px 18px;
  flex-wrap: wrap;
}
#studioTools span {
  font-size: 12px;
  color: #d3dce6;
}
.studio {
  background: #424a55;
}
.studio #workspace {
  flex-direction: row-reverse;
  align-items: flex-start;
  justify-content: center;
}
.studio #editor {
  border-radius: 5px;
  width: 330px;
  background: #f8fafc;
  box-shadow: 0 4px 25px #0002;
  max-height: calc(100dvh - 125px);
  overflow: auto;
}
.studio #editor summary {
  cursor: pointer;
  font-weight: bold;
  padding: 12px 0;
}
.studio #sheet {
  flex: none;
  width: 210mm;
  max-width: none;
  min-height: 297mm;
}
.studio .editable .block.selected {
  outline: 2px solid #168cf1;
  outline-offset: 2px;
}
.studio .editable .block:hover {
  outline-color: #168cf1;
}
.grip {
  position: absolute;
  z-index: 5;
  padding: 0;
  width: 27px;
  height: 27px;
  min-height: 0!important;
  display: grid;
  place-items: center;
  background: #168cf1;
  color: white;
  border: 1px solid white;
  border-radius: 4px;
  touch-action: none;
  user-select: none;
  font: 16px Arial;
}
.move-grip {
  top: -15px;
  left: -12px;
  cursor: grab;
}
.resize-grip {
  right: -12px;
  bottom: -10px;
  cursor: ew-resize;
}
.drop-target {
  outline: 3px dashed #168cf1!important;
}
.studio #editor textarea {
  min-height: 170px;
}
.studio #editor label {
  font-weight: 600;
}
.studio #editor input,.studio #editor textarea,.studio #editor select {
  font-weight: 400;
}
.studio #editor h3 {
  border-top: 1px solid #d5dce4;
  padding-top: 10px;
}
.studio #editor .actions button {
  font-size: 12px;
}
@media screen and (max-width:1180px) {
  .studio #workspace {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    overflow-x: auto;
  }
  .studio #editor {
    width: 100%;
    position: static;
    max-height: none;
    overflow: visible;
  }
  .studio #sheet {
    width: 210mm;
    max-width: none;
    align-self: center;
    display: grid;
    grid-template-columns: var(--width) 1fr;
    min-height: 297mm;
  }
  .studio #workspace {
    align-items: flex-start;
  }
  .studio #sheet {
    align-self: flex-start;
  }
  .studio .right {
    order: 0;
  }
  .studio .column {
    padding: var(--pad);
  }
  .studio .block {
    font-size: var(--blocksize);
  }
}
@media print {
  #studioTools,#login,.grip {
    display: none!important;
  }
  .studio #workspace {
    display: block!important;
    padding: 0!important;
  }
  .studio #sheet {
    width: 210mm!important;
    min-height: 297mm!important;
    height: 297mm!important;
    display: grid!important;
    box-shadow: none!important;
  }
  .studio .editable .block.selected {
    outline: none!important;
  }
  .studio .block {
    outline: none!important;
  }
}
#tools3 {
  align-items: center;
  margin: 0;
}
#tools3 input {
  width: 110px;
}
#tools3 button {
  padding: 6px 9px;
}
.palettes3 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.palettes3 button {
  font-size: 12px;
  text-align: left;
  padding: 7px;
}
.sw3 {
  display: flex;
  height: 17px;
  margin-bottom: 4px;
  border: 1px solid #bbc3cb;
  border-radius: 3px;
  overflow: hidden;
}
.sw3 i {
  flex: 1;
}
.left {
  color: var(--leftInk,white);
}
#sheet.free3 {
  position: relative;
  display: block!important;
  width: 210mm!important;
  height: 297mm!important;
  min-height: 297mm!important;
  max-width: none!important;
  flex: none;
  background-image: linear-gradient(to right,var(--side) 0,var(--side) var(--width),transparent var(--width),transparent 100%);
}
#sheet.free3 .column {
  display: contents;
}
#sheet.free3 .block {
  box-sizing: border-box;
  overflow: visible;
}
#sheet.free3 .photo img {
  max-width: 100%;
  max-height: 100%;
  margin: 0 auto;
}
#sheet.grid3:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 99999;
  background-image: linear-gradient(to right,#168cf126 1px,transparent 1px),linear-gradient(to bottom,#168cf126 1px,transparent 1px);
  background-size: var(--gridstep) var(--gridstep);
}
#sheet.grid3 {
  position: relative;
}
.studio #workspace {
  overflow: auto;
  justify-content: flex-start;
}
.studio #sheet {
  max-width: none!important;
}
.studio #editor {
  min-width: 300px;
}
.studio #editor details {
  border-bottom: 1px solid #d5dce4;
}
.studio #editor summary {
  color: #23445a;
}
.studio #sheet .selected {
  z-index: 10000!important;
}
.studio #editor {
  scrollbar-width: thin;
}
.studio #sheet {
  margin: 18px 0 0 18px;
}
.studio #sheet:before {
  content: '';
  position: absolute;
  left: 0;
  top: -15px;
  width: 100%;
  height: 12px;
  background: repeating-linear-gradient(to right,#aab5c2 0 1px,transparent 1px 5mm);
  pointer-events: none;
}
.studio #sheet {
  position: relative;
}
@media screen and (max-width:850px) {
  #sheet.free3:not(.editable) {
    zoom: .48!important;
  }
  .studio #sheet {
    align-self: flex-start;
  }
  .studio #editor {
    min-width: 0;
  }
  .studio #workspace {
    overflow-x: auto;
  }
  #tools3 {
    flex-wrap: wrap;
  }
}
@media print {
  #sheet {
    zoom: 1!important;
    margin: 0!important;
  }
  #sheet:before {
    display: none!important;
  }
  #sheet.grid3:after {
    display: none;
  }
  #sheet.free3 {
    display: block!important;
    overflow: hidden!important;
  }
  .studio #sheet .selected {
    z-index: auto!important;
  }
}
#nav4 {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  width: 100%;
}
#nav4 .active4 {
  background: #315b81;
  color: white;
  border-color: #315b81;
}
#panel4 {
  display: flex;
  gap: 16px;
  padding: 18px;
  align-items: flex-start;
  max-width: 1500px;
  margin: auto;
}
#panel4[hidden] {
  display: none!important;
}
.controls4 {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  width: 360px;
  flex: none;
  max-height: 82vh;
  overflow: auto;
}
.controls4 label {
  display: block;
  margin: 8px 0;
  font-size: 13px;
}
.controls4 input:not([type=checkbox]),.controls4 textarea {
  display: block;
  width: 100%;
  padding: 8px;
  border: 1px solid #ccd4dc;
  border-radius: 5px;
}
.section4 {
  border: 1px solid #d6dce4;
  border-radius: 8px;
  padding: 12px;
  margin: 12px 0;
}
.thumb4 {
  max-width: 100%;
  max-height: 160px;
}
#preview4 {
  border: 0;
  background: white;
  flex: 1;
  min-width: 0;
  height: 80vh;
  border-radius: 10px;
}
@media(max-width:800px) {
  #panel4 {
    flex-direction: column;
  }
  .controls4 {
    width: 100%;
    max-height: none;
  }
  #preview4 {
    width: 100%;
    flex: auto;
  }
}
@media print {
  #panel4 {
    display: none!important;
  }
}
#sheet {
  color-scheme: light;
}
#sheet.free3 {
  background-image: none!important;
  isolation: isolate;
}
#sheet.free3:before {
  content: none;
}
.studio #sheet.free3:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: var(--width);
  height: 100%;
  background: var(--side);
  z-index: -1;
  pointer-events: none;
}
#sheet.free3:not(.editable):before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: var(--width);
  height: 100%;
  background: var(--side);
  z-index: -1;
  pointer-events: none;
}
@page {
  size: A4 portrait;
  margin: 0;
}
@media print {
  html,body {
    margin: 0!important;
    padding: 0!important;
    width: 210mm!important;
    height: 297mm!important;
    overflow: hidden!important;
    background: #fff!important;
    color-scheme: light!important;
  }
  #workspace {
    display: block!important;
    position: static!important;
    width: 210mm!important;
    height: 297mm!important;
    margin: 0!important;
    padding: 0!important;
    overflow: visible!important;
  }
  #sheet,#sheet.free3,.studio #sheet {
    position: relative!important;
    box-sizing: border-box!important;
    width: 210mm!important;
    height: 297mm!important;
    min-height: 0!important;
    max-height: 297mm!important;
    max-width: 210mm!important;
    margin: 0!important;
    padding: 0!important;
    zoom: 1!important;
    transform: none!important;
    overflow: hidden!important;
    box-shadow: none!important;
    break-inside: avoid;
    print-color-adjust: exact!important;
    -webkit-print-color-adjust: exact!important;
  }
  #sheet.free3:before,.studio #sheet.free3:before {
    display: block!important;
    content: ''!important;
    position: absolute!important;
    top: 0!important;
    left: 0!important;
    width: var(--width)!important;
    height: 100%!important;
    background: var(--side)!important;
    z-index: -1!important;
  }
  #sheet:not(.free3):before {
    display: none!important;
  }
  #bar,#studioTools,#editor,#login,.grip {
    display: none!important;
  }
  #sheet .right {
    background: transparent!important;
  }
  #sheet.grid3:after {
    display: none!important;
  }
}
.levelrow33 {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: space-between;
  margin: 2px 0;
  line-height: 1.25;
}
.leveltext33 {
  flex: 1;
  min-width: 0;
}
.meter33 {
  display: flex;
  flex: 0 0 28%;
  height: 5px;
  gap: 2px;
  align-items: stretch;
  background: #b8c2cb;
}
.meter33 i {
  display: block;
}
.dots33 {
  background: transparent;
  justify-content: space-between;
  height: 7px;
}
.dots33 i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.fill33 {
  height: 100%;
  transform-origin: left;
}
.asset33 {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  object-fit: contain;
}
#sheet a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.animate33:not(.visible33) .fill33 {
  transform: scaleX(0);
}
.animate33.visible33 .fill33 {
  transition: transform .85s ease-out;
  transform: scaleX(1);
}
.animate33:not(.visible33).dots33 i {
  opacity: .25;
}
.animate33.visible33.dots33 i {
  transition: opacity .7s;
  opacity: 1;
}
.parallax33:not(.studio) {
  background-image: linear-gradient(135deg,#dce5ee,#f8fafc 50%,#c9d6e3);
  background-size: 100% 150vh;
  background-attachment: scroll;
}
.studio .animate33 .fill33,[id=sheet].pdfclone33 .fill33 {
  transform: none!important;
  transition: none!important;
}
.pdfclone33 .dots33 i {
  opacity: 1!important;
}
@media(prefers-reduced-motion:reduce) {
  .animate33 .fill33 {
    transform: none!important;
    transition: none!important;
  }
  .animate33.dots33 i {
    opacity: 1!important;
  }
}
