:root {
  /* Backgrounds */
  --bg-main: #f8fafc;      /* gris très clair */
  --bg-soft: #eef2f7;      /* gris bleuté doux */
  --bg-section: #e5e7eb;   /* séparation sections */

  /* Glass */
  --glass: rgba(255, 255, 255, 0.65);

  /* Accents */
  --accent-blue: #2563eb;
  --accent-indigo: #6366f1;
  --accent-teal: #14b8a6;

  /* Text */
  --text: #0f172a;
  --text-soft: rgba(15, 23, 42, 0.75);
    --footer-bg: #020617;
  --footer-text: #cbd5f5;
  --footer-muted: #94a3b8;
}

* {
  box-sizing: border-box;
}


/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  position: sticky;
  top: 0;
  z-index: 10;

  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}


.logo {
  font-weight: 600;
  font-size: 1.2rem;
}

/* NAV BUTTONS */
.nav-btn {
  margin-left: 20px;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: background 0.25s ease, color 0.25s ease;
}

.nav-btn:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent-blue);
}

/* CV Button styled like 'hero-btn secondary' */
.nav-btn.cv-btn {
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent-blue);
  font-weight: 600;
  transition: transform 0.3s ease, background 0.25s ease;
}

.nav-btn.cv-btn:hover {
  transform: translateY(-3px);
  background: rgba(37, 99, 235, 0.15); /* Slightly darker on hover for effect */
  color: var(--accent-blue);
}

/* HERO */
.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 40px 20px;
}

/* CARDS / BULLES */
.card {
  max-width: 700px;
  padding: 40px;
  border-radius: 25px;
  background: var(--glass);
  backdrop-filter: blur(15px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.4);
  text-align: center;
}

.section-title h1,
.card h1 {
  color: var(--text);
  font-weight: 600;
}


.card h3 {
  margin-top: 10px;
  font-weight: 400;
}

/* SCROLL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s ease;
}

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

.delay {
  transition-delay: 0.3s;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 15px;
  }

  /* --- NEW CODE STARTS HERE --- */
  .navbar nav {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
  }

  .navbar .nav-btn {
    margin: 0 4px;
    padding: 8px 10px;
    font-size: 0.85rem;
    white-space: nowrap; 
  }
  /* --- NEW CODE ENDS HERE --- */

  .card {
    padding: 30px;
  }
}
/* NAME CARD */
.name-card {
  padding: 50px 60px;
}

.name {
  font-size: 3rem;
  letter-spacing: 2px;
  margin: 0;
}

.name span {
  color: var(--text);
  font-weight: 700;
}


.subtitle {
  margin-top: 15px;
  font-size: 1rem;
  opacity: 0.85;
}
/* BUBBLE INTERACTION */
.card {
  transition: 
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 60px rgba(56, 189, 248, 0.25);
}

/* Floating animation */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

.card.float {
  animation: float 6s ease-in-out infinite;
}
.hero-profile {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-pic {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 30px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

@media (max-width: 600px) {
  .name {
    font-size: 2.2rem;
  }

  .profile-pic {
    width: 110px;
    height: 110px;
  }
}
.hero-vertical {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 50px;
}
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-main);
  color: var(--text);
}


section {
  transition: background 0.6s ease;
}


/* EDUCATION */
.education {
  gap: 60px;
}

.section-title {
  text-align: center;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.edu-card {
  text-align: center;
  padding: 40px 30px;
}

.edu-logo {
  width: 80px;
  height: auto;
  margin-bottom: 25px;
  opacity: 0.9;
}

.edu-school {
  font-weight: 500;
  opacity: 0.85;
  margin: 10px 0;
}

.edu-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.9;
}

@media (max-width: 900px) {
  .navbar {
    padding: 15px 20px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 20px;
  }

  .card {
    padding: 30px 25px;
  }

  .name {
    font-size: 2.2rem;
  }

  .nav-btn {
    padding: 8px 14px;
    font-size: 0.9rem;
  }
}
html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 120px;
}
/* ===== SECTION BACKGROUND VARIATIONS ===== */

/* ===== STRONG SECTION BACKGROUND VARIATIONS ===== */

/* ===== LIGHT SECTION GRADIENTS ===== */

.section-home {
  background:
    radial-gradient(circle at top,
      #ffffff 0%,
      #f1f5f9 40%,
      #e5e7eb 100%
    );
}

.section-projects {
  background:
    linear-gradient(135deg,
      #f8fafc 0%,
      #eef2f7 50%,
      #e0e7ff 100%
    );
}

.section-experience {
  background:
    linear-gradient(180deg,
      #eef2f7 0%,
      #e0f2fe 50%,
      #f8fafc 100%
    );
}

.section-education {
  background:
    linear-gradient(135deg,
      #f8fafc 0%,
      #ecfeff 50%,
      #f1f5f9 100%
    );
}




/* ===== PROJECTS ===== */

.project-img {
  width: 100%;
  max-width: 500px;
  border-radius: 18px;
  margin-bottom: 25px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.45);
}

/* ===== PROJECT SKILLS TAGS ===== */

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
}

.skill {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;

  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.25);
  color: #1e40af;

  backdrop-filter: blur(6px);
}

/* ===== PROJECTS GRID ===== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}
.main-footer {
  background-color: var(--dark-bg);
  color: #e2e8f0;
  padding: 60px 20px 30px;
  margin-top: auto;
   border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr; /* La 1ere colonne est plus large */
  gap: 40px;
}

.footer-col h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col p {
  color: #94a3b8;
  line-height: 1.6;
  font-size: 0.95rem;
}

.footer-brand .logo-text {
  color: white; /* Texte blanc dans le footer */
}
.main-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
}

.footer-col p,
.footer-col ul li a {
  color: var(--footer-muted);
}

.footer-col ul li a:hover {
  color: white;
}

.footer-col h4 {
  color: white;
}


/* Icônes sociaux */
.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  color: #94a3b8;
  font-size: 1.2rem;
  transition: color 0.2s;
}

.social-links a:hover {
  color: white;
}

.copyright {
  margin-top: 20px;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* Responsive Footer */
@media (max-width: 900px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .brand, .social-links {
    justify-content: center;
  }
}
/* BRAND */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 1px;

  color: white;
  background: linear-gradient(135deg,
    var(--accent-blue),
    var(--accent-indigo)
  );

  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.logo-text {
  font-weight: 600;
  font-size: 1.2rem;
}
/* ===== PREMIUM PROJECT CARDS ===== */

.project-card {
  border-radius: 24px;
  overflow: hidden;
  background: white;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 35px 80px rgba(37, 99, 235, 0.25);
}

/* HEADER */
.project-header {
  position: relative;
  padding: 40px;
  color: white;
}

.project-header.vtol {
  background: linear-gradient(135deg, #4f46e5, #2563eb);
}

.project-header.echo {
  background: linear-gradient(135deg, #0ea5e9, #14b8a6);
}

.project-category {
  font-weight: 600;
  letter-spacing: 1px;
  opacity: 0.9;
}

/* FEATURED BADGE */
.project-badge {
  position: absolute;
  top: 20px;
  right: 20px;

  background: rgba(255,255,255,0.25);
  color: white;
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

/* BODY */
.project-body {
  padding: 35px 40px;
}

.project-body h3 {
  margin-top: 0;
  font-size: 1.4rem;
}

.project-body p {
  opacity: 0.9;
  line-height: 1.6;
}

.project-list {
  margin: 20px 0;
  padding-left: 20px;
}

.project-list li {
  margin-bottom: 8px;
}

/* CTA */
.project-btn {
  display: inline-block;
  margin-top: 25px;
  padding: 12px 26px;
  border-radius: 999px;
  text-decoration: none;

  color: white;
  background: linear-gradient(135deg,
    var(--accent-blue),
    var(--accent-indigo)
  );

  font-weight: 600;
  transition: transform 0.3s ease;
}

.project-btn:hover {
  transform: translateX(4px);
}
/* ===== HERO INTRO ===== */

.hero-intro {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: center;

  max-width: 1100px;
  padding: 60px;
  border-radius: 30px;

  background: var(--glass);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.25);
}

.hero-left {
  display: flex;
  justify-content: center;
}

.profile-pic.large {
  width: 220px;
  height: 220px;
}

.hero-right .name {
  margin-top: 0;
}

.hero-desc {
  margin-top: 20px;
  max-width: 520px;
  opacity: 0.85;
  line-height: 1.6;
}

/* CTA buttons */
.hero-actions {
  margin-top: 35px;
  display: flex;
  gap: 20px;
}

.hero-btn {
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s ease;
}

.hero-btn.primary {
  background: linear-gradient(135deg,
    var(--accent-blue),
    var(--accent-indigo)
  );
  color: white;
}

.hero-btn.secondary {
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent-blue);
}

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

/* Responsive */
@media (max-width: 900px) {
  .hero-intro {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px;
  }

  .hero-desc {
    margin: 20px auto 0;
  }

  .hero-actions {
    justify-content: center;
  }
}
/* ===== EDUCATION CARDS ===== */

.education-card {
  background: var(--glass);
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.education-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 35px 70px rgba(37,99,235,0.18);
}

/* Header */
.education-header {
  min-height: 120px;
  padding: 20px;
  color: white;
  display: flex;
  align-items: flex-end;
}

/* Header images */
.education-header.insa {
  background:
    linear-gradient(to bottom, rgba(15,23,42,0.15), rgba(15,23,42,0.85)),
    url("assets/images/insa.png") center / contain no-repeat,
    #1e293b;
}

.education-header.master {
  background:
    linear-gradient(to bottom, rgba(15,23,42,0.15), rgba(15,23,42,0.85)),
    url("assets/images/master.png") center / contain no-repeat,
    #1e293b;
}

.education-category {
  font-size: 0.8rem;
  opacity: 0.9;
}

/* Body */
.education-body {
  padding: 28px;
  text-align: center;
}
.project-hero {
  background: #f8fafc;
  padding: 80px 20px;
  padding-bottom: 3rem;
}

.project-hero-card {
  max-width: 1000px;
  margin: auto;
  background: white;
  border-radius: 20px;
  padding: 48px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.08);
}
.project-tags {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.project-chip {
  padding: 6px 14px;
  font-size: 0.75rem;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-weight: 600;
}

.project-chip.featured {
  background: #0ea5e9;
  color: white;
}
.project-hero-img {
  width: 100%;
  margin-top: 40px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.project-detail-img {
  max-width: 60%;
  height: auto;
  display: block;
  margin: 1.5rem auto 0;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.project-content {
  max-width: 1000px;
  margin: 80px auto;
  padding: 0 20px;
  display: grid;
  gap: 40px;
}

.content-card {
  background: white;
  border-radius: 18px;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.07);
  margin-top: 0.6rem;
  margin-bottom: 0.6rem;
}

.content-card h2 {
  margin-bottom: 16px;
}
.project-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

@media (max-width: 900px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}
.highlights {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.highlight-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.highlight-list li {
  padding: 14px 16px;
  border-radius: 12px;
  background: white;
  margin-bottom: 12px;
  font-size: 0.95rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.content-card.wide {
  max-width: 1000px;
  margin: 0 auto;
}
/* ===== EXPERIENCE ===== */

.experience-card {
  max-width: 900px;
}

.experience-header {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 25px;
}

.experience-logo {
  width: 90px;
  height: auto;
  opacity: 0.95;
  border-radius: 12px; /* <-- round corners */
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.25));
}

.experience-meta h3 {
  margin: 0;
  font-weight: 600;
}

.experience-company {
  margin: 6px 0 2px;
  opacity: 0.9;
}

.experience-duration {
  font-size: 0.9rem;
  opacity: 0.75;
}

.experience-list {
  margin-top: 20px;
  padding-left: 20px;
}

.experience-list li {
  margin-bottom: 10px;
  line-height: 1.6;
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 600px) {
  .experience-header {
    flex-direction: column;
    text-align: center;
  }

  .experience-logo {
    width: 70px;
  }
}
/* ===== EXPERIENCE TITLE ===== */

.experience-wrapper {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.experience-title {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 50px;
}

.experience-title h2 {
  font-size: 2rem;
  font-weight: 600;
  white-space: nowrap;
}

.title-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(15,23,42,0.25),
    rgba(15,23,42,0.05)
  );
}
.project-stats {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat {
  flex: 1;
  text-align: center;
  padding: 1.2rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
}

.stat-value {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.7;
}
.project-hero-image-wrapper {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.project-hero-img {
  max-width: 75%;
  height: auto;
}
/* ===== LINKEDIN INLINE – PREMIUM BADGE ===== */

.linkedin-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-left: 10px;
  width: 32px;
  height: 32px;

  font-size: 1.05rem; /* icône plus grande */
  color: #0f172a;     /* noir doux */

  border-radius: 8px;
  border: 2px solid #020617; /* contour noir épais */

  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);

  box-shadow:
    0 6px 14px rgba(0,0,0,0.18),
    inset 0 0 0 1px rgba(255,255,255,0.6);

  opacity: 0.9;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.linkedin-inline:hover {
  transform: translateY(-2px) scale(1.05);
  background: white;
  box-shadow:
    0 10px 22px rgba(0,0,0,0.25),
    inset 0 0 0 1px rgba(255,255,255,0.8);
}

}
.section-skills {
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 50%, #e0f2ff 100%);
  padding: 80px 20px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.skills-card {
  background: var(--glass);
  padding: 30px 25px;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.skills-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 35px 70px rgba(37, 99, 235, 0.18);
}

.skills-card h3 {
  margin-bottom: 20px;
  font-size: 1.2rem;
  font-weight: 600;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tags .skill {
  padding: 8px 16px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.25);
  color: #1e40af;
  font-size: 0.85rem;
  font-weight: 500;
  backdrop-filter: blur(6px);
}
.skills-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.skills-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: white;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

/* Couleurs / styles différents pour chaque catégorie */
.skills-logo.cad {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
}

.skills-logo.robo {
  background: linear-gradient(135deg, #0ea5e9, #14b8a6);
}

.skills-logo.ai {
  background: linear-gradient(135deg, #facc15, #f97316);
}

.skills-logo.code {
  background: linear-gradient(135deg, #6366f1, #9333ea);
}
.section-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  color: var(--text);
}

.section-header .title-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(15,23,42,0.25),
    rgba(15,23,42,0.05)
  );
}

/* Icône déco dans le header */
.project-header .header-icon {
  font-size: 2.2rem;
  opacity: 0.18;
  position: absolute;
  bottom: 16px;
  right: 28px;
  pointer-events: none;
}

/* ================= EXPERIENCE (IMPROVED) ================= */

/* Le wrapper centre la zone, mais les cartes restent bien alignées */
.experience-wrapper {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;

  display: grid;
  gap: 26px;
  padding: 0 10px;
}

/* Carte experience : plus large, alignée à gauche, plus "pro" */
.experience-card {
  width: 100%;
  max-width: 950px;
  margin: 0 auto;

  text-align: left;                 /* IMPORTANT: stop le center */
  padding: 34px 38px;

  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.10);
}

/* Header plus structuré */
.experience-header {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 22px;
  margin-bottom: 18px;
}

/* Logo */
.experience-logo {
  width: 92px;
  height: auto;
  opacity: 0.98;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.18));
}

/* Si pas de logo -> icône dans un carré glass */
.placeholder-logo {
  width: 92px;
  height: 92px;
  border-radius: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);

  font-size: 1.6rem;
  color: var(--accent-blue);
}

/* Typo plus nette */
.experience-meta h3 {
  margin: 0;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.2px;
}

.experience-company {
  margin: 6px 0 2px;
  opacity: 0.9;
}

.experience-duration {
  margin: 0;
  font-size: 0.92rem;
  opacity: 0.7;
}

/* Tags */
.experience-tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.exp-tag {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;

  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.18);
  color: #1e40af;
}

/* Liste plus lisible */
.experience-list {
  margin: 14px 0 0;
  padding-left: 18px;
}

.experience-list li {
  margin-bottom: 10px;
  line-height: 1.65;
  opacity: 0.92;
}

/* Responsive */
@media (max-width: 650px) {
  .experience-card {
    padding: 26px 22px;
  }

  .experience-header {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .experience-card {
    text-align: left; /* on garde la liste à gauche même si header centré */
  }

  .experience-logo,
  .placeholder-logo {
    margin: 0 auto;
  }

  .experience-tags {
    justify-content: center;
  }
}
/* ================= EDUCATION (IMPROVED) ================= */

.section-education.hero {
  justify-content: flex-start;
  min-height: auto;
  padding-top: 80px;
  padding-bottom: 80px;
}

/* grille un peu plus large + mieux centrée */
.education-grid {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

/* version premium */
.edu-premium {
  padding: 0;                 /* on gère padding dans le body */
  overflow: hidden;
  text-align: left;           /* IMPORTANT : plus pro */
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.10);
}

/* header avec gradient + zone logo */
.edu-header {
  position: relative;
  min-height: 120px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 18px 20px;

  border-bottom: 1px solid rgba(255,255,255,0.35);
}

/* gradients différents */
.edu-header.insa {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
}

.edu-header.master {
  background: linear-gradient(135deg, #0ea5e9, #14b8a6);
}

/* logo en “badge” */
.edu-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  padding: 10px;
  border-radius: 16px;

  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(15,23,42,0.10);
  box-shadow: 0 14px 30px rgba(15,23,42,0.18);
}

/* contenu */
.edu-body {
  padding: 26px 28px 30px;
}

.edu-body h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 700;
}

.edu-school {
  margin: 0 0 10px;
  opacity: 0.85;
}

.edu-desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  opacity: 0.9;
}

/* tags */
.edu-tags {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.edu-tag {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;

  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.18);
  color: #1e40af;
  backdrop-filter: blur(6px);
}

/* hover plus “premium” */
.edu-premium:hover {
  transform: translateY(-8px);
  box-shadow: 0 35px 70px rgba(37, 99, 235, 0.18);
}

/* responsive */
@media (max-width: 600px) {
  .edu-body {
    padding: 22px 20px 26px;
  }

  .edu-header {
    justify-content: center;
  }

  .edu-premium {
    text-align: left;
  }
}
/* ===== EDUCATION – LOGO DOMINANT DANS LE BANDEAU ===== */

.edu-header {
  position: relative;
  min-height: 160px;                 /* + haut */
  display: flex;
  align-items: center;               /* centré verticalement */
  justify-content: center;           /* centré horizontalement */
  padding: 0;
}

/* Logo beaucoup plus grand */
.edu-logo {
  width: 110px;                      /* AVANT: 64px */
  height: 110px;
  padding: 16px;

  border-radius: 22px;
  background: rgba(255,255,255,0.9);

  box-shadow:
    0 25px 50px rgba(15,23,42,0.35),
    inset 0 0 0 1px rgba(15,23,42,0.08);

  transform: translateY(22px);       /* effet qui “sort” du bandeau */
}

/* Laisse de la place pour le logo qui déborde */
.edu-body {
  padding-top: 52px;                 /* compense le débordement */
}
/* ================= PROJECT PAGE (PREMIUM) ================= */

.project-page {
  font-family: 'Inter', system-ui, sans-serif;
}

/* Navbar plus clean sur page projet */
.project-navbar {
  background: rgba(255, 255, 255, 0.70);
  backdrop-filter: blur(18px);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(255,255,255,0.55);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.back-btn:hover {
  transform: translateY(-2px);
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.18);
}

/* Hero + fond plus impactant */
.project-hero {
  padding: 90px 20px 70px;
}

.project-hero--toep {
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.9) 0%, rgba(241,245,249,0.9) 35%, rgba(224,242,254,0.95) 100%),
    linear-gradient(135deg, rgba(37,99,235,0.08), rgba(20,184,166,0.06));
}

.project-hero-card {
  max-width: 980px;
  margin: 0 auto;
  padding: 54px;
  border-radius: 28px;

  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(18px);

  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 40px 90px rgba(15, 23, 42, 0.12);

  position: relative;
  overflow: hidden;
}

/* petit glow discret */
.project-hero-card::before {
  content: "";
  position: absolute;
  inset: -120px;
  background: radial-gradient(circle at 30% 10%, rgba(37,99,235,0.18), transparent 55%),
              radial-gradient(circle at 80% 0%, rgba(20,184,166,0.16), transparent 50%);
  pointer-events: none;
}

/* Title & intro */
.project-title {
  margin: 18px 0 12px;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  letter-spacing: -0.5px;
  line-height: 1.15;
  position: relative;
}

.project-intro {
  max-width: 820px;
  font-size: 1.02rem;
  line-height: 1.7;
  opacity: 0.9;
  margin-top: 0;
  position: relative;
}

/* ================= EDUCATION (layout + responsive) ================= */

.education-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch; /* toutes les cartes même hauteur */
}

/* Carte */
.edu-card{
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Bandeau = même hauteur pour toutes */
.edu-header{
  height: 92px;                 /* même bandeau */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* Logo = même rendu (Sherbrooke inclus) */
.edu-logo{
  max-height: 52px;             /* uniformise tous les logos */
  max-width: 85%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.10));
}

/* Corps carte : pousse les tags en bas pour aligner le style */
.edu-body{
  display: flex;
  flex-direction: column;
  padding: 18px 18px 16px;
  flex: 1;
}

.edu-body h3{
  line-height: 1.2;
  margin-bottom: 10px;
}

.edu-school{
  margin: 0;
}

.edu-meta{
  margin: 8px 0 12px;
  opacity: 0.75;
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.edu-dot{
  opacity: 0.6;
}

.edu-desc{
  margin: 0 0 14px;
  opacity: 0.9;
}

/* Tags : alignés, jolis, et restent en bas */
.edu-tags{
  margin-top: auto;             /* colle les tags en bas */
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.edu-tag{
  white-space: nowrap;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.88rem;
}

/* ================= Responsive ================= */

/* Tablette */
@media (max-width: 980px){
  .education-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Téléphone */
@media (max-width: 620px){
  .education-grid{
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .edu-header{
    height: 84px;               /* bandeau un peu plus compact */
    padding: 12px 14px;
  }

  .edu-logo{
    max-height: 46px;
  }

  .edu-body{
    padding: 16px 16px 14px;
  }

  .edu-meta{
    font-size: 0.92rem;
  }

  .edu-tag{
    font-size: 0.85rem;
    padding: 6px 9px;
  }
}
/* Logos écoles – plus grands dans le bandeau */
.edu-logo{
  max-height: 120px;     /* ↑ augmente la taille */
  max-width: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 12px rgba(0,0,0,0.15));
}

/* Bandeau légèrement ajusté pour respirer */
.edu-header{
  height: 110px;       /* ↑ bandeau un peu plus haut */
  padding: 16px 18px;
}
@media (max-width: 620px){
  .edu-logo{
    max-height: 54px;
  }

  .edu-header{
    height: 96px;
  }
}
/* Empêche les éléments de déborder sur mobile */
.section-skills,
.skills-grid,
.skills-card,
.skill-tags {
  max-width: 100%;
}

.skill {
  max-width: 100%;
  white-space: normal;      /* autorise retour à la ligne */
  overflow-wrap: anywhere;  /* casse proprement les mots si besoin */
  word-break: break-word;
}
.handcrafted {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.78rem;
  opacity: 0.65;
  letter-spacing: 0.3px;
}

.handcrafted::before {
  content: "✦ ";
  opacity: 0.7;
}

/* ================= PROJECT PAGES (AURIGA, DIY, etc.) ================= */

.back-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 20px; border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(255,255,255,0.55);
  text-decoration: none; color: var(--text); font-weight: 500;
  transition: transform 0.25s, background 0.25s, border-color 0.25s;
}

.back-btn:hover {
  transform: translateY(-2px);
  background: rgba(37,99,235,0.08);
  border-color: rgba(37,99,235,0.25);
}

/* Hero Section */
.page-hero {
  padding: 90px 20px 60px;
  background:
    radial-gradient(circle at 10% 0%, rgba(37,99,235,0.10) 0%, transparent 50%),
    radial-gradient(circle at 90% 100%, rgba(20,184,166,0.10) 0%, transparent 50%),
    linear-gradient(135deg, #f8fafc 0%, #eef2f7 50%, #e0e7ff 100%);
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 999px;
  background: rgba(37,99,235,0.08); border: 1px solid rgba(37,99,235,0.20);
  color: var(--accent-blue); font-size: 0.82rem; font-weight: 600; 
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 24px;
}

.page-hero h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.5rem); font-weight: 700;
  line-height: 1.1; letter-spacing: -1.5px;
  color: #0f172a; margin-bottom: 20px;
}

.page-hero h1 .highlight {
  background: linear-gradient(135deg, #2563eb 0%, #14b8a6 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.page-hero p {
  max-width: 650px; margin: 0 auto;
  font-size: 1.05rem; line-height: 1.7; color: var(--text-soft);
}

.hero-tags {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; margin-top: 32px;
}

.hero-tag {
  padding: 7px 16px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 600; background: white;
  border: 1px solid rgba(15,23,42,0.10);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06); color: var(--text);
}

/* Projects Grid */
.projects-section {
  max-width: 1100px; margin: 0 auto; padding: 80px 20px 100px;
  display: grid; gap: 60px;
}

/* Detail Card */
.project-detail-card {
  background: white; border-radius: 28px; overflow: hidden;
  box-shadow: 0 25px 60px rgba(15,23,42,0.09);
  border: 1px solid rgba(15,23,42,0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-detail-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 40px 80px rgba(37,99,235,0.15);
}

.card-inner { display: grid; grid-template-columns: 1fr 1fr; }
.card-inner.reverse { direction: rtl; }
.card-inner.reverse > * { direction: ltr; }

/* Visual Side & Auto Slider */
.card-visual {
  position: relative; min-height: 440px; overflow: hidden; background: #ffffff;
}

.auto-slider {
  position: absolute; inset: 0; width: 100%; height: 100%;
}

.auto-slider img, .auto-slider video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; 
  transform: scale(1.05);
  transition: opacity 1.2s ease-in-out, transform 5s ease-out;
}

.auto-slider img.active, .auto-slider video.active {
  opacity: 1; transform: scale(1); z-index: 1;
}

/* Card Content */
.card-content {
  padding: 44px 48px; display: flex; flex-direction: column; justify-content: center;
}

.card-number {
  font-family: 'Syne', sans-serif; font-size: 4rem; font-weight: 800;
  line-height: 1; margin-bottom: 8px;
  background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(99,102,241,0.08));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.card-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  margin-bottom: 14px;
}

.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; }

.card-content h2 {
  font-family: 'Syne', sans-serif; font-size: 1.65rem; font-weight: 700;
  line-height: 1.2; margin-bottom: 16px; color: var(--text);
}

.card-content p {
  font-size: 0.95rem; line-height: 1.7; color: var(--text-soft); margin-bottom: 12px;
}

.card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.card-tag { padding: 5px 13px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; border: 1px solid; }

/* Color Themes */
.theme-indigo .card-eyebrow { color: #6366f1; }
.theme-indigo .eyebrow-dot { background: #6366f1; }
.theme-indigo .card-tag { background: rgba(99,102,241,0.07); border-color: rgba(99,102,241,0.25); color: #4338ca; }

.theme-teal .card-eyebrow { color: #14b8a6; }
.theme-teal .eyebrow-dot { background: #14b8a6; }
.theme-teal .card-tag { background: rgba(20,184,166,0.07); border-color: rgba(20,184,166,0.25); color: #0f766e; }

.theme-blue .card-eyebrow { color: #2563eb; }
.theme-blue .eyebrow-dot { background: #2563eb; }
.theme-blue .card-tag { background: rgba(37,99,235,0.07); border-color: rgba(37,99,235,0.25); color: #1e40af; }

/* Highlights List */
.highlights-mini { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.highlight-item { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; color: var(--text-soft); line-height: 1.5; }
.highlight-item i { margin-top: 3px; font-size: 0.75rem; flex-shrink: 0; }

/* Footer CTA */
.footer-cta { text-align: center; padding: 0 20px 100px; }
.footer-cta p { color: var(--text-soft); margin-bottom: 24px; font-size: 1rem; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 32px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 1rem;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo)); color: white;
  box-shadow: 0 10px 30px rgba(37,99,235,0.35); transition: transform 0.3s, box-shadow 0.3s;
}
.cta-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(37,99,235,0.45); }

/* specific delays for project pages */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.25s; }

/* Responsive adjustments */
@media (max-width: 900px) {
  .card-inner, .card-inner.reverse { grid-template-columns: 1fr; direction: ltr; }
  .card-visual { min-height: 300px; }
  .card-content { padding: 32px 30px; }
}