body {
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  background: #f7f8fa;
  color: #222;
  min-height: 100vh;
}

header {
  background: #fff;
  border-bottom: 1px solid #ebebeb;
  padding: 32px 0 24px 0;
  text-align: center;
}

.profile-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #babec4;
  box-shadow: 0 4px 16px rgba(44,62,80,0.14);
  transition: 
    transform 0.35s cubic-bezier(.32,2,.55,.27), 
    box-shadow 0.35s cubic-bezier(.32,2,.55,.27);
  margin-bottom: 8px;
}
.profile-photo:hover,
.profile-photo:focus {
  box-shadow: 0 8px 32px 4px #40826D44, 0 8px 32px 2px rgba(44,62,80,0.21);
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 8px 32px 2px rgba(44,62,80,0.21);
  border-color: #40826D;
  outline: none;
}

.name {
  font-size: 26px;
  font-weight: bold;
  margin: 10px 0 6px 0;
}

.subtitle {
  font-size: 15px;
  color: #666;
  margin-bottom: 18px;
}

/* --- MENU --- */

nav {
  position: relative;
  display: inline-block;
  padding: 7px 0;
  background: #fff;
  border-bottom: 1.5px solid #ececec;
}

/* Barrette bleue glissante (à rajouter en HTML via JS) */
.nav-underline {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  background: #40826D;
  border-radius: 2px;
  transition: all 0.36s cubic-bezier(.5,1.85,.45,.87);
  transition-property: left, width;
  z-index: 1;
  pointer-events: none;
}

nav a {
  position: relative;
  z-index: 2;
  margin: 0 18px;
  text-decoration: none;
  color: #1a2632;
  font-weight: bold;
  padding-bottom: 4px;
  transition: color 0.2s;
}

nav a.active {
  color: #40826D;
}

nav a:hover {
  color: #40826D;
}

nav a:focus-visible {
  outline: 2px solid #40826D;
  outline-offset: 2px;
}

/* --- FIN MENU --- */

main.content {
  max-width: 540px;
  margin: 35px auto 0 auto;
  padding: 0 16px;
}

.card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 32px rgba(0,0,50,0.08), 0 1.5px 9px rgba(0,80,250,0.07);
  padding: 34px 28px 28px 28px; /* espaces généreux sur les côtés et en haut/bas */
  transition: box-shadow 0.25s, transform 0.22s;
}
.card:hover {
  box-shadow: 0 4px 40px rgba(0,70,222,.15), 0 1.5px 12px rgba(0,120,255,0.10);
  transform: translateY(-2px) scale(1.013);
}

@media (max-width: 480px) {
  .card {
    padding: 20px 7vw 20px 7vw;
  }
}

.card h2 {
  text-align: center;
}

footer {
  margin-top: 50px;
  background: #fff;
  border-top: 1px solid #e0e0e0;
  padding: 18px 0;
  text-align: center;
  font-size: 15px;
  color: #84888f;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.footer-content {
  display: flex;
  gap: 13px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
footer a {
  color: #40826D;
  text-decoration: none;
}

.footer-copyright {
  font-size: 14px;
  color: #a0a0a0;
}

.footer-mail {
  font-size: 15px;
  font-weight: 500;
}

.footer-linkedin {
  vertical-align: middle;
  display: inline-block;
  transition: filter 0.18s;
  line-height: 0;
}
.footer-linkedin img {
  width: 22px;
  height: 22px;
  display: inline-block;
  filter: grayscale(0.1) brightness(1.05);
  transition: filter 0.2s;
}
.footer-linkedin:hover img,
.footer-linkedin:focus img {
  filter: brightness(1.2) drop-shadow(0 0 2px #8ed0f8);
}

.contact-form {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 410px;
  width: 100%;
}
.contact-form input,
.contact-form textarea {
  font-size: 16px;
  font-family: inherit;
  padding: 10px;
  border-radius: 5px;
  border: 1.3px solid #bcbfc7;
  background: #fafbfc;
}
.contact-form textarea {
  resize: vertical;
}
.contact-form button {
  background: #40826D;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 12px 0;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.22s;
}
.contact-form button:hover,
.contact-form button:focus {
  background: #386355;
}

.contact-form button:active {
  transform: scale(0.98);
  box-shadow: 0 2px 6px rgba(0,123,255,.09);
}

@media (max-width: 680px) {
  .profile-photo {
    width: 110px;
    height: 110px;
  }
  main.content {
    padding: 0 5px;
  }
  .contact-form {
    max-width: 98vw;
  }
}

.skills-section {
  margin-bottom: 25px;
}
.skills-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.29em;
  margin-bottom: 8px;
  font-weight: bold;
  color: #40826D;
}
.skills-title svg {
  width: 27px;
  height: 27px;
  vertical-align: middle;
  flex-shrink: 0;
}
.skills-list {
  margin: 0 0 0 2px;
  padding: 0 0 0 18px;
}
.skills-example {
  color: #495057;
  font-size: 15px;
  margin-top: 3px;
  margin-left: 33px;
  font-style: italic;
}
.certif-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  background: #eaefee;
  border: 1px solid #40826D;
  border-radius: 6px;
  padding: 3px 10px 3px 5px;
  margin: 8px 0 0 3px;
  color: #40826D;
  font-weight: bold;
}
.certif-badge svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .skills-title svg {
    width: 22px;
    height: 22px;
  }
  .certif-badge {
    font-size: 13.3px;
    padding: 2px 7px 2px 2px;
  }
}

.footer-linkedin, .certif-badge {
  transition: filter .23s, color .24s;
}

.skills-svg {
  width: 27px;
  height: 27px;
  vertical-align: middle;
  margin-right: 7px;
  flex-shrink: 0;
}
