@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,300;0,400;0,600;0,700;0,900;1,400&family=Barlow+Condensed:wght@700;900&display=swap');
:root {
  --cyan: #00b8c8;
  --magenta: #e8006e;
  --yellow: #f5c400;
  --purple: #7b2d8b;
  --dark: #1a2333;
  --mid: #4a5568;
  --bg: #eef5fb;
  --card: #ffffff;
  --border: #ddeaf5;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Barlow', sans-serif;
  background: var(--bg);
  color: var(--dark);
  min-height: 100vh;
  padding: 0;
  margin: 0;
}
.page {
  max-width: 860px;
  margin: 0 auto;
  background: var(--card);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,100,160,0.10);
}

/* HEADER */
.header {
  display: grid;
  grid-template-columns: 200px 1fr;
  grid-template-columns: 150px 1fr;
  /*min-height: 265px;*/
  background: var(--bg);
}
.photo-col {
  position: relative;
  overflow: hidden;
}
.photo-col::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--yellow));
}
.photo-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.header-info {
  padding: 9px 24px 10px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.header-info::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--yellow));
}
.name {
  font-family: 'Barlow', sans-serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--dark);
  line-height: 1.0;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.name em {
  color: var(--cyan);
  font-style: normal;
}
.titles {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}
.title-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mid);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.title-badge::before {
  content: '';
  width: 14px; height: 2px;
  background: var(--magenta);
  flex-shrink: 0;
  border-radius: 2px;
}
.accroche {
  font-size: 0.7em;
  color: var(--mid);
  font-style: italic;
  line-height: 1.65;
  border-left: 3px solid var(--cyan);
  padding: 4px 10px;
  margin-bottom: 8px;
  background: rgba(0,184,200,0.06);
  border-radius: 0 4px 4px 0;
}
.contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 14px;
  font-size: 0.75rem;
  color: var(--mid);
  margin-top:4px;
}
.contact-item { display: flex; align-items: center; gap: 6px; }
.contact-item a { color: var(--cyan); text-decoration: none; font-weight: 500; }
.contact-item a:hover { color: var(--magenta); }
.dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--magenta);
  flex-shrink: 0;
}

/* BODY */
.body {
  display: grid;
  grid-template-columns: 1fr 255px;
}
.main-col {
  padding: 38px 44px;
  padding: 10px;
  border-right: 1px solid var(--border);
}
.side-col {
  padding: 10px 5px;
  background: var(--bg);
}

/* SECTIONS */
.section { margin-bottom: 10px; }
.section:last-child { margin-bottom: 0; }
.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-bottom: 9px;
  margin-bottom: 0;
  padding-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta), transparent);
  border-radius: 2px;
}

/* EXPERIENCE */
.exp-item {
  margin-bottom: 0;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  align-items: start;
  padding-left: 0;
  border-left: 3px solid transparent;
  padding-left: 10px;
  border-image: linear-gradient(to bottom, var(--cyan), var(--magenta)) 1;
  margin-left: 0;
}

.exp-content{
  padding-bottom: 5px;
  margin-bottom:1px;
}
.exp-date {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cyan);
  padding-top: 2px;
  line-height: 1.4;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.exp-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 2px;
}
.exp-company {
  font-size: 0.79rem;
  color: var(--mid);
  font-weight: 400;
}

/* EXPERTISE BULLETS */
.expertise-list { list-style: none; display: flex; flex-direction: column; gap: 3px; }
.expertise-list li {
  font-size: 0.8rem;
  color: var(--mid);
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
}
.expertise-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-size: 0.85rem;
}

/* SIDE */
.side-section {
    margin-bottom: 26px;
    margin-bottom: 10px;
  }
.side-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 5px;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--magenta);
  display: inline-block;
  width: 100%;
}
.side-item {
  font-size: 0.84rem;
  color: var(--mid);
  margin-bottom: 8px;
  line-height: 1.4;
}
.side-item strong {
  color: var(--dark);
  font-weight: 700;
  display: block;
  font-size: 0.82rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  background: var(--cyan);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 20px;
  margin: 3px 2px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.interests-list { display: flex; flex-direction: column; gap: 7px; }
.interests-list li {
  font-size: 0.8rem;
  color: var(--mid);
  list-style: none;
  display: flex; align-items: center; gap: 9px;
}
.interests-list li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
}

.mindmap-bg {
  position: absolute;
  right: 0; top: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}
.header-info > *:not(.mindmap-bg) {
  position: relative;
  z-index: 1;
}

/* ============ RESPONSIVE MOBILE ============ */
@media (max-width: 700px) {
  body { padding: 0; background: white; }
  .page { border-radius: 0; box-shadow: none; }

  /* Header: stack photo on top */
  .header {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .photo-col {
    height: 220px;
    max-height: 220px;
  }
  .photo-col img {
    object-fit: contain;
    object-position: center top;
    background: var(--bg);
  }
  .header-info {
    padding: 24px 20px 20px 20px;
  }
  .header-info::after { display: none; }
  .name { font-size: 1.8rem; }
  .accroche { font-size: 0.82rem; }
  .contacts { gap: 5px 12px; font-size: 0.78rem; }

  /* Hide mindmap on mobile */
  .mindmap-bg { display: none; }

  /* Body: stack main then sidebar */
  .body {
    grid-template-columns: 1fr;
  }
  .main-col {
    padding: 28px 20px;
    border-right: none;
    border-bottom: 2px solid var(--border);
  }
  .side-col {
    padding: 28px 20px;
  }

  /* Hide absolute pictograms on mobile */
  .side-section svg[style*="position:absolute"] {
    display: none;
  }

  /* Exp items */
  .exp-item {
    grid-template-columns: 85px 1fr;
    gap: 8px;
    padding-bottom:5px;
  }
  .exp-date { font-size: 0.68rem; }
  .exp-title { font-size: 0.85rem; }
  .exp-company { font-size: 0.76rem; }

  /* Tags wrap nicely */
  .tag { font-size: 0.68rem; padding: 3px 8px; }

  .section-title { font-size: 0.9rem; }
  .side-title { font-size: 0.82rem; }
  .expertise-list li { font-size: 0.83rem; }
  .side-item { font-size: 0.8rem; }
  .interests-list li { font-size: 0.8rem; }
}

@media (max-width: 420px) {
  .name { font-size: 1.5rem; }
  .title-badge { font-size: 0.7rem; }
  .exp-item { grid-template-columns: 75px 1fr; }
}

@media print {
  body { background: white; padding: 0; }
  .page { box-shadow: none; border-radius: 0; }
  
  /* Masquer le sélecteur de langue et le bouton retour */
  .lang-dropdown-cv,
  .back-to-site {
    display: none !important;
  }
}

/* Language Dropdown */
.lang-dropdown-cv {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  width: 110px;
}

.lang-selected-cv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  background: white;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,100,160,0.15);
  transition: all 0.3s ease;
}

.lang-selected-cv:hover {
  box-shadow: 0 6px 20px rgba(0,100,160,0.25);
}

.lang-selected-cv .flag {
  font-size: 1.2rem;
}

.lang-selected-cv .lang-code {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.9rem;
}

.lang-selected-cv .arrow {
  font-size: 0.7rem;
  color: var(--mid);
  transition: transform 0.3s ease;
}

.lang-dropdown-cv.open .arrow {
  transform: rotate(180deg);
}

.lang-options-cv {
  position: absolute;
  top: 55px;
  left: 0;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,100,160,0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.lang-dropdown-cv.open .lang-options-cv {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option-cv {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lang-option-cv:first-child {
  border-radius: 12px 12px 0 0;
}

.lang-option-cv:last-child {
  border-radius: 0 0 12px 12px;
}

.lang-option-cv:hover {
  background: var(--bg);
}

.lang-option-cv.active {
  background: linear-gradient(135deg, rgba(0,184,200,0.1), rgba(232,0,110,0.1));
}

.lang-option-cv .flag {
  font-size: 1.2rem;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: all 0.3s ease;
}

.lang-option-cv.active .flag {
  filter: grayscale(0%);
  opacity: 1;
}

.lang-option-cv .lang-code {
  font-weight: 600;
  color: var(--mid);
  font-size: 0.85rem;
}

.lang-option-cv.active .lang-code {
  color: var(--cyan);
}

/* Back to site button */
.back-to-site {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 10px 20px;
  background: white;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0,100,160,0.15);
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.back-to-site:hover {
  box-shadow: 0 6px 20px rgba(0,100,160,0.25);
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(0,184,200,0.1), rgba(232,0,110,0.1));
}
