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

/* VARIABLES */
:root {
  --primary-color: #005B99;
  --dark-blue: #002f54;
  --gradient-start: #002f54;
  --gradient-end: #005B99;
  --linkedin-blue: #0077b7;
  --text-color: #333;
  --bg-color: #f4f4f4;
  --white: #fff;
}

/* GLOBAL */
body {
  font-family: 'Open Sans', Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}
a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 900px;
  margin: 20px auto;
  background: var(--white);
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  border-radius: 6px;
  overflow: hidden;
}

/* HEADER */
header {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: var(--white);
  text-align: center;
  padding: 50px 20px;
  position: relative;
}
.header-content {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
.photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--white);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
header h1 {
  font-size: 28px;
  font-weight: 700; 
  letter-spacing: 1px;
  margin-bottom: 8px;
}

/* BOUTON LINKEDIN */
.linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--white);
  color: var(--linkedin-blue);
  padding: 10px 15px;
  border-radius: 4px;
  border: 2px solid var(--linkedin-blue);
  font-weight: 700;
  transition: background-color 0.3s, color 0.3s, transform 0.3s;
}
.linkedin-btn:hover {
  background-color: var(--linkedin-blue);
  color: var(--white);
  transform: translateY(-2px);
}
.linkedin-btn img {
  width: 20px;
  height: 20px;
}
.linkedin-btn .blue-logo {
  display: inline-block;
}
.linkedin-btn .white-logo {
  display: none;
}
.linkedin-btn:hover .blue-logo {
  display: none;
}
.linkedin-btn:hover .white-logo {
  display: inline-block;
}

/* BOUTON EN/FR */
.translate-link {
  position: absolute;
  top: 15px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--white);
  color: var(--linkedin-blue);
  padding: 8px 12px;
  border-radius: 4px;
  border: 2px solid var(--linkedin-blue);
  font-weight: 700;
  font-size: 0.9rem;
  transition: background-color 0.3s, color 0.3s, transform 0.3s;
}
.translate-link:hover {
  background-color: var(--linkedin-blue);
  color: var(--white);
  transform: translateY(-2px);
}

/* SECTIONS */
.section {
  padding: 30px 25px; 
  border-bottom: 1px solid #ddd;
  transition: background-color 0.3s, transform 0.3s;
}
.section:last-child {
  border-bottom: none;
}
.section:hover {
  background-color: #fafafa;
  transform: scale(1.01);
}
.section h2 {
  color: var(--primary-color);
  font-size: 22px;
  margin-bottom: 18px;
  font-weight: 700;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  letter-spacing: 0.8px;
}
.section h2::after {
  content: "";
  display: block;
  width: 60%;
  height: 3px;
  background-color: var(--primary-color);
  margin-top: 6px;
}
ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 15px;
}
li {
  margin: 8px 0;
}

/* CONTACT */
.contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact div {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}
.contact img {
  width: 20px;
  height: 20px;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 15px 0;
  background: var(--dark-blue);
  color: var(--white);
  font-size: 14px;
}
footer span {
  opacity: 0.8;
}

/* MEDIA QUERIES */
@media (max-width: 600px) {
  header h1 {
    font-size: 22px;
  }
  .section {
    padding: 20px;
  }
  .section h2 {
    font-size: 18px;
  }
  .section h2::after {
    width: 80%;
  }
  .photo {
    width: 120px;
    height: 120px;
  }
  .translate-link {
    font-size: 0.8rem;
    top: 10px;
    left: 10px;
    padding: 6px 10px;
  }
}

