/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

/* Container principal */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Header */
.header {
  border-bottom: 2px solid #007bff;
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.profile-section {
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #007bff;
}

.profile-info h1 {
  color: #007bff;
  font-size: 28px;
  margin-bottom: 5px;
}

.profile-info h2 {
  color: #6c757d;
  font-size: 18px;
  font-weight: normal;
  margin-bottom: 10px;
}

.specialization {
  font-style: italic;
  color: #495057;
}

/* Sections */
section {
  margin-bottom: 30px;
  padding: 20px;
  background-color: #f8f9fa;
  border-left: 4px solid #007bff;
}

section h3 {
  color: #007bff;
  font-size: 22px;
  margin-bottom: 15px;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 5px;
}

/* Contact Info */
.contact-info ul {
  list-style: none;
}

.contact-info li {
  margin-bottom: 8px;
  padding: 5px 0;
}

.contact-info a {
  color: #007bff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-info a:hover {
  text-decoration: underline;
  color: #0056b3;
}

/* Styles spécifiques pour les liens d'action */
.contact-info a[href^="mailto:"] {
  background-color: #e3f2fd;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 500;
}

.contact-info a[href^="tel:"] {
  background-color: #e8f5e8;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 500;
}

.contact-info a[href^="mailto:"]:hover {
  background-color: #bbdefb;
}

.contact-info a[href^="tel:"]:hover {
  background-color: #c8e6c9;
}

/* Mission Statement */
.mission blockquote {
  font-size: 18px;
  font-style: italic;
  color: #495057;
  padding: 15px;
  background-color: white;
  border-left: 4px solid #28a745;
  margin: 10px 0;
}

/* Projets */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.project-card {
  background-color: white;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #28a745;
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.project-card h4 {
  color: #28a745;
  font-size: 16px;
  margin-bottom: 10px;
}

.project-card p {
  color: #6c757d;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.download-btn {
  display: inline-block;
  background-color: #007bff;
  color: white;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-top: 5px;
}

.download-btn:hover {
  background-color: #0056b3;
  transform: scale(1.05);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Projets Excel spécifiques */
.excel-projects {
  background-color: #e8f5e9;
  border-left-color: #4caf50;
}

.excel-projects h3 {
  color: #4caf50;
}

.excel-card {
  border-left-color: #4caf50;
  background: linear-gradient(135deg, #ffffff 0%, #f1f8f4 100%);
}

.excel-card h4 {
  color: #2e7d32;
}

.excel-btn {
  background-color: #4caf50;
}

.excel-btn:hover {
  background-color: #388e3c;
}

/* Projet Web Scraping avec vidéo */
.web-scraping-project {
  background-color: #fff3e0;
  border-left-color: #ff9800;
}

.web-scraping-project h3 {
  color: #ff9800;
}

.video-card {
  border-left-color: #ff9800;
  background: linear-gradient(135deg, #ffffff 0%, #fff8f0 100%);
}

.video-card h4 {
  color: #e65100;
}

/* Placeholder vidéo */
.video-placeholder {
  margin: 20px 0;
  padding: 60px 20px;
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border-radius: 8px;
  text-align: center;
  border: 2px dashed #ff9800;
}

.video-icon {
  font-size: 64px;
  margin-bottom: 20px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.video-text {
  font-size: 18px;
  font-weight: 600;
  color: #e65100;
  margin-bottom: 10px;
}

.video-size {
  font-size: 14px;
  color: #757575;
  font-style: italic;
}

.video-info {
  margin: 15px 0;
  padding: 10px;
  background-color: #fff;
  border-radius: 5px;
  border-left: 3px solid #ff9800;
}

.video-info p {
  margin-bottom: 8px;
  font-size: 14px;
}

.video-info strong {
  color: #ff9800;
}

.video-btn {
  background-color: #ff9800;
}

.video-btn:hover {
  background-color: #f57c00;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Skills */
.skill-category {
  margin-bottom: 15px;
  padding: 12px;
  background-color: white;
  border-radius: 4px;
}

.skill-category h4 {
  color: #007bff;
  font-size: 16px;
  margin-bottom: 5px;
}

.skill-category p {
  color: #6c757d;
  font-size: 14px;
}

/* Expertise */
.expertise ul {
  list-style: none;
}

.expertise li {
  margin-bottom: 12px;
  padding: 10px;
  background-color: white;
  border-radius: 4px;
}

.expertise li strong {
  color: #007bff;
}

/* Bouton WhatsApp flottant */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
}

.whatsapp-float:hover {
  background-color: #20ba5a;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
  font-size: 32px;
  animation: pulse-whatsapp 2s ease-in-out infinite;
}

@keyframes pulse-whatsapp {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

/* Responsive Mobile */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }
  
  .container {
    margin: 5px;
    padding: 10px;
    box-shadow: none;
  }
  
  /* Header mobile */
  .header {
    padding-bottom: 15px;
    margin-bottom: 20px;
  }
  
  .profile-section {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .profile-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto;
  }
  
  .profile-info h1 {
    font-size: 22px;
    line-height: 1.3;
  }
  
  .profile-info h2 {
    font-size: 16px;
    line-height: 1.4;
  }
  
  .specialization {
    font-size: 14px;
  }
  
  /* Sections mobile */
  section {
    padding: 12px;
    margin-bottom: 20px;
  }
  
  section h3 {
    font-size: 20px;
    margin-bottom: 12px;
  }
  
  /* Contact info mobile */
  .contact-info li {
    font-size: 14px;
    margin-bottom: 10px;
    word-break: break-word;
  }
  
  /* Mission statement mobile */
  .mission blockquote {
    font-size: 16px;
    padding: 12px;
  }
  
  /* Projets mobile */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .project-card {
    padding: 12px;
  }
  
  .project-card h4 {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 8px;
  }
  
  .project-card p {
    font-size: 13px;
    line-height: 1.5;
  }
  
  /* Boutons téléchargement mobile */
  .download-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 12px;
    font-size: 14px;
    margin-top: 8px;
  }
  
  /* Skills mobile */
  .skill-category {
    padding: 10px;
    margin-bottom: 12px;
  }
  
  .skill-category h4 {
    font-size: 15px;
  }
  
  .skill-category p {
    font-size: 13px;
    line-height: 1.5;
  }
  
  /* Expertise mobile */
  .expertise li {
    padding: 8px;
    margin-bottom: 10px;
    font-size: 13px;
  }
  
  /* Video placeholder mobile */
  .video-placeholder {
    padding: 40px 15px;
  }
  
  .video-icon {
    font-size: 48px;
  }
  
  .video-text {
    font-size: 16px;
  }
  
  .video-size {
    font-size: 13px;
  }
  
  .video-info {
    padding: 8px;
  }
  
  .video-info p {
    font-size: 13px;
    line-height: 1.5;
  }
  
  /* WhatsApp button mobile */
  .whatsapp-float {
    bottom: 15px;
    right: 15px;
    width: 56px;
    height: 56px;
  }
  
  .whatsapp-icon {
    font-size: 30px;
  }
}

/* Très petits écrans */
@media (max-width: 400px) {
  .container {
    margin: 0;
    padding: 8px;
  }
  
  .profile-photo {
    width: 100px;
    height: 100px;
  }
  
  .profile-info h1 {
    font-size: 20px;
  }
  
  .profile-info h2 {
    font-size: 15px;
  }
  
  section {
    padding: 10px;
  }
  
  section h3 {
    font-size: 18px;
  }
  
  .project-card h4 {
    font-size: 14px;
  }
  
  .whatsapp-float {
    bottom: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
  }
  
  .whatsapp-icon {
    font-size: 26px;
  }
}