@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --surface: #ffffff;
  --border: #e9e9e8;
  --border-strong: #dcdcdb;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --text-dim: #9ca3af;
  --accent: #5e6ad2;
  --accent-hover: #4d59c4;
  --accent-soft: #eef0fd;
  --r: 12px;
}

* {
  padding: 0;
  margin: 0;
  font-family: 'Inter', sans-serif;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg);
  overflow-x: hidden;
  color: var(--text);
}

/* =================================
   NAVIGATION
   ================================= */
nav {
  width: 100%;
  height: 10vh;
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  z-index: 10;
  border-bottom: 1px solid var(--border);
}

.nav-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.logo {
  color: var(--text);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.hamburg,
.cancel {
  cursor: pointer;
  position: absolute;
  right: 15px;
  top: 10px;
  color: var(--text);
  display: none;
  font-size: clamp(2.5rem, 0.5rem + 5vw, 3rem);
}

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

.nav-container .links a {
  position: relative;
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0 20px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s linear;
}

.nav-container .links a::before {
  position: absolute;
  content: "";
  bottom: -3px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent);
  transition: 0.2s linear;
}

.nav-container .links a:hover::before {
  width: 100%;
}

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

.dropdown {
  z-index: 100;
  position: absolute;
  top: 10vh;
  transform: translateY(-500px);
  width: 100%;
  height: auto;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transition: 0.2s linear;
  background-color: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
}

.dropdown .links {
  display: flex;
  flex-direction: column;
}

.dropdown .links a {
  display: flex;
  color: var(--text);
  text-decoration: none;
  justify-content: center;
  padding: 15px 0;
  align-items: center;
  transition: 0.2s linear;
}

.dropdown .links a:hover {
  background-color: var(--accent-soft);
  color: var(--accent);
}

/* =================================
   SECTION HÉROS
   ================================= */
#hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
    padding: 0 10%;
    background-color: var(--bg);
    background-image: radial-gradient(circle at top right, var(--accent-soft), transparent 45%);
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.hero-content {
    flex: 1;
    max-width: 60%;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-content h1 span {
    color: var(--accent);
}

.hero-content .typewriter {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.hero-content .typewriter-text {
    color: var(--text);
    font-weight: 600;
}

.hero-content .hero-description {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 550px;
}

.hero-content .social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: transparent;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-muted);
    margin-right: 1rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.hero-content .social-links a:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1.5px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 4px 14px rgba(94,106,210,0.25);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(94,106,210,0.32);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text);
    border-color: var(--border-strong);
}

.btn-secondary:hover {
    background-color: var(--bg-soft);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

.hero-image {
    flex-shrink: 0;
    width: clamp(250px, 30vw, 380px);
    height: clamp(250px, 30vw, 380px);
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =================================
   SECTIONS GÉNÉRIQUES
   ================================= */
section {
  width: 100%;
  padding: 80px 10%;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--text);
    letter-spacing: -0.02em;
}

/* =================================
   SECTION À PROPOS
   ================================= */
#about {
    background-color: var(--bg-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.about-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.about-text h3 {
    font-size: clamp(1.3rem, 2vw, 1.5rem);
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text);
}

.timeline {
  display: flex;
  overflow-x: auto;
  padding: 20px 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.timeline::-webkit-scrollbar {
  height: 8px;
}
.timeline::-webkit-scrollbar-track {
  background: transparent;
}
.timeline::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}
.timeline::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}


.timeline-item {
  position: relative;
  flex: 0 0 300px;
  margin-right: 20px;
  padding: 20px;
  background: var(--surface);
  border-radius: var(--r);
  scroll-snap-align: start;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 1px solid var(--border);
}

.timeline-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

.timeline-item:last-child {
  margin-right: 0;
}

.timeline-icon {
    position: absolute;
    top: -15px;
    left: 20px;
    width: 30px;
    height: 30px;
    background: var(--accent);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.timeline-content h4 {
    margin-top: 15px;
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 600;
}

.timeline-content p {
  margin: 5px 0 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =================================
   SECTION EXPÉRIENCE
   ================================= */
#experience {
    background-color: var(--bg);
}

.experience-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.experience-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    padding: 40px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 12px 32px rgba(94,106,210,0.12);
}

.experience-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.experience-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.experience-header .experience-company {
    font-size: 1.2rem;
    color: var(--accent);
    font-weight: 600;
}

.experience-header .experience-date {
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.experience-body {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.experience-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.experience-item i {
    font-size: 1.8rem;
    color: var(--accent);
    margin-top: 5px;
    width: 30px;
    text-align: center;
}

.experience-item div {
    flex: 1;
}

.experience-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 5px 0;
}

.experience-item p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}


/* =================================
   SECTION COMPÉTENCES (SKILLS)
   ================================= */
#skills {
    background-color: var(--bg-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.skills-container {
  max-width: 1200px;
  margin: 0 auto;
}

.skills-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-category {
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: var(--r);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--surface);
}

.skill-category:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

.skill-category h3 {
    color: var(--text);
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 20px;
  text-align: center;
}

.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease;
}
.tool-item:hover {
  transform: scale(1.1);
}

.tool-item i {
    font-size: 2.5rem;
    color: var(--text-dim);
}
.tool-item i.colored {
    color: var(--accent) !important;
}


.tool-item span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.soft-skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.soft-skills-list span {
    background-color: var(--accent-soft);
    color: var(--accent);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

/* =================================
   SECTION PROJETS
   ================================= */
#projects {
    background-color: var(--bg);
}

.projects-container {
  max-width: 1200px;
  margin: 0 auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(94,106,210,0.12);
}

.project-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: var(--bg-soft);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.project-card:hover .project-image img{
    transform: scale(1.05);
}

.project-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-content h3 {
    margin: 0 0 0.8rem 0;
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 600;
}

.project-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  flex-grow: 1;
}

.project-content p:last-of-type {
  font-family: 'Inter', monospace;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  margin-top: auto;
  flex-grow: 0;
}


/* =================================
   FOOTER
   ================================= */
footer {
    background-color: var(--bg-soft);
    color: var(--text);
    padding: 3rem 10%;
    border-top: 1px solid var(--border);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.contact-info h2 {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.contact-info p {
  margin: 0.5rem 0;
  font-size: 1rem;
  color: var(--text-muted);
}

.contact-info i {
    color: var(--accent);
    margin-right: 0.5rem;
}

footer .social-links a {
  text-decoration: none;
}

footer .social-links i {
    font-size: 1.5rem;
    color: var(--text-dim);
    transition: color 0.3s ease, transform 0.3s ease;
}

footer .social-links i:hover {
  color: var(--accent);
  transform: scale(1.2);
}

.footer-bottom {
  margin-top: 2rem;
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* =================================
   RESPONSIVE DESIGN
   ================================= */
@media (max-width: 992px) {
    #hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 100px;
    }
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
    }
    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-image {
        margin-bottom: 2rem;
    }
    .cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
  nav .logo {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    font-size: 1.5rem;
  }
  .nav-container .links {
    display: none;
  }
  .hamburg,
  .cancel {
    display: block;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
  }
  .skills-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .timeline-item {
    flex: 0 0 90%;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .cta-buttons {
      flex-direction: column;
      width: 100%;
  }
  .experience-card {
      padding: 24px;
  }
}

/* =================================
   STYLES POUR L'EFFET TYPEWRITER
   ================================= */

.typewriter-text {
    font-weight: 600;
    color: var(--text);
}

.typewriter label {
    color: var(--accent);
    font-weight: 500;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* =================================
   SCROLLBAR (global)
   ================================= */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

