:root {
  --background: #ffffff;
  --foreground: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --card: #ffffff;
  --primary: #0f172a;
  --secondary: #f8fafc;
  --radius: 1rem;
  --logo-bar-color: #0088aa;
}

html {
  overflow-y: scroll;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');


body {
  /* font-family: Inter, system-ui, sans-serif !important; */
  font-family: "Inter", sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  margin: 0;
  /* padding: 1rem 2rem; */
  margin: 0 !important;
  padding-top: 60px !important;
}


h1,
h2,
h3,
h4,
p {
  /* font-family: Inter, system-ui, sans-serif !important; */
  font-family: "Inter", sans-serif;
  border-bottom: none
}

@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,400;0,500;1,400&display=swap');

/* #title-block-header {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
} */


/* #quarto-document-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
} */

#quarto-content .sourceCode pre code,
#quarto-content pre.sourceCode code {
  font-family: "Fira Code", monospace !important;
  font-size: 0.9em !important;
}

code:not(.sourceCode) {
  font-family: 'Source Code Pro', monospace !important;
  background-color: transparent !important;
  color: var(--logo-bar-color);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}


/* --------- */
/* HOME Part */
/* --------- */

/* NAVBAR */

.navbar {
  background-color: var(--background) !important;
  padding: 0.5rem 2rem;
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-sizing: border-box;
}

/* Container interne */
.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.navbar-brand img.navbar-logo {
  max-height: 50px;
  padding-right: 20px;
}

.navbar-nav {
  gap: 0.2rem;
}

.navbar-nav .nav-link {
  position: relative;
  color: var(--foreground) !important;
  padding: 0.5rem 0.5rem !important;
  transition: color 0.3s ease;
  font-weight: 400;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--logo-bar-color);
  transition: width 0.3s ease;
}

/* Hover */
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

/* Couleur active */
.navbar-nav .nav-link.active {
  color: var(--foreground) !important;
}

/* Bouton hamburger */
.navbar-toggler {
  border: none !important;
  box-shadow: none !important;
  padding: 0.25rem 0.5rem;
}

/* Icône hamburger */
.navbar-toggler-icon {
  filter: invert(1);
  color: var(--foreground);
}

/* Search button */
#quarto-search .aa-DetachedSearchButton {
  background: transparent !important;
  border: none !important;
}

/* Mobile */
@media (max-width: 768px) {

  .navbar {
    padding: 0.5rem 1rem;
  }

  .navbar-collapse {
    margin-top: 1rem;
  }

  .navbar-nav {
    gap: 0.5rem;
  }

  .navbar-nav .nav-link {
    display: inline-block;
    width: fit-content;
  }
}


/* HERO */
.hero {
  padding: 6rem 2rem;
  text-align: center;
  background: #fafafa;
  border-bottom: 1px solid #e5e7eb;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  font-family: Inter, Arial, sans-serif;
}

.hero p,
.hero h1,
.hero a,
.hero div {
  font-family: Inter, Arial, sans-serif;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin: 1rem 0;
  line-height: 1.1;
}

.subtitle {
  font-size: 1.2rem;
  color: #64748b;
  margin-bottom: 2rem;
}

.badge {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border: 1px solid #e5e7eb;
  background-color: var(--muted);
  border-radius: 999px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.cta-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.9rem 1.4rem;
  border-radius: 0.75rem;
  text-decoration: none;
  font-weight: 600;
}

.btn-primary {
  background: #0f172a;
  color: white;
}

.btn-secondary {
  border: 1px solid #e5e7eb;
  color: #0f172a;
}

/* BUTTONS */
.cta-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn-primary,
.btn-secondary {
  padding: 0.9rem 1.4rem;
  border-radius: 0.75rem;
  text-decoration: none;
  font-weight: 600;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

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



/* HOME ABOUT */

.home-about {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;

  min-height: 70vh;
  padding: 4rem 2rem;

  max-width: 1200px;
  margin: 0 auto;
}

.home-about-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.img-about-home {
  width: 100%;
  max-width: 380px;
  height: auto;
  object-fit: cover;

  border-radius: 2rem;

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.08);
}

.home-about-presentation {
  flex: 1;
  max-width: 600px;
}

.home-about-presentation h1 {
  font-size: clamp(2.5rem, 5vw, 3rem);
  line-height: 1.05;
  margin-bottom: 0.5rem;
}

.home-about-presentation h2 {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--muted);

  margin-top: 0;
  margin-bottom: 1.5rem;
}

.home-about-presentation p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #334155;
}

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


@media only screen and (max-width: 768px) {

  .home-about {
    flex-direction: column;
    text-align: center;

    gap: 2rem;
    min-height: auto;
    padding: 3rem 1.5rem;
  }

  .img-about-home {
    max-width: 240px;
  }

  .home-about-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }
}


/* CARDS */
.card-grid,
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 1rem 0;
}

.card,
.metric-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.card:hover,
.metric-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.card h3,
.metric-card h4 {
  margin-top: 0;
}

.card-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  cursor: pointer;
}




/* -------- */
/* Listings */
/* -------- */

/* Projects */

/* .project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  grid-auto-rows: 1fr;
}

.project-card-link {
  display: flex;
  height: 100%;
  text-decoration: none;
  color: inherit;
  max-width: 400px
}

.project-card {
  display: flex;
  flex-direction: column;
  flex: 1;
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}


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

.project-card-title {
  margin: 0 0 0.6rem 0;
  font-size: 1.25rem;
}

.project-card-description {
  flex-grow: 1;
  margin-bottom: 1rem;
  line-height: 1.5;
  color: #555;

}

.project-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tag {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: #f3f4f6;
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
} */


/* Publication */
.pub-article-grid {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* CARD */
.pub-article-card {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  text-decoration: none;
  color: inherit;

  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 1rem;

  transition: background 0.2s ease;
}

.pub-article-card:hover {
  background: #fafafa;
}

.pub-article-content {
  flex: 1;
  padding-right: 1rem;
}

.pub-article-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.pub-article-authors {
  font-size: 0.85rem;
  color: #444;
  margin-bottom: 0.3rem;
}

.pub-article-journal {
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 0.3rem;
  font-style: italic;
}

.pub-article-year {
  color: #444;
  margin-bottom: 0.3rem;
  font-weight: bold;
}

.pub-article-image {
  width: clamp(120px, 12vw, 250px);
  min-width: 90px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pub-article-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}


@media only screen and (max-width:768px) {

  .pub-article-grid {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
  }

}

.quarto-title-meta-author,
.quarto-title-meta-affiliation {
  display: none !important;
}



/* SERVICES */
.service-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.service-card {
  flex: 1 1 100%;
  /* Full width on mobile */
  max-width: 400px;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
  min-height: 250px;
}

@media (min-width: 768px) {
  .service-card {
    flex: 1 1 calc(50% - 20px);
  }
}

.service-card ul {
  padding-left: 20px;
  flex-grow: 1;
}




/* CV */
.btn-custom {
  background-color: var(--logo-bar-color) !important;
  border-color: var(--logo-bar-color) !important;
  color: #ffffff;
  border-radius: 5px;
}

