:root {
  --background: #f6f6f8;
  --surface: #fff;
  --text: #232323;
  --text-light: #7a7a7a;
  --border: #e4e4e7;
  --accent: #1a1a1a;
  --accent-light: #444;
  --primary-btn: #232323;
  --primary-btn-hover: #444;
  --tag-bg: #f3f3f6;
  --tag-text: #555;
  --tag-border: #e0e0e0;
  --project-shadow: 0 2px 12px rgba(34, 34, 34, 0.06);
  --project-shadow-hover: 0 8px 32px rgba(34, 34, 34, 0.13);
  --footer-bg: #232323;
  --footer-text: #fff;
  --footer-link: #fff;
  --footer-link-hover: #bdbdbd;
  --header-shadow: 0 2px 12px rgba(34, 34, 34, 0.04);
  --radius: 14px;
  --transition: 0.12s cubic-bezier(0.4, 0, 0.2, 1);
}
html,
body {
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--text);
  font-family: "Inter", "Outfit", "Plus Jakarta Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main,
.container,
.projects-container,
.parcours-container,
.cv-section,
.presentation {
  flex: 1 0 auto;
}
a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover,
a:focus {
  color: var(--accent-light);
  text-decoration: underline;
}
h1,
h2,
h3,
h4 {
  font-weight: 700;
  margin: 0 0 0.5em 0;
  color: var(--accent);
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.1rem;
}
h2 {
  font-size: 1.3rem;
}
h3 {
  font-size: 1.05rem;
}
p {
  margin: 0 0 1em 0;
  color: var(--text-light);
}
ul,
ol {
  padding-left: 1.2em;
  margin: 0 0 1em 0;
}
img.responsive-img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: none;
}
.container,
.projects-container,
.parcours-container,
.cv-section,
.presentation {
  max-width: 1100px;
  margin: 2.5rem auto 2rem auto;
  padding: 0 1.2rem;
  background: none;
  box-shadow: none;
  border-radius: 0;
}
.title-header {
  margin-bottom: 2.2rem;
  text-align: left;
  padding-bottom: 0.7rem;
  border-bottom: none;
  position: relative;
}
.title-header::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent) 60%, #bdbdbd 100%);
  margin-top: 0.5rem;
  margin-left: 0;
  opacity: 0.8;
}
.title-header h1 {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--accent);
  margin-bottom: 0.2rem;
  text-shadow: none;
}
.title-header p {
  font-size: 1.08em;
  color: var(--text-light);
  font-weight: 400;
}
.navbar {
  background: linear-gradient(90deg, #fff 70%, #f6f6f8 100%);
  border-bottom: none;
  box-shadow: 0 8px 32px rgba(34, 34, 34, 0.1);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 80px;
  display: flex;
  align-items: center;
  transition: box-shadow 0.2s, background 0.2s;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  min-height: 80px;
  padding: 0 2.5rem;
  gap: 0;
  position: relative;
}
.navbar-brand {
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  color: var(--accent);
  padding: 0.5em 1.5em 0.5em 1em;
  border-radius: 18px;
  background: linear-gradient(90deg, #f6f6f8 60%, #ededed 100%);
  box-shadow: 0 4px 16px rgba(34, 34, 34, 0.06);
  text-shadow: 0 2px 8px rgba(34, 34, 34, 0.04);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  margin-right: 2.5rem;
  border: 2px solid #ececec;
}
.navbar-brand:hover,
.navbar-brand:focus {
  background: linear-gradient(90deg, #ededed 60%, #f6f6f8 100%);
  color: var(--accent-light);
  box-shadow: 0 8px 32px rgba(34, 34, 34, 0.1);
}
.navbar-menu-group {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  justify-content: space-between;
  min-width: 0;
  gap: 2.5rem;
}
.navbar ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  flex: 0 1 auto;
  justify-content: flex-start;
}
.navbar li {
  margin: 0;
}
.navbar a {
  color: var(--text);
  font-weight: 600;
  padding: 0.7em 1.5em;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  font-size: 1.13em;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
  display: inline-block;
}
.navbar a.active,
.navbar a:hover,
.navbar a:focus {
  background: linear-gradient(90deg, var(--accent) 80%, #444 100%);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(34, 34, 34, 0.13);
  border-radius: 10px;
}
.language-selector {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  background: transparent;
  box-shadow: none;
  height: 1.5em;
  border: none;
}
.language-btn {
  background: transparent;
  border: none;
  color: var(--accent);
  font-family: "Inter", "Outfit", "Plus Jakarta Sans", Arial, sans-serif;
  font-weight: 500;
  padding: 0.05em 0.55em;
  border-radius: 0;
  cursor: pointer;
  font-size: 0.93em;
  letter-spacing: 0.04em;
  transition: border-bottom 0.13s, color 0.13s;
  outline: none;
  box-shadow: none;
  margin: 0 0.05em;
  border-bottom: 1px solid transparent;
}
.language-btn.active,
.language-btn:focus {
  background: transparent;
  color: var(--accent);
  border-bottom: 0.7px solid #232323;
  box-shadow: none;
}
.language-btn:not(.active):hover {
  background: transparent;
  color: var(--accent);
  border-bottom: 0.7px solid #232323;
}
footer .language-selector {
  color: #fff;
}
footer .language-selector .language-btn {
  color: #fff;
}
footer .language-selector .language-btn.active,
footer .language-selector .language-btn:focus,
footer .language-selector .language-btn:not(.active):hover {
  color: #fff;
  border-bottom: 0.7px solid #fff;
}
.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  position: relative;
}
.presentation {
  display: flex;
  align-items: stretch;
  gap: 2.2rem;
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 2.2rem 0 1.2rem 0;
  width: 100%;
  min-height: 320px;
}
.presentation-photo {
  flex: 0 0 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-pic {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--border);
  box-shadow: 0 2px 8px rgba(34, 34, 34, 0.06);
}
.presentation-content {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.presentation-text p {
  margin-bottom: 0.5em;
  font-size: 1.08em;
  color: var(--text);
  font-weight: 400;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-top: 1.2rem;
  padding-bottom: 1.2rem;
  align-items: stretch;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--project-shadow);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  max-width: 100%;
  margin: 0;
  outline: none;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.project-card-image {
  width: 100%;
  height: 200px;
  min-height: 200px;
  max-height: 200px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: #eaeaea;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: none;
  transition: filter var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 24px rgba(34, 34, 34, 0.1);
  position: relative;
}
.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  transition: filter var(--transition), scale var(--transition);
  border-radius: 0;
  box-shadow: 0 2px 16px rgba(34, 34, 34, 0.1);
  z-index: 1;
}
.project-card:hover .project-card-image img {
  filter: brightness(1.03) saturate(1.01) contrast(1.01);
  scale: 1;
  box-shadow: 0 2px 8px rgba(34, 34, 34, 0.1);
  transition: filter 0.09s, box-shadow 0.09s;
}
.project-card-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0.8rem 1rem 0.7rem 1rem;
  flex: 1;
  min-height: 0;
}
.project-card-content h3 {
  font-size: 1em;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.3em;
  letter-spacing: 0.01em;
  text-shadow: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-card-desc {
  font-size: 0.93em;
  color: var(--text-light);
  margin-bottom: 0.5em;
  font-weight: 400;
  line-height: 1.5;
  max-height: 2.5em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25em;
  margin-top: auto;
  row-gap: 0.35em;
}

.tag {
  background: linear-gradient(90deg, #f3f3f6 70%, #ededed 100%);
  color: var(--accent);
  font-size: 0.82em;
  padding: 0.18em 0.85em;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1.2px solid #e0e0e0;
  margin-top: 0.1em;
  box-shadow: 0 2px 8px rgba(34, 34, 34, 0.06);
  cursor: default;
  user-select: none;
  display: inline-block;
  vertical-align: middle;
}

.cv-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  box-shadow: none;
  border-radius: 0;
}
.cv-preview {
  margin: 2rem 0 1.5rem 0;
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(34, 34, 34, 0.06);
  padding: 1rem;
}
.cv-image {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(34, 34, 34, 0.06);
  border: none;
}
.cv-download {
  margin: 1.2rem 0 0 0;
}
.btn,
.download-btn {
  background: var(--primary-btn);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 0.6em 1.7em;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(34, 34, 34, 0.07);
  transition: background var(--transition), box-shadow var(--transition);
  display: inline-block;
  text-align: center;
}
.btn:hover,
.btn:focus,
.download-btn:hover,
.download-btn:focus {
  background: var(--primary-btn-hover);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
footer {
  background: var(--footer-bg);
  border-top: none;
  padding: 2.2rem 0 1.2rem 0;
  margin-top: 3rem;
  font-size: 1em;
  color: var(--footer-text);
  box-shadow: 0 -2px 16px rgba(34, 34, 34, 0.08);
  flex-shrink: 0;
  width: 100%;
  margin-top: auto;
}
.footer-contact {
  margin-bottom: 1rem;
  display: flex;
  gap: 1.3rem;
  align-items: center;
}
.footer-link {
  display: flex;
  align-items: center;
  gap: 0.4em;
  margin: 0 0.2em;
  color: var(--footer-link);
  font-weight: 500;
  font-size: 1em;
  letter-spacing: 0.01em;
  transition: color var(--transition), text-decoration var(--transition);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.footer-link:hover,
.footer-link:focus {
  color: var(--footer-link-hover);
  border-bottom: 2px solid var(--footer-link-hover);
  text-decoration: none;
}
.footer-link svg {
  width: 1.25em;
  height: 1.25em;
  display: inline-block;
  vertical-align: middle;
  fill: #fff;
  transition: fill var(--transition);
}
.footer-content p,
.footer-content .footer-text {
  color: var(--footer-text);
  text-align: center;
  margin-top: 0.5em;
  font-size: 0.98em;
  opacity: 0.85;
}
.parcours-container {
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding-bottom: 2.5rem;
  position: relative;
}
.education-timeline {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  margin-top: 2.7rem;
  position: relative;
  padding-left: 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.education-item {
  display: flex;
  align-items: center;
  background: linear-gradient(100deg, #fff 70%, #f7f7fa 100%);
  border: 1.5px solid #e7e7e7;
  border-radius: 22px;
  box-shadow: 0 4px 24px rgba(34, 34, 34, 0.1);
  padding: 1.7rem 2.2rem 1.7rem 1.5rem;
  position: relative;
  min-height: 110px;
  z-index: 1;
  margin-bottom: 0;
  overflow: visible;
}
.future-item {
  opacity: 0.7;
  border-style: dashed;
  box-shadow: 0 2px 8px #bdbdbd33;
}
.education-logo-wrapper {
  flex: 0 0 70px;
  margin-right: 1.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
}
.education-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
  background: #f0f0f0;
  box-shadow: 0 2px 8px rgba(34, 34, 34, 0.07);
  border: 1px solid #eaeaea;
}
.education-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.education-content h3 {
  margin-bottom: 0.18em;
  font-size: 1.22em;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.education-date {
  font-size: 1.04em;
  color: var(--accent-light);
  margin-bottom: 0.3em;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.education-desc {
  font-size: 1.01em;
  color: var(--text-light);
  margin-top: 0.18em;
  line-height: 1.7;
  font-weight: 400;
  opacity: 0.93;
}
.modal {
  display: none;
  position: fixed;
  z-index: 1002;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34, 34, 34, 0.12);
  align-items: center;
  justify-content: center;
  transition: opacity 0.12s;
  padding-top: 4vh;
  padding-bottom: 4vh;
  box-sizing: border-box;
}
.modal.show {
  display: flex;
  animation: fadeIn 0.12s;
}
.modal-content {
  background: var(--surface);
  border-radius: 28px;
  box-shadow: 0 8px 32px rgba(34, 34, 34, 0.13);
  padding: 2.2rem 2rem 1.5rem 2rem;
  max-width: 700px;
  min-width: 320px;
  width: 98vw;
  position: relative;
  animation: modalPop 0.12s;
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  cursor: auto;
  margin-top: auto;
  margin-bottom: auto;
  box-sizing: border-box;
  border: 1.5px solid var(--border);
}
.close {
  position: absolute;
  top: 1.8rem;
  right: 1.1rem;
  font-size: 1.7rem;
  color: var(--text-light);
  cursor: pointer;
  width: 1.7rem;
  height: 1.7rem;
  background: none;
  border: none;
  z-index: 10;
}
.close:after {
  content: "×";
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text-light);
}
.modal-header {
  margin-bottom: 1.2em;
  padding-bottom: 0.5em;
}
.modal-header h2 {
  margin-bottom: 0.7em;
  font-size: 1.5em;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 0.2em;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 8px rgba(34,34,34,0.04);
  line-height: 1.15;
  text-align: left;
}
.modal-header .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em 0.7em;
  margin-top: 1.1em;
  margin-bottom: 0.7em;
  align-items: center;
  justify-content: flex-start;
}
hr.modal-hr {
  border: none;
  border-top: 1.5px solid #e4e4e7;
  margin: 1.2em 0 1.2em 0;
  opacity: 0.7;
}
.modal-section {
  margin-bottom: 1.1em;
  padding-bottom: 0.2em;
}
.modal-section strong {
  display: block;
  font-size: 1.08em;
  color: var(--accent-light);
  margin-bottom: 0.3em;
  margin-top: 0.7em;
  letter-spacing: 0.01em;
}
.modal-image-container {
  margin: 1em 0;
  text-align: center;
}
.modal-image-container img {
  max-width: 92%;
  max-height: 320px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(34, 34, 34, 0.08);
  border: 1px solid var(--border);
  margin: 0 auto;
  display: block;
  object-fit: contain;
}
.modal-image-caption {
  font-size: 0.93em;
  color: var(--text-light);
  margin-top: 0.3em;
  margin-bottom: 0.2em;
  text-align: center;
  opacity: 0.85;
}
.modal-footer {
  margin-top: 1.2em;
  text-align: right;
  padding-top: 0.7em;
  border-top: 1px solid #ececec;
}
.overlay {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34, 34, 34, 0.85);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.overlay.active {
  display: flex;
  animation: fadeIn 0.12s;
}
.overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}
.section-title {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.07em;
}
@media (max-width: 900px) {
  .navbar-inner {
    padding: 0 1rem;
  }
  .container,
  .projects-container,
  .parcours-container,
  .cv-section,
  .presentation {
    padding: 0 0.5rem;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .modal-content {
    max-width: 98vw;
    padding: 1.2rem 0.5rem 1rem 0.5rem;
    border-radius: 14px;
  }
  .modal-image-container img {
    max-width: 99%;
    max-height: 210px;
  }
}
@media (max-width: 600px) {
  .title-header h1 {
    font-size: 1.5rem;
  }
   .presentation h1 {
    font-size: 1.5rem;
  }
  .navbar-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 0 0.5rem;
    min-height: 60px;
    gap: 0.5rem;
  }
  .navbar ul {
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.7rem;
  }
  .navbar a {
    padding: 0.5em 0.9em;
    font-size: 1em;
  }
  .language-selector {
    margin-left: 0;
    justify-content: center;
  }
  .title-header {
    margin-bottom: 1.2rem;
    padding-bottom: 0.3rem;
    margin-left: 1rem;
    margin-right: 1rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .presentation {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem 0 0.7rem 0;
    min-height: unset;
  }
  .presentation-photo {
    flex: 0 0 100px;
  }
  .profile-pic {
    width: 100px;
    height: 100px;
  }
  .presentation-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .presentation-text p {
    margin-left: 0.2rem;
    margin-right: 0.2rem;
    margin-bottom: 1.1em;
    line-height: 1.7;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    margin-top: 0.7rem;
    padding-bottom: 0.7rem;
  }
  .project-card-image {
    height: 140px;
    min-height: 140px;
    max-height: 140px;
  }
  .cv-preview {
    margin: 1rem 0 1rem 0;
    max-width: 100%;
    padding: 0.5rem;
  }
  .cv-image {
    border-radius: 6px;
  }
  .education-timeline {
    gap: 1.2rem;
    margin-top: 1.2rem;
    padding-left: 0;
  }
  .education-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0.7rem 1rem 0.7rem;
    border-radius: 14px;
  }
  .education-logo-wrapper {
    margin-right: 0;
    margin-bottom: 0.7rem;
  }
  .education-logo {
    width: 50px;
    height: 50px;
  }
  .modal-content {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    max-width: 98vw;
    border-radius: 10px;
    margin-left: 0.7rem;
    margin-right: 0.7rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .modal-header,
  .modal-section,
  .modal-footer {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }
  .modal-section p,
  .modal-header h2,
  .modal-footer {
    margin-left: 0;
    margin-right: 0;
  }
  .modal-image-container {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }
  .modal-image-container img {
    border-radius: 6px;
    width: 100%;
    max-width: 100%;
    max-height: 140px; /* agrandi */
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
  .footer-content {
    padding: 0 0.5rem;
  }
  .footer-contact {
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }
  footer {
    padding: 1.2rem 0 0.7rem 0;
    font-size: 0.98em;
  }
  .close {
    display: none;
  }
}
@media (max-width: 400px) {
  .navbar a {
    font-size: 0.95em;
    padding: 0.4em 0.5em;
  }
}