:root{
  --bg0:#eef2f5;
  --bg1:#eef2f5;
  --paper:#ffffff;
  --ink:#0f172a;
  --muted:#475569;
  --line:#e2e8f0;

  /* univers “animalerie” : nature + accent vente */
  --leaf:#6a8f85;
  --leaf2:#44685f;
  --amber:#f59e0b; /* petit accent chaud pour dynamiser */

  --chip:#f1f5f9;
  --soft:#f8fafc;
  --shadow: 0 18px 60px rgba(15,23,42,.14);
  --ring: 0 0 0 3px rgba(15,118,110,.12);
  --radius: 14px;
  --radius-sm: 10px;
  --stroke: 1px solid rgba(15,23,42,.08);
}

*{box-sizing:border-box}
html{ scroll-behavior: auto; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--ink);
  background:
    radial-gradient(900px 520px at 14% 6%, rgba(15,118,110,.10), transparent 60%),
    radial-gradient(700px 420px at 92% 0%, rgba(245,158,11,.08), transparent 62%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  padding: 28px 14px;
}

.page{
  max-width: 1040px;
  margin: 0 auto;
  background: var(--paper);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15,23,42,.08);
  position: relative;
}

.page:before{
  content:"";
  position:absolute;
  inset:-1px;
  pointer-events:none;
  z-index:0;
  /* Style Canva-like: les formes sont dans les sections, pas sur tout le “papier” */
  background: transparent;
  opacity: 1;
}

.page:after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:0;
  background: transparent;
}

/* S’assurer que le contenu reste au-dessus des formes */
.page > *{
  position: relative;
  z-index: 1;
}

header{
  position:relative;
  padding: 26px 26px 20px;
  background: linear-gradient(180deg, #6a8f85 0%, #44685f 100%);
  border-bottom: 1px solid var(--line);
}

header:before{
  content:none;
}

/* Formes pleines dans le header (douces, “pro”) */
.top{ position:relative; }
.value{ position:relative; }

.top:before,
.top:after,
.value:before{
  display:none;
}

.top:before{
  content:"";
  position:absolute;
  left:-46px;
  top:-46px;
  width: 180px;
  height: 180px;
  border-radius: 62% 38% 58% 42% / 56% 44% 60% 40%;
  background: rgba(15,118,110,.14);
  transform: rotate(-14deg);
  pointer-events:none;
  z-index:0;
}
.top:after{
  content:"";
  position:absolute;
  right:-52px;
  top:-34px;
  width: 220px;
  height: 160px;
  border-radius: 44% 56% 40% 60% / 55% 45% 58% 42%;
  background: rgba(245,158,11,.12);
  transform: rotate(10deg);
  pointer-events:none;
  z-index:0;
}
.value:before{
  content:"";
  position:absolute;
  right: 14%;
  top: -22px;
  width: 120px;
  height: 120px;
  border-radius: 58% 42% 56% 44% / 40% 60% 44% 56%;
  background: rgba(2,132,199,.08);
  transform: rotate(16deg);
  pointer-events:none;
  z-index:0;
}

header:after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-1px;
  height: 4px;
  background: linear-gradient(90deg, var(--leaf), var(--amber));
  opacity:.9;
}

.top{
  display:flex;
  gap:18px;
  align-items:flex-start;
  justify-content:space-between;
  flex-wrap:wrap;
}

.brand{
  display:flex;
  gap:14px;
  align-items:flex-start;
}

.photo-wrap{
  width: 88px;
  height: 88px;
  border-radius: var(--radius);
  overflow:hidden;
  border: var(--stroke);
  background: linear-gradient(135deg, rgba(15,118,110,.10), rgba(245,158,11,.06));
  box-shadow:
    0 10px 22px rgba(0,0,0,.08),
    var(--ring);
  flex: 0 0 auto;
}
.photo{
  width:100%;
  height:100%;
  display:block;
  object-fit: cover;
}

.badge{
  width:44px; height:44px;
  border-radius: 14px;
  background: var(--leaf);
  box-shadow: none;
  position:relative;
  flex:0 0 auto;
}
.badge:before{
  content:"";
  position:absolute; inset:10px 12px 10px 12px;
  border-radius: 12px;
  border:2px solid rgba(255,255,255,.75);
  opacity:.9;
}

h1{
  margin:0;
  font-size: 28px;
  letter-spacing:.2px;
  line-height: 1.1;
  color:#fff;
}

.headline{
  margin: 6px 0 0;
  color: rgba(255,255,255,.88);
  font-weight: 600;
  letter-spacing: .01em;
}
.headline strong{ color: #fff; }

/* Accent minimal: pas de surlignage “UI” */
.headline strong{ font-weight: 650; }

/* Le titre (poste visé) doit rester dominant, sans inline style */
#cv_targetTitle{
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .01em;
  color:#fff;
}
#cv_targetTitle{
  position: relative;
  padding-bottom: 2px;
}
#cv_targetTitle:after{
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;
  width: 68px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  opacity: .9;
}

.contact{
  font-size: 14px;
  color: rgba(255,255,255,.88);
  line-height: 1.55;
  text-align:right;
  min-width: 260px;
}
.contact a{ color:inherit; text-decoration:none; }
.contact a:focus-visible{ outline: 2px solid rgba(15,118,110,.35); outline-offset: 2px; border-radius: 6px; }

.actions{ margin-top: 10px; display:flex; justify-content:flex-end; }
.btn{
  appearance:none;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.18);
  color: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 650;
  cursor:pointer;
  transition: none;
}
.btn:focus-visible{
  outline: 3px solid rgba(15,118,110,.22);
  outline-offset: 2px;
}

.value{
  margin-top: 14px;
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 14px;
  align-items:stretch;
}

.pitch{
  border: 1px solid rgba(93,124,99,.22);
  background: #fff;
  border-radius: 14px;
  padding: 14px 14px;
  position:relative;
  overflow:hidden;
}

.pitch:before{
  content:"";
  position:absolute;
  right:-34px;
  top:-34px;
  width:110px;
  height:110px;
  border-radius: 26px;
  background: rgba(15,118,110,.10);
  transform: rotate(18deg);
  opacity:.55;
  pointer-events:none;
}
.pitch .kicker{
  display:inline-flex;
  gap:8px;
  align-items:center;
  font-weight: 700;
  letter-spacing:.02em;
  text-transform:none;
  font-size: 12px;
  color: var(--ink);
}
.dot{
  width:8px; height:8px; border-radius: 99px;
  background: var(--leaf);
  box-shadow: 0 0 0 3px rgba(245,158,11,.18);
}
.pitch p{
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.targets{
  border: 1px solid rgba(93,124,99,.22);
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  position:relative;
  overflow:hidden;
}

.targets:before{
  content:"";
  position:absolute;
  left:-30px;
  bottom:-30px;
  width:120px;
  height:120px;
  background: rgba(245,158,11,.10);
  transform: rotate(0deg);
  border-radius: 999px;
  pointer-events:none;
  opacity:.6;
}
.targets .title{
  margin:0;
  font-weight: 700;
  font-size: 14px;
}
.pill{
  margin-top:10px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.pill span{
  background: rgba(93,124,99,.10);
  border: 1px solid rgba(93,124,99,.22);
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 650;
  color:#0f172a;
}

main{
  display:grid;
  grid-template-columns: 1.55fr .95fr;
  gap:0;
  position:relative;
}

/* Formes pleines dans le corps (sans dégradés) */
.left:before{
  content:"";
  position:absolute;
  left:-70px;
  top: 18%;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(15,118,110,.06);
  pointer-events:none;
  z-index:0;
}
.right:after{
  content:none;
}

main:before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:0;
  /* Formes pleines (sans dégradés) */
  background: transparent;
  opacity:1;
}
.col{
  padding: 18px 26px 26px;
  position:relative;
  z-index:1;
}
.right{
  border-left: 1px solid var(--line);
  background: #fbfcfe;
  position:relative;
  overflow:hidden;
}

.right:before{
  content:none;
}

/* (rollback) La colonne droite reprend les styles globaux (titres/tags). */

h2{
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing:.02em;
  text-transform:none;
  color:#111827;
  font-weight: 700;
}
h2{
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(15,23,42,.08);
}

section{ margin: 0 0 18px; }

.list{
  border: 1px solid rgba(93,124,99,.20);
  background:#fff;
  border-radius: 14px;
  overflow:hidden;
  position:relative;
}

.list:before{
  content:"";
  position:absolute;
  top:0;
  right:0;
  width:78px;
  height:78px;
  pointer-events:none;
  opacity:.38;
  background: rgba(93,124,99,.10);
}

/* Rendre les sections plus “punchy” sans changer le contenu */
section > h2{
  position: relative;
  padding-left: 12px;
}
section > h2:before{
  content:"";
  position:absolute;
  left:0;
  top: 2px;
  bottom: 2px;
  width: 4px;
  border-radius: 999px;
  background: var(--leaf);
}
.item{
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}
.item:first-child{ border-top: 0; }
.row{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:baseline;
  flex-wrap:wrap;
}
.role{
  font-weight: 750;
  color:#0f172a;
}
.dates{
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 650;
  white-space:nowrap;
}
.where{
  margin-top:4px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

ul{
  margin: 10px 0 0;
  padding-left: 18px;
  color:#0f172a;
}
li{ margin:6px 0; color:#0f172a; }
.muted{ color: var(--muted); }

/* Timeline moderne (uniquement expériences pro) */
#cv_experiencesList .item ul{
  list-style:none;
  padding-left: 0;
  margin: 10px 0 0;
}
#cv_experiencesList .item ul li{
  position: relative;
  padding-left: 20px;
  margin: 9px 0;
}
#cv_experiencesList .item ul li:before{
  content:"";
  position:absolute;
  left: 0;
  top: .35em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--leaf);
  box-shadow: 0 6px 14px rgba(15,23,42,.10);
}
#cv_experiencesList .item ul li:not(:last-child):after{
  content:"";
  position:absolute;
  left: 4px;
  top: calc(.35em + 14px);
  bottom: -12px;
  width: 2px;
  border-radius: 999px;
  background: rgba(106,143,133,.28);
}

/* Centres d’intérêt: icônes + libellé (au lieu de texte brut) */
#cv_interestsList.icon-list{
  list-style:none;
  padding-left: 0;
  margin: 10px 0 0;
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
#cv_interestsList.icon-list .icon-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(106,143,133,.22);
  background: rgba(106,143,133,.10);
}
#cv_interestsList.icon-list .icon{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(106,143,133,.22);
  color: var(--leaf);
  flex: 0 0 auto;
}
#cv_interestsList.icon-list .icon svg{
  width: 16px;
  height: 16px;
  display:block;
}
#cv_interestsList.icon-list .label{
  font-weight: 650;
  color:#0f172a;
  font-size: 12.5px;
}

.chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.chip{
  background: rgba(93,124,99,.14);
  border: 1px solid rgba(93,124,99,.26);
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 650;
  color:#0f172a;
}


/* Lisibilité: resserrer légèrement les listes (sans réduire le contenu) */
ul{ padding-left: 16px; }
li{ margin: 5px 0; }

.cta{
  border: 1px dashed rgba(93,124,99,.45);
  background: rgba(93,124,99,.08);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13.5px;
  color:#0f172a;
  font-weight: 650;
  line-height: 1.45;
}

@media (max-width: 900px){
  .value{ grid-template-columns: 1fr; }
  main{ grid-template-columns: 1fr; }
  .right{ border-left:0; border-top:1px solid var(--line); }
  .contact{ text-align:left; min-width: auto; }
  .actions{ justify-content:flex-start; }
  .photo-wrap{ width: 76px; height: 76px; }
}
@media print{
  .actions{ display:none; }
  .btn{ display:none; }
  @page { size: A4; margin: 0; }

  html,
  body{
    width: 210mm;
    min-height: 297mm;
    margin: 0;
    padding: 0;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* IMPORTANT: conserver la même direction couleur qu’à l’écran.
     (Le navigateur peut nécessiter l’option “Imprimer les arrière-plans”.) */
  body{
    background:
      radial-gradient(900px 520px at 14% 6%, rgba(15,118,110,.10), transparent 60%),
      radial-gradient(700px 420px at 92% 0%, rgba(245,158,11,.08), transparent 62%),
      linear-gradient(180deg, var(--bg0), var(--bg1));
  }

  body,
  p,
  li{
    font-size: 11px;
    line-height: 1.4;
  }

  .page{
    width: 210mm;
    min-height: 297mm;
    margin: 0;
    padding: 0;
    box-shadow:none;
    border:0;
    border-radius:0;
    max-width: none;
    overflow: hidden;
    color: #0f172a;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Conserver les décos en impression (même rendu que l’écran).
     Note: selon le navigateur, il faut activer “Imprimer les arrière-plans”. */
  .page:before,
  .page:after,
  header:before,
  main:before,
  .pitch:before,
  .targets:before,
  .list:before{
    display:block !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
 
  .right{ border-left: 1px solid var(--line); }
  a{ text-decoration:none; }

  /* Fix navigateur: verrouiller la mise en page en impression */
  .top{ display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:nowrap; }
  main{ display:grid; grid-template-columns: 1.55fr .95fr; }
  .value{ display:grid; grid-template-columns: 1.25fr .75fr; }

  /* Légère compaction (sans écraser la lisibilité) */
  header{ padding: 14px 14px 10px; }
  .col{ padding: 10px 14px 12px; }
  section{ margin: 0 0 10px; }
  .value{ margin-top: 10px; gap: 10px; }
  .item{ padding: 8px 10px; }
  ul{ margin: 8px 0 0; }
  li{ margin: 4px 0; }
  .photo-wrap{ width: 62px; height: 62px; }


  /* Garder la barre d’accent (teal → ambre) comme en mode écran */
  header:after{
    background: linear-gradient(90deg, var(--leaf), var(--amber));
    opacity: .9;
  }

  /* Éviter les sauts de page internes */
  .page,
  header,
  section,
  .list,
  .item,
  .cta{
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

