:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-muted: #eef2f8;
  --text: #18202b;
  --text-soft: #536072;
  --line: #dbe3ee;
  --accent: #204ecf;
  --accent-soft: #e8efff;
  --shadow: 0 14px 40px rgba(28, 44, 84, 0.08);
  --radius: 20px;
  --radius-sm: 14px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f8faff 0%, var(--bg) 100%);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
  border-radius: calc(var(--radius) / 2);
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(245, 247, 251, 0.86);
  border-bottom: 1px solid rgba(219, 227, 238, 0.85);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-inner {
  min-height: 76px;
}

.brand {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
}

.main-nav a {
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 600;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--accent);
}

.hero {
  padding: 5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr minmax(280px, 0.8fr);
  gap: 2rem;
  align-items: stretch;
}

.hero-content,
.profile-card,
.card,
.emphasis-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-content {
  padding: 2.4rem;
}

.eyebrow,
.section-label,
.timeline-date,
.project-date {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
}

.eyebrow,
.section-label,
.timeline-date,
.project-date {
  color: var(--accent);
}

.hero h1,
.section h2 {
  margin: 0.5rem 0 0;
  line-height: 1.15;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  max-width: 14ch;
}

.lead,
.section-intro,
.timeline-meta,
.profile-note,
.project-date {
  color: var(--text-soft);
}

.hero .lead {
  max-width: 62ch;
  font-size: 1.05rem;
  margin-top: 1.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.button:hover,
.button:focus-visible,
.tag-filter:hover,
.tag-filter:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-secondary {
  background: var(--surface-muted);
  color: var(--text);
}

.profile-card {
  padding: 2rem;
}

.profile-card h2 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.avatar {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 800;
}

.contact-list,
.tag-list,
.bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list {
  display: grid;
  gap: 0.9rem;
}

.contact-list li {
  display: grid;
  gap: 0.15rem;
}

.contact-list span:first-child {
  color: var(--text-soft);
  font-size: 0.88rem;
}

.section {
  padding: 1.5rem 0 3.75rem;
}

.section-alt {
  background: rgba(255, 255, 255, 0.42);
  border-top: 1px solid rgba(219, 227, 238, 0.65);
  border-bottom: 1px solid rgba(219, 227, 238, 0.65);
}

.two-columns,
.ambitions-block {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) 1fr;
  gap: 2rem;
  align-items: start;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.align-start {
  align-items: start;
}

.stack-large {
  display: grid;
  gap: 1rem;
}

.extra-space-top {
  margin-top: 1rem;
}

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tag-filter {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.tag-filter.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.project-grid,
.skills-grid,
.interests-grid,
.experience-grid {
  display: grid;
  gap: 1.25rem;
}

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.skills-grid,
.interests-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.emphasis-card {
  padding: 1.5rem;
}

.project-card-top {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.project-card h3,
.timeline-item h3,
.card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.tag-list li {
  padding: 0.45rem 0.8rem;
  background: var(--surface-muted);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
}

.timeline {
  position: relative;
  display: grid;
  gap: 1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.8rem;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 2px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  padding-left: 2.4rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 1.55rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px #f5f7fb;
}

.timeline-meta {
  margin-top: 0.25rem;
  font-weight: 500;
}

.bullet-list {
  display: grid;
  gap: 0.7rem;
}

.bullet-list li {
  position: relative;
  padding-left: 1rem;
}

.bullet-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.emphasis-card {
  background: linear-gradient(180deg, #ffffff 0%, #f3f7ff 100%);
}

.is-hidden {
  display: none !important;
}

.site-footer {
  padding: 1.6rem 0 2.2rem;
}

.footer-inner {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  color: var(--text-soft);
}

@media (max-width: 980px) {
  .hero-grid,
  .two-columns,
  .ambitions-block,
  .project-grid,
  .skills-grid,
  .interests-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .profile-card {
    order: -1;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
  }

  .header-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    justify-content: flex-start;
    gap: 0.7rem 1rem;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-content,
  .profile-card,
  .card,
  .emphasis-card {
    padding: 1.25rem;
  }
}

@media print {
  :root {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-muted: #f5f5f5;
    --line: #d6d6d6;
    --shadow: none;
  }

  .site-header,
  .hero-actions,
  .filter-panel,
  .site-footer {
    display: none;
  }

  body {
    background: #fff;
  }

  .section {
    padding: 1rem 0 1.5rem;
  }

  .hero {
    padding: 0 0 1.5rem;
  }
}


/* Actions de projet : lien externe / dépôt / téléchargement */
.project-link,
.project-card a.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 46px;
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 8px 20px rgba(28, 44, 84, 0.06);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease;
}

.project-link:hover,
.project-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(32, 78, 207, 0.28);
  background: #f8fbff;
  color: var(--accent);
  box-shadow: 0 12px 24px rgba(28, 44, 84, 0.1);
}

.project-link:focus-visible {
  outline: 3px solid rgba(32, 78, 207, 0.18);
  outline-offset: 2px;
}

.project-link::before,
.project-link::after {
  content: "";
  flex: 0 0 auto;
}

.project-link::before {
  width: 1.05rem;
  height: 1.05rem;
  background-color: currentColor;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
  mask-size: contain;
  -webkit-mask-size: contain;
}

.project-link::after {
  width: 0.95rem;
  height: 0.95rem;
  margin-left: 0.1rem;
  background-color: currentColor;
  opacity: 0.72;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='black'%3E%3Cpath d='M11.25 3a.75.75 0 0 0 0 1.5h3.19l-8.72 8.72a.75.75 0 1 0 1.06 1.06l8.72-8.72v3.19a.75.75 0 0 0 1.5 0V3.75A.75.75 0 0 0 16.25 3h-5Z'/%3E%3Cpath d='M5.25 5A2.25 2.25 0 0 0 3 7.25v7.5A2.25 2.25 0 0 0 5.25 17h7.5A2.25 2.25 0 0 0 15 14.75V11.5a.75.75 0 0 0-1.5 0v3.25c0 .414-.336.75-.75.75h-7.5a.75.75 0 0 1-.75-.75v-7.5c0-.414.336-.75.75-.75H8.5A.75.75 0 0 0 8.5 5H5.25Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='black'%3E%3Cpath d='M11.25 3a.75.75 0 0 0 0 1.5h3.19l-8.72 8.72a.75.75 0 1 0 1.06 1.06l8.72-8.72v3.19a.75.75 0 0 0 1.5 0V3.75A.75.75 0 0 0 16.25 3h-5Z'/%3E%3Cpath d='M5.25 5A2.25 2.25 0 0 0 3 7.25v7.5A2.25 2.25 0 0 0 5.25 17h7.5A2.25 2.25 0 0 0 15 14.75V11.5a.75.75 0 0 0-1.5 0v3.25c0 .414-.336.75-.75.75h-7.5a.75.75 0 0 1-.75-.75v-7.5c0-.414.336-.75.75-.75H8.5A.75.75 0 0 0 8.5 5H5.25Z'/%3E%3C/svg%3E");
}

.project-link--github::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2C6.477 2 2 6.589 2 12.25c0 4.529 2.865 8.372 6.839 9.728.5.096.682-.222.682-.495 0-.244-.009-.89-.014-1.747-2.782.617-3.369-1.37-3.369-1.37-.455-1.18-1.11-1.494-1.11-1.494-.908-.637.069-.624.069-.624 1.004.072 1.532 1.056 1.532 1.056.892 1.565 2.341 1.113 2.91.851.091-.664.349-1.114.635-1.37-2.221-.259-4.556-1.14-4.556-5.072 0-1.12.39-2.036 1.029-2.754-.103-.26-.446-1.306.098-2.723 0 0 .84-.276 2.75 1.052A9.33 9.33 0 0 1 12 7.418a9.3 9.3 0 0 1 2.504.347c1.909-1.328 2.748-1.052 2.748-1.052.546 1.417.203 2.463.1 2.723.64.718 1.027 1.634 1.027 2.754 0 3.942-2.339 4.81-4.567 5.064.359.318.679.946.679 1.907 0 1.378-.012 2.49-.012 2.829 0 .275.18.595.688.494C19.138 20.618 22 16.777 22 12.25 22 6.589 17.523 2 12 2Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2C6.477 2 2 6.589 2 12.25c0 4.529 2.865 8.372 6.839 9.728.5.096.682-.222.682-.495 0-.244-.009-.89-.014-1.747-2.782.617-3.369-1.37-3.369-1.37-.455-1.18-1.11-1.494-1.11-1.494-.908-.637.069-.624.069-.624 1.004.072 1.532 1.056 1.532 1.056.892 1.565 2.341 1.113 2.91.851.091-.664.349-1.114.635-1.37-2.221-.259-4.556-1.14-4.556-5.072 0-1.12.39-2.036 1.029-2.754-.103-.26-.446-1.306.098-2.723 0 0 .84-.276 2.75 1.052A9.33 9.33 0 0 1 12 7.418a9.3 9.3 0 0 1 2.504.347c1.909-1.328 2.748-1.052 2.748-1.052.546 1.417.203 2.463.1 2.723.64.718 1.027 1.634 1.027 2.754 0 3.942-2.339 4.81-4.567 5.064.359.318.679.946.679 1.907 0 1.378-.012 2.49-.012 2.829 0 .275.18.595.688.494C19.138 20.618 22 16.777 22 12.25 22 6.589 17.523 2 12 2Z'/%3E%3C/svg%3E");
}

.project-link--download::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='black'%3E%3Cpath d='M10 2.75a.75.75 0 0 1 .75.75v7.19l2.22-2.22a.75.75 0 1 1 1.06 1.06l-3.5 3.5a.75.75 0 0 1-1.06 0l-3.5-3.5a.75.75 0 1 1 1.06-1.06l2.22 2.22V3.5A.75.75 0 0 1 10 2.75Z'/%3E%3Cpath d='M3.5 13.25a.75.75 0 0 1 .75.75v.75c0 .414.336.75.75.75h10c.414 0 .75-.336.75-.75V14a.75.75 0 0 1 1.5 0v.75A2.25 2.25 0 0 1 15 17h-10a2.25 2.25 0 0 1-2.25-2.25V14a.75.75 0 0 1 .75-.75Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='black'%3E%3Cpath d='M10 2.75a.75.75 0 0 1 .75.75v7.19l2.22-2.22a.75.75 0 1 1 1.06 1.06l-3.5 3.5a.75.75 0 0 1-1.06 0l-3.5-3.5a.75.75 0 1 1 1.06-1.06l2.22 2.22V3.5A.75.75 0 0 1 10 2.75Z'/%3E%3Cpath d='M3.5 13.25a.75.75 0 0 1 .75.75v.75c0 .414.336.75.75.75h10c.414 0 .75-.336.75-.75V14a.75.75 0 0 1 1.5 0v.75A2.25 2.25 0 0 1 15 17h-10a2.25 2.25 0 0 1-2.25-2.25V14a.75.75 0 0 1 .75-.75Z'/%3E%3C/svg%3E");
}

.project-link--demo::before,
.project-link--external::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='black'%3E%3Cpath d='M10 3a7 7 0 1 0 0 14 7 7 0 0 0 0-14Zm5.38 6.25h-2.23a12.4 12.4 0 0 0-.78-3.22 5.52 5.52 0 0 1 3.01 3.22ZM10 4.5c.55 0 1.48 1.46 1.73 4.75H8.27C8.52 5.96 9.45 4.5 10 4.5ZM7.63 6.03a12.4 12.4 0 0 0-.78 3.22H4.62a5.52 5.52 0 0 1 3.01-3.22ZM4.5 10.75h2.35c.06 1.17.33 2.26.78 3.22A5.52 5.52 0 0 1 4.5 10.75Zm5.5 4.75c-.55 0-1.48-1.46-1.73-4.75h3.46c-.25 3.29-1.18 4.75-1.73 4.75Zm2.37-1.53c.45-.96.72-2.05.78-3.22h2.35a5.52 5.52 0 0 1-3.13 3.22Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='black'%3E%3Cpath d='M10 3a7 7 0 1 0 0 14 7 7 0 0 0 0-14Zm5.38 6.25h-2.23a12.4 12.4 0 0 0-.78-3.22 5.52 5.52 0 0 1 3.01 3.22ZM10 4.5c.55 0 1.48 1.46 1.73 4.75H8.27C8.52 5.96 9.45 4.5 10 4.5ZM7.63 6.03a12.4 12.4 0 0 0-.78 3.22H4.62a5.52 5.52 0 0 1 3.01-3.22ZM4.5 10.75h2.35c.06 1.17.33 2.26.78 3.22A5.52 5.52 0 0 1 4.5 10.75Zm5.5 4.75c-.55 0-1.48-1.46-1.73-4.75h3.46c-.25 3.29-1.18 4.75-1.73 4.75Zm2.37-1.53c.45-.96.72-2.05.78-3.22h2.35a5.52 5.52 0 0 1-3.13 3.22Z'/%3E%3C/svg%3E");
}
