:root {
  --text-main: #445571;
  --text-accent: #a30000;
  --line: #44597c;
  --bg-main: #f3f3f3;
  --bg-left: #d8d8d8;
  --bg-right: #44597c;

  --page-max: 1280px;
  --page-min: 980px;

  --left-col: 160px;
  --right-col: 255px;

  --main-pad-left: 16px;
  --main-pad-right: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  display: flex;
  justify-content: center;
}

.cv-page {
  width: min(var(--page-max), calc(100vw - 32px));
  min-width: var(--page-min);
  margin: 0 auto 0px auto;
  overflow: hidden;
}

/* Bandeau supérieur */

.cv-topband {
  width: 100%;
  background: var(--bg-right);
  color: #ffffff;
  margin: 0;
  padding: 0;
}

.cv-topband__inner {
  padding: 10px 24px 36px 24px;
}

.cv-topband__top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  column-gap: 24px;
  margin-bottom: 12px;
}

.cv-topband__identity {
  min-width: 0;
}

.cv-topband__name {
  margin: 0 0 6px 0;
  color: #ffffff;
  font-size: clamp(20px, 1.1vw + 14px, 36px);
  line-height: 1;
  font-weight: 700;
}

.cv-topband__contact {
  color: #ffffff;
  font-size: clamp(14px, 0.4vw + 11px, 18px);
  line-height: 1.14;
  font-weight: 400;
}

.cv-topband__contact div {
  margin: 0;
}

.cv-topband__photo {
  align-self: start;
  justify-self: end;
  color: #ff6b8a;
  font-size: clamp(16px, 0.55vw + 13px, 20px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-top: 72px;
  white-space: nowrap;
}

.cv-topband__title {
  margin: 6px 0 30px 0;
  color: #ffffff;
  text-align: center;
  font-size: clamp(20px, 1.1vw + 14px, 36px);
  line-height: 1.02;
  font-weight: 700;
}

.cv-topband__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
  align-items: start;
}

.cv-topband__col {
  color: #ffffff;
  font-size: clamp(14px, 0.4vw + 11px, 18px);
  line-height: 1.14;
  font-weight: 400;
}

.cv-topband__col p {
  margin: 0;
}

.cv-topband__col p + p {
  margin-top: 2px;
}

/* Layout principal */

.cv-body {
  display: grid;
  grid-template-columns: 1fr var(--right-col);
  align-items: start;
}

.cv-timeline {
  width: 100%;
}

.cv-sidepanel {
  background: var(--bg-right);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.cv-sidepanel__spacer {
  height: 90px;
  background: var(--bg-right);
}

.cv-sidepanel__filler {
  flex: 1;
  background: var(--bg-right);
}

/* Colonne gauche / expériences */

.cv-company {
  width: 100%;
}

.row {
  display: grid;
  grid-template-columns: var(--left-col) 1fr;
  align-items: stretch;
}

.rail--left {
  background: var(--bg-left);
}

.main {
  background: var(--bg-main);
  padding: 0 var(--main-pad-right) 10px var(--main-pad-left);
}

.row--header .main {
  padding-top: 12px;
  padding-bottom: 8px;
  border-top: 0;
  border-bottom: 0;
}

.cv-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  column-gap: 24px;
  margin-bottom: 2px;
}

.company {
  margin: 0;
  color: var(--text-accent);
  font-size: clamp(20px, 1.1vw + 14px, 36px);
  line-height: 1;
  font-weight: 700;
}

.duration {
  margin: 0;
  color: var(--text-accent);
  font-size: clamp(20px, 1vw + 14px, 36px);
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}

.sector {
  margin: 4px 0 0 0;
  color: var(--text-main);
  font-size: clamp(15px, 0.45vw + 12px, 18px);
  line-height: 1.12;
  font-weight: 400;
}

.row:not(.row--company-end):not(.row--header):not(.row--transition-logos) .main {
  border-bottom: 0;
}

.row--company-end .main {
  border-bottom: 3px solid var(--line);
  padding-bottom: 10px;
}

.period-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 6px 10px 10px 10px;
}

.period-cell--top-1 {
  padding-top: 8px;
}

.period-cell--top-2 {
  padding-top: 14px;
}

.period-cell--top-logos {
  padding-top: 18px;
}

.period-cell--with-flag {
  padding-top: 10px;
}

.role-period {
  margin: 0;
  color: var(--text-main);
  font-size: clamp(16px, 0.55vw + 13px, 20px);
  line-height: 1.08;
  font-weight: 700;
  text-align: center;
  white-space: normal;
}

.role-flag {
  display: block;
  width: 34px;
  height: 22px;
  margin-top: 25px;
  border: 0;
  border-radius: 1px;
  transform: perspective(90px) rotate(-12deg) skewX(-8deg) scaleY(1.02);
  box-shadow: 3px 4px 7px rgba(0, 0, 0, 0.24);
  position: relative;
}

.role-flag::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(255, 255, 255, 0.22) 0%,
      rgba(255, 255, 255, 0.08) 18%,
      rgba(0, 0, 0, 0.06) 38%,
      rgba(255, 255, 255, 0.16) 58%,
      rgba(0, 0, 0, 0.08) 78%,
      rgba(255, 255, 255, 0.10) 100%
    );
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.role-flag--italy {
  background:
    linear-gradient(
      to right,
      #009246 0 33.333%,
      #ffffff 33.333% 66.666%,
      #ce2b37 66.666% 100%
    );
}

.role-flag--uae {
  background:
    linear-gradient(to right, #ff0000 0 25%, transparent 25% 100%),
    linear-gradient(to bottom, #00732f 0 33.333%, #ffffff 33.333% 66.666%, #000000 66.666% 100%);
}

.role-title {
  margin: 0;
  color: var(--text-main);
  font-size: clamp(16px, 0.55vw + 13px, 20px);
  line-height: 1.08;
  font-weight: 700;
}

.role-title .location {
  font-weight: 400;
}

.role-desc {
  margin: 0;
  color: var(--text-main);
  font-size: clamp(14px, 0.4vw + 11px, 18px);
  line-height: 1.14;
  font-weight: 400;
}

.role-desc + .role-desc {
  margin-top: 4px;
}

.role-desc--final {
  margin-top: 4px;
}

.role-desc--justify {
  text-align: justify;
  text-justify: inter-word;
}

.role-list {
  margin: 4px 0 0 0;
  padding-left: 0;
  list-style: none;
  color: var(--text-main);
}

.role-list li {
  position: relative;
  margin: 0 0 0 24px;
  font-size: clamp(14px, 0.4vw + 11px, 18px);
  line-height: 1.14;
  font-weight: 400;
}

.role-list li + li {
  margin-top: 2px;
}

.role-list li::before {
  content: "•";
  position: absolute;
  left: -24px;
  top: 0;
  font-size: clamp(14px, 0.4vw + 11px, 18px);
  line-height: 1;
}

.row + .row .main {
  padding-top: 10px;
}

.row--transition-logos .main {
  padding-top: 6px;
  padding-bottom: 6px;
  border-top: 4px solid var(--line);
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 24px;
  align-items: start;
  margin: 0;
}

.company-grid__item {
  text-align: center;
}

.company-grid__name {
  margin: 0 0 2px 0;
  color: var(--text-accent);
  font-size: clamp(20px, 1vw + 14px, 36px);
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
}

.company-grid__sector {
  margin: 0;
  color: var(--text-main);
  font-size: clamp(14px, 0.4vw + 11px, 18px);
  line-height: 1.08;
  font-weight: 400;
}

/* Panneau droit continu */

.side-section + .side-section {
  margin-top: 100px;
}

.side-section__title {
  background: #efefef;
  color: var(--text-main);
  text-align: center;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 700;
  padding: 10px 8px 10px 8px;
}

.side-section__body {
  background: var(--bg-right);
  color: #ffffff;
  padding: 20px 14px 16px 14px;
  font-size: 14px;
  line-height: 1.12;
  font-weight: 400;
}

.side-section__body p {
  margin: 0;
}

.side-section__body p + p {
  margin-top: 16px;
}

.side-section__body strong {
  font-weight: 700;
}

.side-list {
  margin: 0;
  padding: 0 0 0 16px;
}

.side-list li {
  margin: 0;
  line-height: 1.12;
}

.side-list li + li {
  margin-top: 14px;
}

@media (max-width: 1320px) {
  .cv-page {
    width: calc(100vw - 32px);
  }
}

@media (max-width: 1012px) {
  .cv-page {
    min-width: 980px;
  }
}
/* IMPRESSION */
