*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: 215 45% 20%;
  --primary-foreground: 40 20% 97%;
  --foreground: 220 25% 15%;
  --card: 40 20% 99%;
  --muted: 40 15% 95%;
  --muted-foreground: 215 12% 50%;
  --accent: 38 75% 55%;
  --accent-foreground: 0 0% 100%;
  --border: 215 20% 85%;
  --background: 40 30% 96%;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
}

body {
  font-family: var(--font-body);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
}

.cv-container {
  max-width: 920px;
  margin: 2.5rem auto;
  background: hsl(var(--card));
  box-shadow: 0 1px 3px hsl(var(--primary) / 0.04), 0 8px 40px hsl(var(--primary) / 0.08);
  border: 1px solid hsl(var(--border));
  position: relative;
}

.cv-corner {
  position: absolute; width: 28px; height: 28px;
  border-color: hsl(var(--accent)); pointer-events: none; z-index: 2;
}
.cv-corner--tl { top: -1px; left: -1px; border-top: 3px solid; border-left: 3px solid; }
.cv-corner--tr { top: -1px; right: -1px; border-top: 3px solid; border-right: 3px solid; }
.cv-corner--bl { bottom: -1px; left: -1px; border-bottom: 3px solid; border-left: 3px solid; }
.cv-corner--br { bottom: -1px; right: -1px; border-bottom: 3px solid; border-right: 3px solid; }

.cv-header {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(215 40% 28%));
  color: hsl(var(--primary-foreground));
  padding: 2.8rem 3rem; display: flex; align-items: center; gap: 2.5rem;
  position: relative; overflow: hidden;
}

.cv-header::before {
  content: ''; position: absolute; top: 0; right: 0; width: 260px; height: 260px;
  background: radial-gradient(circle, hsl(var(--accent) / 0.08) 0%, transparent 70%); pointer-events: none;
}

.cv-photo-frame {
  width: 130px; height: 130px; min-width: 130px;
  border: 3px solid hsl(var(--accent)); border-radius: 50%;
  background: hsl(var(--primary-foreground) / 0.08);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  box-shadow: 0 0 0 6px hsl(var(--accent) / 0.15); position: relative; z-index: 1;
}

.cv-photo-frame svg { width: 50px; height: 50px; opacity: 0.35; color: hsl(var(--primary-foreground)); }
.cv-header-text { position: relative; z-index: 1; }

.cv-name {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 700;
  letter-spacing: 0.02em; line-height: 1.15;
}

.cv-title {
  font-family: var(--font-body); font-size: 1rem; font-weight: 300;
  letter-spacing: 0.18em; text-transform: uppercase; margin-top: 0.5rem; color: hsl(var(--accent));
}

.cv-header-line { width: 50px; height: 2px; background: hsl(var(--accent)); margin-top: 0.8rem; border: none; }

.cv-body { display: grid; grid-template-columns: 1fr 280px; }
.cv-main { padding: 2rem 2.5rem 2.5rem; border-right: 1px solid hsl(var(--border)); }
.cv-sidebar { padding: 2rem 1.5rem 2.5rem; background: hsl(var(--muted)); display: flex; flex-direction: column; }

.cv-section-title {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 600;
  color: hsl(var(--primary)); text-transform: uppercase; letter-spacing: 0.12em;
  padding-bottom: 0.5rem; margin-bottom: 1.2rem; margin-top: 2rem; position: relative;
}

.cv-section-title::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 40px; height: 2.5px; background: hsl(var(--accent)); border-radius: 2px;
}

.cv-section-title:first-child, .cv-sidebar .cv-section-title:first-child { margin-top: 0; }

.cv-about {
  font-size: 0.92rem; color: hsl(var(--foreground) / 0.82); line-height: 1.75;
  border-left: 3px solid hsl(var(--accent) / 0.3); padding-left: 1rem; font-style: italic;
  text-align: justify;
}

.cv-timeline { position: relative; padding-left: 1.5rem; }

.cv-timeline::before {
  content: ''; position: absolute; left: 0; top: 4px; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, hsl(var(--accent)), hsl(var(--border)));
}

.cv-timeline-entry { position: relative; margin-bottom: 1.5rem; padding-bottom: 0.25rem; }

.cv-timeline-entry::before {
  content: ''; position: absolute; left: -1.5rem; top: 6px; width: 10px; height: 10px;
  border-radius: 50%; background: hsl(var(--accent));
  border: 2px solid hsl(var(--card)); box-shadow: 0 0 0 2px hsl(var(--accent) / 0.3);
}

.cv-entry-header { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.5rem; }
.cv-entry-role { font-weight: 600; font-size: 1rem; color: hsl(var(--foreground)); }

.cv-entry-date {
  font-size: 0.8rem; color: hsl(var(--muted-foreground)); white-space: nowrap;
  background: hsl(var(--primary) / 0.06); padding: 0.15rem 0.6rem; border-radius: 1rem; font-weight: 500;
}

.cv-entry-company { font-size: 0.88rem; font-style: italic; color: hsl(var(--accent)); margin-bottom: 0.3rem; font-weight: 500; }
.cv-entry-desc { font-size: 0.88rem; color: hsl(var(--foreground) / 0.82); line-height: 1.65; }
.cv-entry-desc ul { padding-left: 1.2rem; margin: 0.3rem 0 0 0; list-style: none; }
.cv-entry-desc li { margin-bottom: 0.25rem; position: relative; padding-left: 0.2rem; }

.cv-entry-desc li::before {
  content: '▸'; position: absolute; left: -1rem; color: hsl(var(--accent)); font-weight: 700;
}

.cv-formation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }

.cv-formation-card {
  padding: 0.9rem 1rem; background: hsl(var(--muted)); border-radius: 0.5rem;
  border-left: 3px solid hsl(var(--accent)); transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cv-formation-card:hover { transform: translateY(-1px); box-shadow: 0 4px 12px hsl(var(--primary) / 0.06); }
.cv-formation-card .cv-entry-role { font-size: 0.88rem; line-height: 1.35; }
.cv-formation-card .cv-entry-date { font-size: 0.75rem; display: inline-block; margin-top: 0.3rem; }
.cv-formation-card .cv-entry-company { font-size: 0.78rem; margin-bottom: 0; }
.cv-formation-card .cv-entry-desc { font-size: 0.8rem; margin-top: 0.25rem; }

.cv-performances { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }

.cv-perf-card {
  background: linear-gradient(135deg, hsl(var(--primary) / 0.05), hsl(var(--accent) / 0.06));
  border: 1px solid hsl(var(--primary) / 0.1); border-radius: 0.6rem;
  padding: 1.2rem 1rem; text-align: center; position: relative; overflow: hidden;
}

.cv-perf-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, hsl(var(--accent)), hsl(var(--primary)));
}

.cv-perf-label {
  font-size: 0.78rem; font-weight: 600; color: hsl(var(--primary));
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.4rem;
}

.cv-perf-value { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: hsl(var(--accent)); line-height: 1; }
.cv-perf-sub { font-size: 0.78rem; color: hsl(var(--muted-foreground)); margin-top: 0.2rem; }

.cv-main-photo-card {
  width: 100%; aspect-ratio: 16 / 9; border-radius: 0.75rem; overflow: hidden;
  border: 1px solid hsl(var(--primary) / 0.1);
  background: linear-gradient(135deg, hsl(var(--primary) / 0.03), hsl(var(--accent) / 0.05));
  margin-top: 0.5rem;
}

.cv-main-photo-card img { width: 100%; height: 100%; object-fit: cover; }

.cv-main-photo-placeholder {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.5rem;
  color: hsl(var(--muted-foreground) / 0.4); font-size: 0.85rem;
}

.cv-langue { display: flex; justify-content: space-between; align-items: center; font-size: 0.86rem; margin-bottom: 0.5rem; }
.cv-langue-dots { display: flex; gap: 4px; }

.cv-langue-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: hsl(var(--border)); transition: background 0.3s ease;
}

.cv-langue-dot.active { background: hsl(var(--accent)); }

.cv-skill-group { margin-bottom: 0.9rem; }
.cv-skill-header { display: flex; justify-content: space-between; align-items: baseline; }
.cv-skill-label { font-weight: 600; font-size: 0.82rem; color: hsl(var(--primary)); margin-bottom: 0.35rem; }
.cv-skill-pct { font-size: 0.72rem; color: hsl(var(--muted-foreground)); font-weight: 500; }

.cv-skill-bar-bg { height: 5px; background: hsl(var(--border)); border-radius: 3px; overflow: hidden; }

.cv-skill-bar {
  height: 100%; background: linear-gradient(90deg, hsl(var(--accent)), hsl(38 85% 62%));
  border-radius: 3px; transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cv-tools-grid { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.cv-tool-tag {
  font-size: 0.72rem; font-weight: 500; padding: 0.2rem 0.55rem; border-radius: 1rem;
  background: hsl(var(--primary) / 0.07); color: hsl(var(--primary));
  border: 1px solid hsl(var(--primary) / 0.12); transition: all 0.2s;
}

.cv-tool-tag:hover {
  background: hsl(var(--accent) / 0.12); color: hsl(var(--accent));
  border-color: hsl(var(--accent) / 0.25);
}

.cv-spec-list { list-style: none; padding: 0; margin: 0; }

.cv-spec-list li {
  font-size: 0.82rem; color: hsl(var(--foreground) / 0.82);
  padding: 0.3rem 0 0.3rem 1rem; position: relative;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}

.cv-spec-list li:last-child { border-bottom: none; }

.cv-spec-list li::before {
  content: '◆'; position: absolute; left: 0; font-size: 0.5rem;
  color: hsl(var(--accent)); top: 50%; transform: translateY(-50%);
}

.cv-photo-cards {
  display: flex; flex-direction: column; gap: 0.6rem;
  flex: 1;
}

.cv-photo-card {
  width: 100%; flex: 1; border-radius: 0.6rem; overflow: hidden;
  border: 1px solid hsl(var(--border)); background: hsl(var(--card));
  box-shadow: 0 2px 8px hsl(var(--primary) / 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease; position: relative;
  min-height: 80px;
}

.cv-photo-card::after {
  content: ''; position: absolute; inset: 0; border-radius: 0.6rem;
  border: 1px solid hsl(var(--accent) / 0); transition: border-color 0.3s ease; pointer-events: none;
}

.cv-photo-card:hover {  transform: translateY(-4px) scale(1.02);  box-shadow: 0 12px 28px hsl(var(--primary) / 0.18);}
.cv-photo-card:hover::after { border-color: hsl(var(--accent) / 0.4); }

.cv-photo-card-placeholder {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.35rem; color: hsl(var(--muted-foreground));
}

.cv-photo-card-placeholder svg { opacity: 0.25; }

.cv-photo-card-placeholder span {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}

.cv-photo-card img { width: 100%; height: 100%; object-fit: cover; }

/* ── Footer ── */
.cv-footer {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(215 40% 28%));
  color: hsl(var(--primary-foreground) / 0.6);
  text-align: center;
  padding: 1rem 2rem;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.cv-fade-in { opacity: 0; transform: translateY(12px); transition: opacity 0.6s ease, transform 0.6s ease; }
.cv-fade-in.visible { opacity: 1; transform: translateY(0); }

@media print {
  .cv-container { box-shadow: none; margin: 0; border: none; }
  .cv-corner { display: none; }
  .cv-fade-in { opacity: 1; transform: none; }
  .cv-footer { background: hsl(var(--muted)); color: hsl(var(--foreground)); }
}

@media (max-width: 700px) {
  .cv-header { flex-direction: column; text-align: center; padding: 1.8rem 1.5rem; }
  .cv-header-line { margin-left: auto; margin-right: auto; }
  .cv-body { grid-template-columns: 1fr; }
  .cv-main { border-right: none; border-bottom: 1px solid hsl(var(--border)); padding: 1.5rem; }
  .cv-sidebar { padding: 1.5rem; }
  .cv-formation-grid { grid-template-columns: 1fr; }
  .cv-photo-card { min-height: 120px; }
  
.cv-performances {  grid-template-columns: 1fr;}
.cv-campaigns {  justify-content: center;}
.cv-contact-form-card {  padding: 16px;}
.cv-contact-form-card input,
.cv-contact-form-card textarea {  font-size: 14px;}
}

/* Ajout pour l'affichage correct des images */


.cv-photo-frame img,
.cv-photo-card img,
.cv-main-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Assure que l'image remplit le cadre sans être déformée */
}

/* Alignement et espacement pour toutes les icônes de contact */
.cv-contact-item svg {
  margin-right: 10px; /* Augmente l'espace entre l'icône et le texte */
  flex-shrink: 0; /* Empêche l'icône de se rétrécir */
}

/* Style pour le lien LinkedIn */
.cv-contact-item a {
  text-decoration: none; /* Enlève le soulignement */
  color: inherit; /* Garde la couleur du texte par défaut */
  transition: color 0.3s;
}

.cv-contact-item a:hover {
  color: var(--accent); /* Change la couleur au survol pour indiquer que c'est un lien */
}



.cv-contact-item {
  display: flex; align-items: center; gap: 0.6rem; font-size: 0.86rem;
  margin-bottom: 0.55rem; color: hsl(var(--foreground)); transition: color 0.2s;
}

.cv-contact-item:hover { color: hsl(var(--accent)); }
.cv-contact-item svg { width: 15px; height: 15px; min-width: 15px; color: hsl(var(--accent)); }


/* ── Formulaire contact portfolio ── */

.cv-contact-form-card {
  width: 100%;
  padding: 14px;
  border-radius: 0.6rem;
  border: 1px solid hsl(var(--border));
  background: linear-gradient(
    135deg,
    hsl(var(--primary) / 0.03),
    hsl(var(--accent) / 0.05)
  );
  box-shadow: 0 3px 12px hsl(var(--primary) / 0.06);
}

.cv-contact-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: hsl(var(--primary));
  margin-bottom: 4px;
}

.cv-contact-subtitle {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 10px;
  line-height: 1.4;
}

.cv-contact-form-card form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cv-contact-form-card input,
.cv-contact-form-card textarea {
  padding: 7px 9px;
  border-radius: 6px;
  border: 1px solid hsl(var(--border));
  font-family: inherit;
  font-size: 12px;
  background: hsl(var(--card));
  transition: all 0.25s ease;
}

.cv-contact-form-card input:focus,
.cv-contact-form-card textarea:focus {
  outline: none;
  border-color: hsl(var(--accent));
  box-shadow: 0 0 6px hsl(var(--accent) / 0.35);
}

.cv-contact-form-card textarea {
  min-height: 60px;
  resize: vertical;
}

.cv-cta-button {
  margin-top: 4px;
  padding: 7px;
  font-size: 12px;
  background: linear-gradient(
    90deg,
    hsl(var(--accent)),
    hsl(38 85% 62%)
  );
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cv-cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px hsl(var(--accent) / 0.35);
}


/* Overlay portfolio */

.cv-photo-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    hsl(var(--primary) / 0.8),
    transparent
  );
  display: flex;
  align-items: flex-end;
  padding: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cv-photo-card:hover .cv-photo-card-overlay {
  opacity: 1;
}

.cv-photo-card-overlay span {
  font-size: 11px;
  font-weight: 600;
  color: white;
}

/* Campagnes marketing */

.cv-campaigns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cv-campaign-tag {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 20px;
  background: hsl(var(--primary) / 0.07);
  border: 1px solid hsl(var(--primary) / 0.1);
  font-weight: 600;
  color: hsl(var(--primary));
  transition: all 0.2s ease;
}

.cv-campaign-tag:hover {
  background: hsl(var(--accent) / 0.15);
  color: hsl(var(--accent));
  border-color: hsl(var(--accent) / 0.3);
}

.cv-download-container {
  text-align: center;
  margin: 1.5rem 0;
}

#download-cv-btn {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

#download-cv-btn:hover {
  background: hsl(var(--accent) / 0.85);
  transform: translateY(-2px);
}

/* Boutons du formulaire */
.cv-form-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 0.55rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Bouton Envoyer du formulaire */
.cv-form-btn.submit-btn {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

/* Bouton Télécharger le CV (même taille, couleur différente) */
.cv-form-btn.download-btn {
  background: hsl(210 70% 55%); /* couleur différente : bleu vif */
  color: hsl(0 0% 100%);
  margin-top: 0.6rem;
}

.cv-form-btn.download-btn:hover {
  background: hsl(210 70% 50%);
  transform: translateY(-1px);
}


.cv-form-card {
  background: hsl(var(--muted)); 
  padding: 1.5rem 1.2rem; 
  border-radius: 0.6rem; 
  border-left: 3px solid hsl(var(--accent));
  display: flex; flex-direction: column; gap: 1rem;
}

.cv-form-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: hsl(var(--primary));
  margin-bottom: 0.8rem;
}

.cv-form label {
  display: flex;
  flex-direction: column;
  font-size: 0.82rem;
  color: hsl(var(--foreground) / 0.85);
  margin-bottom: 0.6rem;
}

.cv-form input,
.cv-form textarea {
  margin-top: 0.3rem;
  padding: 0.55rem 0.6rem;
  border-radius: 0.35rem;
  border: 1px solid hsl(var(--border));
  font-size: 0.85rem;
  font-family: var(--font-body);
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  resize: vertical;
}

.cv-form input:focus,
.cv-form textarea:focus {
  outline: none;
  border-color: hsl(var(--accent));
  box-shadow: 0 0 0 2px hsl(var(--accent) / 0.2);
}

.cv-form-cta {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  padding: 0.55rem 0.85rem;
  border: none;
  border-radius: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s;
}

.cv-form-cta:hover {
  background: hsl(var(--accent) / 0.85);
}

.cv-form-download {
  margin-top: 0.8rem;
  display: inline-block;
  text-align: center;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 0.55rem 0.85rem;
  border-radius: 0.35rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  transition: background 0.25s;
}

.cv-form-download:hover {
  background: hsl(var(--primary) / 0.85);
}

/* Responsive */
@media (max-width: 700px) {
  .cv-form-card { padding: 1rem; }
  .cv-form-cta, .cv-form-download { width: 100%; }
}