/* ═══════════════════════════════════════════════════════════
   CVGénio — Templates CSS pour CV générés
   Designs modernes et attractifs pour impression PDF
   ═══════════════════════════════════════════════════════════ */

/* ── TEMPLATE CLASSIQUE ── */
.cv-classique {
  font-family: Georgia, serif;
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  color: #2c3e50;
  line-height: 1.6;
}

.cv-classique .header {
  background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
  color: white;
  padding: 40px;
  text-align: center;
  border-bottom: 4px solid #d4af37;
  position: relative;
}

.cv-classique .header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.cv-classique .name {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.cv-classique .title {
  font-size: 18px;
  color: #ecf0f1;
  margin-bottom: 20px;
  font-style: italic;
}

.cv-classique .contact-info {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
}

.cv-classique .contact-info span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.cv-classique .section {
  padding: 30px 40px;
  border-bottom: 1px solid #ecf0f1;
}

.cv-classique .section:last-child {
  border-bottom: none;
}

.cv-classique .section-title {
  font-size: 20px;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #d4af37;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cv-classique .section-title::before {
  content: '◆';
  color: #d4af37;
  font-size: 16px;
}

.cv-classique .experience-item,
.cv-classique .formation-item {
  margin-bottom: 25px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #d4af37;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.cv-classique .item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.cv-classique .item-title {
  font-weight: bold;
  font-size: 16px;
  color: #2c3e50;
}

.cv-classique .item-company {
  color: #7f8c8d;
  font-style: italic;
}

.cv-classique .item-date {
  color: #95a5a6;
  font-size: 14px;
  font-weight: bold;
}

.cv-classique .item-description {
  color: #34495e;
  line-height: 1.6;
  margin-top: 8px;
}

.cv-classique .skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.cv-classique .skill-category {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.cv-classique .skill-category h4 {
  color: #2c3e50;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: bold;
}

.cv-classique .skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cv-classique .skill-tag {
  background: #d4af37;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

/* ── TEMPLATE MODERNE ── */
.cv-moderne {
  font-family: 'Montserrat', Arial, sans-serif;
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  color: #2c3e50;
  display: flex;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.cv-moderne .sidebar {
  width: 300px;
  background: linear-gradient(180deg, #1e3a8a 0%, #1e40af 100%);
  color: white;
  padding: 40px 30px;
  position: relative;
}

.cv-moderne .sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05));
}

.cv-moderne .profile-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 5px solid rgba(255,255,255,0.2);
  margin: 0 auto 20px;
  display: block;
  object-fit: cover;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.cv-moderne .name {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.cv-moderne .title {
  font-size: 16px;
  text-align: center;
  color: #93c5fd;
  margin-bottom: 30px;
  font-weight: 300;
}

.cv-moderne .contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 14px;
}

.cv-moderne .contact-item::before {
  content: '●';
  color: #60a5fa;
  font-size: 12px;
}

.cv-moderne .skills-section {
  margin-top: 40px;
}

.cv-moderne .skills-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #60a5fa;
}

.cv-moderne .skill-bar {
  margin-bottom: 15px;
}

.cv-moderne .skill-name {
  font-size: 14px;
  margin-bottom: 5px;
  font-weight: 500;
}

.cv-moderne .skill-progress {
  height: 6px;
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
  overflow: hidden;
}

.cv-moderne .skill-fill {
  height: 100%;
  background: linear-gradient(90deg, #60a5fa, #3b82f6);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.cv-moderne .main-content {
  flex: 1;
  padding: 40px;
  background: #f8fafc;
}

.cv-moderne .section {
  margin-bottom: 40px;
}

.cv-moderne .section-title {
  font-size: 20px;
  font-weight: bold;
  color: #1e3a8a;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 3px solid #3b82f6;
  position: relative;
}

.cv-moderne .section-title::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 60px;
  height: 3px;
  background: #60a5fa;
}

.cv-moderne .experience-item {
  background: white;
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border-left: 4px solid #3b82f6;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cv-moderne .experience-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.cv-moderne .item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.cv-moderne .item-title {
  font-size: 18px;
  font-weight: bold;
  color: #1e3a8a;
}

.cv-moderne .item-company {
  color: #64748b;
  font-size: 16px;
  margin-top: 5px;
}

.cv-moderne .item-date {
  background: #eff6ff;
  color: #1e40af;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.cv-moderne .item-description {
  color: #475569;
  line-height: 1.7;
  margin-top: 15px;
}

.cv-moderne .item-description ul {
  margin-top: 10px;
  padding-left: 20px;
}

.cv-moderne .item-description li {
  margin-bottom: 8px;
  position: relative;
}

.cv-moderne .item-description li::before {
  content: '✓';
  color: #3b82f6;
  position: absolute;
  left: -20px;
  font-weight: bold;
}

/* ── TEMPLATE EXECUTIVE ── */
.cv-executive {
  font-family: 'Playfair Display', Georgia, serif;
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  color: #1a1a1a;
  line-height: 1.7;
}

.cv-executive .header {
  background: #000;
  color: #fff;
  padding: 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cv-executive .header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #d4af37, #f4e4bc, #d4af37);
}

.cv-executive .name {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 10px;
  letter-spacing: 2px;
  color: #d4af37;
  text-transform: uppercase;
}

.cv-executive .title {
  font-size: 20px;
  color: #f4e4bc;
  margin-bottom: 25px;
  font-style: italic;
  letter-spacing: 1px;
}

.cv-executive .contact-info {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #ccc;
}

.cv-executive .contact-info span {
  position: relative;
  padding-left: 20px;
}

.cv-executive .contact-info span::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: #d4af37;
  font-size: 12px;
}

.cv-executive .section {
  padding: 40px 50px;
  border-bottom: 1px solid #e5e5e5;
}

.cv-executive .section:last-child {
  border-bottom: none;
}

.cv-executive .section-title {
  font-size: 24px;
  font-weight: bold;
  color: #000;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #d4af37;
  letter-spacing: 1px;
}

.cv-executive .experience-item {
  margin-bottom: 30px;
  padding: 25px;
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-left: 5px solid #d4af37;
  position: relative;
}

.cv-executive .experience-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #d4af37, #f4e4bc);
}

.cv-executive .item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.cv-executive .item-title {
  font-size: 18px;
  font-weight: bold;
  color: #000;
  margin-bottom: 5px;
}

.cv-executive .item-company {
  color: #666;
  font-size: 16px;
  font-style: italic;
}

.cv-executive .item-date {
  color: #d4af37;
  font-size: 14px;
  font-weight: bold;
  background: #fff9e6;
  padding: 5px 10px;
  border-radius: 4px;
}

.cv-executive .item-description {
  color: #333;
  line-height: 1.8;
  margin-top: 15px;
  font-size: 15px;
}

.cv-executive .skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.cv-executive .skill-category {
  background: white;
  padding: 20px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.cv-executive .skill-category h4 {
  color: #000;
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: bold;
  border-bottom: 1px solid #d4af37;
  padding-bottom: 8px;
}

.cv-executive .skill-list {
  list-style: none;
  padding: 0;
}

.cv-executive .skill-list li {
  padding: 5px 0;
  color: #555;
  position: relative;
  padding-left: 20px;
}

.cv-executive .skill-list li::before {
  content: '★';
  position: absolute;
  left: 0;
  color: #d4af37;
  font-size: 12px;
}

/* ── TEMPLATE CREATIF ── */
.cv-creatif {
  font-family: 'Poppins', Arial, sans-serif;
  max-width: 850px;
  margin: 0 auto;
  background: #fff;
  color: #2d3748;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.cv-creatif .header {
  background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.cv-creatif .header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.cv-creatif .name {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 10px;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  position: relative;
  z-index: 1;
}

.cv-creatif .title {
  font-size: 20px;
  color: rgba(255,255,255,0.95);
  margin-bottom: 25px;
  font-weight: 300;
  position: relative;
  z-index: 1;
}

.cv-creatif .contact-info {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  position: relative;
  z-index: 1;
}

.cv-creatif .contact-info span {
  background: rgba(255,255,255,0.2);
  padding: 8px 15px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.cv-creatif .content {
  padding: 50px 40px;
}

.cv-creatif .section {
  margin-bottom: 50px;
}

.cv-creatif .section-title {
  font-size: 28px;
  font-weight: bold;
  color: #ff6b6b;
  margin-bottom: 30px;
  position: relative;
  padding-left: 20px;
}

.cv-creatif .section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 30px;
  background: linear-gradient(180deg, #ff6b6b, #feca57);
  border-radius: 4px;
}

.cv-creatif .experience-item {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 15px;
  margin-bottom: 25px;
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.cv-creatif .experience-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #ff6b6b, #feca57);
  border-radius: 15px;
  z-index: -1;
  padding: 2px;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: subtract;
}

.cv-creatif .item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.cv-creatif .item-title {
  font-size: 20px;
  font-weight: bold;
  color: #2d3748;
  margin-bottom: 8px;
}

.cv-creatif .item-company {
  color: #ff6b6b;
  font-size: 16px;
  font-weight: 500;
}

.cv-creatif .item-date {
  background: linear-gradient(135deg, #ff6b6b, #feca57);
  color: white;
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(255,107,107,0.3);
}

.cv-creatif .item-description {
  color: #4a5568;
  line-height: 1.8;
  margin-top: 20px;
}

.cv-creatif .skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.cv-creatif .skill-category {
  text-align: center;
}

.cv-creatif .skill-category h4 {
  color: #ff6b6b;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: bold;
}

.cv-creatif .skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.cv-creatif .skill-tag {
  background: linear-gradient(135deg, #ff6b6b, #feca57);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(255,107,107,0.2);
  transition: transform 0.2s ease;
}

.cv-creatif .skill-tag:hover {
  transform: translateY(-2px);
}

/* ── TEMPLATE MINIMALISTE ── */
.cv-minimaliste {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  color: #1a1a1a;
  line-height: 1.8;
  padding: 60px;
}

.cv-minimaliste .header {
  margin-bottom: 50px;
  text-align: left;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 30px;
}

.cv-minimaliste .name {
  font-size: 32px;
  font-weight: 300;
  margin-bottom: 8px;
  color: #1a1a1a;
  letter-spacing: -0.5px;
}

.cv-minimaliste .title {
  font-size: 18px;
  color: #666;
  margin-bottom: 20px;
  font-weight: 400;
}

.cv-minimaliste .contact-info {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #888;
}

.cv-minimaliste .contact-info span {
  position: relative;
}

.cv-minimaliste .contact-info span:not(:last-child)::after {
  content: '•';
  position: absolute;
  right: -20px;
  color: #ddd;
}

.cv-minimaliste .section {
  margin-bottom: 40px;
}

.cv-minimaliste .section-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 10px;
}

.cv-minimaliste .experience-item {
  margin-bottom: 30px;
}

.cv-minimaliste .item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.cv-minimaliste .item-title {
  font-size: 16px;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.cv-minimaliste .item-company {
  color: #666;
  font-size: 15px;
}

.cv-minimaliste .item-date {
  color: #999;
  font-size: 14px;
  font-weight: 400;
}

.cv-minimaliste .item-description {
  color: #555;
  line-height: 1.8;
  margin-top: 12px;
  font-size: 15px;
}

.cv-minimaliste .skills-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.cv-minimaliste .skill-category h4 {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cv-minimaliste .skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cv-minimaliste .skill-tag {
  background: #f5f5f5;
  color: #666;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 400;
  border: 1px solid #e5e5e5;
}

/* ── STYLES COMMUNS ── */
.cv-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin: 0 auto 20px;
  display: block;
}

.profile-text {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 30px;
  border-left: 4px solid #3b82f6;
  font-style: italic;
  line-height: 1.7;
}

.language-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.language-item:last-child {
  border-bottom: none;
}

.language-name {
  font-weight: 500;
  color: #2c3e50;
}

.language-level {
  background: #e3f2fd;
  color: #1976d2;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .cv-moderne {
    flex-direction: column;
  }
  
  .cv-moderne .sidebar {
    width: 100%;
    padding: 30px 20px;
  }
  
  .cv-moderne .main-content {
    padding: 30px 20px;
  }
  
  .cv-classique .contact-info,
  .cv-executive .contact-info,
  .cv-creatif .contact-info {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  
  .cv-executive .skills-grid,
  .cv-minimaliste .skills-list {
    grid-template-columns: 1fr;
  }
  
  .cv-minimaliste {
    padding: 40px 30px;
  }
  
  .cv-classique .header,
  .cv-executive .header,
  .cv-creatif .header {
    padding: 30px 20px;
  }
}

@media print {
  .cv-moderne,
  .cv-classique,
  .cv-executive,
  .cv-creatif,
  .cv-minimaliste {
    box-shadow: none;
    margin: 0;
    max-width: 100%;
  }
  
  .cv-moderne .sidebar,
  .cv-moderne .main-content {
    break-inside: avoid;
  }
}
