:root {
  --bg: #0f172a;
  --bg-soft: #111c35;
  --card: rgba(255, 255, 255, 0.08);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --primary: #db4497;
  --secondary: #a78bfa;
  --border: rgba(255, 255, 255, 0.14);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background:
    radial-gradient(
      circle at top left,
      rgba(56, 189, 248, 0.2),
      transparent 35%
    ),
    radial-gradient(
      circle at top right,
      rgba(167, 139, 250, 0.18),
      transparent 35%
    ),
    var(--bg);
  color: var(--text);
  line-height: 1.3;
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(15, 23, 42, 0.78);
  border-bottom: 1px solid var(--border);
}

.navbar {
  max-width: 1180px;
  margin: auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.menu-toggle {
  display: none;
  background: none;
  color: var(--text);
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
}

.hero {
  max-width: 1180px;
  margin: auto;
  min-height: calc(100vh - 90px);
  padding: 3rem 1.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.5fr;
  align-items: center;
  gap: 4rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1.2rem;
  color: var(--primary);
  font-weight: 700;
}

.hero h1 {
  display: flex;
  flex-direction: column;
  line-height: 0.95;
}

.hero-name {
  font-size: clamp(4rem, 6vw, 7rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  color: transparent;
  padding-bottom: 20px;
}

.hero-job {
  font-size: clamp(2rem, 3vw, 4rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.hero-text {
  color: var(--muted);
  font-size: 1.1rem;
  padding: 20px 0px;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #09185b;
  box-shadow: 0 20px 45px rgba(56, 189, 248, 0.22);
}

.secondary {
  border: 1px solid var(--border);
  color: var(--text);
}

.hero-image {
  position: relative;
  /* overflow: hidden; */
}

.hero-image::before {
  content: "";
  position: absolute;

  width: 410px;
  height: 410px;

  border-radius: 50%;

  background: radial-gradient(circle, #00bfff 0%, #7b68ee 45%, transparent 75%);

  filter: blur(80px);

  opacity: 0.7;

  z-index: 0;
}

.hero-image img {
  position: relative;
  width: 100%;

  object-fit: cover;
}

.section {
  max-width: 1180px;
  margin: auto;
  padding: 5rem 1.5rem;
}

.section h2 {
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  margin-bottom: 1.5rem;
  letter-spacing: -0.04em;
}

.section > p {
  color: var(--muted);
  max-width: 720px;
}

.skills-accordion,
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.2rem;
  margin-top: 2rem;
}

.skills-accordion details {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
  transition: 0.3s ease;
}

.skills-accordion summary {
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
}

.skills-accordion summary {
  list-style: none;
}

.skills-accordion summary::-webkit-details-marker {
  display: none;
}

.skills-accordion summary::before {
  content: "▶";
  margin-right: 0.6rem;
}

.skills-accordion details[open] summary::before {
  content: "▼";
}

.skills-accordion ul {
  margin-top: 1.2rem;
  padding-left: 1.2rem;
  color: var(--muted);
}

.skills-accordion li {
  margin-bottom: 0.7rem;
}

@media (max-width: 850px) {
  .skills-accordion {
    grid-template-columns: 1fr;
  }
}

.project-card h3,
.project-card-oc h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 auto;
}

.project-card span,
.project-card-oc span {
  color: var(--muted);
  font-size: 0.9rem;
}

.project-card,
.project-card-oc {
  padding: 1rem 2rem;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
}

.project-card {
  height: 200px;
}
.project-oc {
  margin-top: 3rem;
  margin-bottom: 0rem;
}

.project-card-oc {
  height: 310px;
}

.project-img {
  background-size: cover;
  background-position: center;
  border: 3px solid white;
  border-radius: 10px;
}

.project-aloa {
  background-image:
    linear-gradient(rgba(25, 25, 25, 0.35), rgba(15, 23, 42, 0.92)),
    url("./src/aloa-project.webp");
}

.project-rom1 {
  background-image:
    linear-gradient(rgba(25, 25, 25, 0.35), rgba(15, 23, 42, 0.92)),
    url("./src/coaching-project.webp");
}
.project-p14 {
  background-image:
    linear-gradient(rgba(25, 25, 25, 0.35), rgba(15, 23, 42, 0.92)),
    url("./src/p14-project.webp");
}
.project-p13 {
  background-image:
    linear-gradient(rgba(25, 25, 25, 0.35), rgba(15, 23, 42, 0.92)),
    url("./src/p13-project.webp");
}
.project-p12 {
  background-image:
    linear-gradient(rgba(25, 25, 25, 0.35), rgba(15, 23, 42, 0.92)),
    url("./src/p12-project.webp");
}

.project-wording {
  padding: 20px 0 10px 0;
  font-weight: 600;
}

.project-links {
  display: flex;
  flex-direction: column;
  margin-top: auto;
  gap: 0.3rem;
}
.project-link:hover {
  transform: scale(1.05);
}
.project-btn {
  align-self: center;
  display: inline-block;
  margin-top: auto;
  padding: 0.5rem 2rem;
  border-radius: 5px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
  transition: 0.3s ease;
}

.project-btn:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 20px 45px rgba(56, 189, 248, 0.18);
}
.project-card-oc .project-note {
  font-size: 0.7rem;
  margin-top: 0.5rem;
}

.timeline {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.4rem;
  backdrop-filter: blur(12px);
}

.timeline-item span {
  color: var(--primary);
  font-weight: 700;
}

.timeline-item h3 {
  margin: 0.5rem 0;
}

.timeline-item p {
  color: var(--muted);
  font-size: 1.15rem;
}

.timeline-details {
  padding: 20px;
  line-height: 1.5rem;
}
.contact {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 4rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.contact-info p {
  font-size: 1.15rem;
  color: var(--text);
}

.contact-info a {
  color: var(--text);
}

.contact-social {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  height: 100%;
  gap: 1rem;
}
.social-link {
  width: 250px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.8rem;

  padding: 0;

  border-radius: 10px;

  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.22) 35%,
    rgba(255, 255, 255, 0.08) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.12);

  color: var(--text);
  text-decoration: none;
  font-weight: 600;

  transition: 0.3s ease;
}

.social-link img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.skills-accordion details:hover,
.social-link:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.contact-social a {
  padding: 10px;
  border-radius: 10px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.04)
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 500;
  transition: 0.3s ease;
}

.contact-social a:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 20px 45px rgba(56, 189, 248, 0.18);
}

.footer {
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 850px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid var(--border);
    border-radius: 10px;
  }

  .nav-links.active {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 3rem;
  }

  .hero-image {
    max-width: 420px;
  }
}

/* Responsive projets + contact */

@media (max-width: 1100px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card-oc {
    height: auto;
    min-height: 420px;
  }
}

@media (max-width: 650px) {
  .section {
    padding: 4rem 1.2rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card,
  .project-card-oc {
    width: 100%;
    height: auto;
    min-height: auto;
    padding: 1.4rem;
  }

  .project-card h3,
  .project-card-oc h3 {
    margin: 0;
    font-size: 1.5rem;
  }

  .project-card span,
  .project-card-oc span {
    font-size: 1rem;
  }

  .project-wording {
    padding: 1rem 0 0.6rem;
  }

  .project-links {
    margin-top: 1.5rem;
  }

  .project-note {
    font-size: 0.85rem !important;
    line-height: 1.3;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-info {
    gap: 0.8rem;
  }

  .contact-info p {
    font-size: 1rem;
  }

  .contact-social {
    align-items: stretch;
  }

  .social-link {
    width: 100%;
  }
}
