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

body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f4f4f4;
}

.cv-actions-wrapper {
  max-width: 960px;
  margin: 0 auto 20px auto;
  padding: 0 10px;
}

.cv-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

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

.cv-section h2 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #333;
}

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

.cv-list li {
  margin-bottom: 5px;
  line-height: 1.6;
}

.cv-list a {
  color: #424242;
  text-decoration: none;
}

.cv-list a:hover {
  text-decoration: underline;
}


.btn-action {
  background: #424242;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s;
}

.btn-action:hover {
  background: #0056b3;
}

/* Responsive pour mobile */
@media screen and (max-width: 600px) {
  .btn-text {
    display: none;
  }

  .btn-action {
    padding: 10px;
    /* pour un meilleur alignement sans texte */
    font-size: 18px;
  }

  .btn-action i {
    margin: 0;
  }
}



/* Dark mode styles */
body.dark-mode {
  background: #121212;
  color: #e0e0e0;
}

body.dark-mode .cv-container {
  background: #1e1e1e;
}

body.dark-mode .profile {
  background: #00265f;
}

body.dark-mode .profile a {
  color: #e0ecff;
}

body.dark-mode .skills li {
  background: #333;
}

body.dark-mode section h2 {
  border-color: #0045ad;
  color: #0d6efd;
}

section a {
  color: rgb(0, 0, 0);
}

.container {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
}

/* Header */
header {
  background: #424242;
  color: white;
  padding: 40px 0;
  text-align: center;
}

header h1 {
  font-size: 2.5rem;
}

header p {
  font-size: 1.2rem;
}

/* Sections */
section {
  padding: 10px 0;
}

.about,
.contact {

  margin-bottom: 20px;
}

.projects {
  background: #e9ecef;
}

.project-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.project-card {
  background: white;
  padding: 20px;
  flex: 1;
  min-width: 250px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background: #343a40;
  color: white;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #f0f4ff, #e0ecff);
  color: #333;
  padding: 40px 20px;
}

.cv-container {
  max-width: 960px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  background: white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  overflow: hidden;
  animation: fadeInUp 1s ease-in-out;
}

.profile {
  flex: 1 1 300px;
  background: #424242;
  color: white;
  text-align: center;
  padding: 30px;
}

.profile img {
  height: 150px;
  border-radius: 50%;
  margin-bottom: 20px;
  border: 4px solid white;
}

.profile h1 {
  font-size: 24px;
}

.profile p {
  margin: 5px 0;
}

.contact i {
  margin-right: 8px;
}

.reseau i {
  font-size: 30px;
  margin-right: 8px;
}

.content {
  flex: 2 1 600px;
  padding: 30px;
}

section {
  margin-bottom: 10px;
}

section h2 {
  color: #424242;
  border-bottom: 2px solid #424242;
  padding-bottom: 5px;
  margin-bottom: 15px;
}


.skills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skills li {
  background: #e7f1ff;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 14px;
}

.experience h3 {
  margin-bottom: 5px;
}

.experience span {
  font-size: 14px;
  color: #777;
  display: block;
  margin-bottom: 10px;
}

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

.cv-section h2 {
  font-size: 24px;
  margin-bottom: 15px;
}

.cv-list {
  list-style-type: none;
  padding-left: 0;
}

.cv-list li {
  margin-bottom: 5px;
  line-height: 1.6;
}


@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .cv-container {
    flex-direction: column;
  }
}