:root {
  --bg: #f4f1eb;
  --bg-accent: #f9f8f4;
  --text-main: #141414;
  --text-muted: #6b6b6b;
  --line-soft: #ddd4c6;
  --accent: #141414;
  --max-width: 1080px;
  --radius-card: 28px;
  --bg: #fefefe;
  --bg-accent: #fefefe;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-size: 1em;
  font-family: "Sarabun", sans-serif;
  font-weight: 100;
  font-style: normal;
}

a {
  color: inherit;
  text-decoration: none;
}

/* HEADER ULTRA MINIMAL */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  box-shadow: -1px 6px 13px -1px rgba(0, 0, 0, 0.2);
  -webkit-box-shadow: -1px 6px 13px -1px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: -1px 6px 13px -1px rgba(0, 0, 0, 0.2);
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.brand-name {
  font-size: 1.2em;
  line-height: 1.6em;
  letter-spacing: 0.51em;
  color: #ffffffff;
  -webkit-text-stroke: 1px black;
}

.brand-role {
  font-size: 0.8em;
  letter-spacing: 0.15em;
}

.hero-name {
  letter-spacing: 0.51em;
  -webkit-text-stroke: 1px black;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  text-transform: lowercase;
  letter-spacing: 0.12em;
  font-size: 13px;
}

.nav-link {
  border: none;
  background: none;
  padding: 4px 0;
  cursor: pointer;
  color: var(--text-muted);
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--accent);
  transition: width 0.2s ease;
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link.active {
  color: var(--accent);
}

.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line-soft);
  background: var(--bg-accent);
  color: var(--text-main);
  padding: 6px 12px;
  text-transform: lowercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.nav-toggle[aria-expanded="true"] {
  background: var(--text-main);
  color: var(--bg-accent);
}

/* LAYOUT GLOBAL */

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 80px;
  padding-bottom: 80px;
}

section {
  position: relative;
  min-height: calc(100vh - 80px);
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card {
  padding: 20px 20px 20px;
  position: relative;
  overflow: hidden;
  background: var(--bg-accent);
  min-height: 300px;
}


.card-contact {
 display: flex;
 justify-content: center;
  align-items: center;
}


.card-shadow {
  box-shadow: 10px 10px 12px 2px rgba(0, 0, 0, 0.09);
  -webkit-box-shadow: 10px 10px 12px 2px rgba(0, 0, 0, 0.09);
  -moz-box-shadow: 10px 10px 12px 2px rgba(0, 0, 0, 0.09);
}

.card-title {
  font-size: 1.2em;
  font-weight: bold;
  text-transform: uppercase;
}

.expertise-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 32px;
}

.expertise-cards  .card-title{
  font-size:1em;
}

/* HERO AVEC GRAND FILIGRANE SKYLINE */

.card-2col {
  justify-content: space-between;
  align-items: center;
  display: flex;
  flex-wrap: wrap;
}

.card-2col > div {
  flex: 1 1 50%;
  padding: 1em;
}

.vieux-lille {
    width: 150%;
    opacity: 0.4;
    POSITION: ABSOLUTE;
    bottom: 0;
    right: 0;
}

.zerospacing {
  letter-spacing: 0; /* last letter without extra spacing */
}

/******* HEREO SECTION *******/
.hero-logo {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  align-items: center;
}

.hero-name {
  font-size: 1.6em;
  letter-spacing: 0.4em;
  line-height: 2em;
  -webkit-text-stroke: 1.5px black;
  color: #ffffffff;
}

.hero-role {
  /* color: var(--text-muted); */
  letter-spacing: 2.2em;
  line-height: 2em;
  text-align: center;
}
.hero-logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 280px;
  margin-top: 0.6em;
}

.hero-logo-mark .line {
  flex: 1;
  height: 2px; /* thickness of the line */
  background: #000; /* black bar */
}

.hero-logo-mark img {
  height: 48px;
  margin: 0 15px;
  display: block;
}

.hero-tagline p {
  margin: 0;
  margin-bottom: 1em;
  line-height: 1.4em;
}

/* PRÉSENTATION */
.photo {
  display: flex;
  justify-content: center;
}
.photo img {
    max-width:60vw;
}


.presentation-block-title {
  font-weight: bold;
  font-size: 1em;
}
.presentation-list {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 1.8em;
  margin-top: 0;
}

.contact-name {
  /* letter-spacing: 0.34em;
  text-transform: uppercase;
  margin-top: 18px;
  margin-bottom: 9px;
  font-size: 1.2rem;*/
} 

.contact-details p {
  margin: 0 0 6px 0;
}

.expertise-list {
  padding-left: 1em;
}

/*
.card-metro{
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;

}

.metro-station{
  display: flex;
  flex-direction: row;
  align-items: center;
}

.metro-station-name{
  border: 1px solid black;
  border-radius: 20px;
  padding: 0.5em 0.2em;
  width: 8em;
  text-align: center;
}

.metro-station-text{
    margin-left: 2em;
}

.metro-station-text li {
  line-height: 1rem;
}


.metro-station-text li::marker {
  color: var(--text-muted);
}
*/


.card-metro {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.metro-line {
  display: flex;
  flex-direction: column;
  position: relative;
}

.metro-station {
  display: flex;
  flex-direction: row;
  align-items: center;
  position: relative;
  margin-bottom: 2em; /* Add space between stations */
}

.metro-station:last-child {
  margin-bottom: 0; /* Remove margin from last station */
}

/* Add vertical connector line */
.metro-station:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 4em;
    top: 50%;
    width: 3px;
    height: 8em;
    background-color: #454545;
}

.metro-station-name {
  border: 1px solid black;
  border-radius: 20px;
  padding: 0.5em 0.2em;
  width: 8em;
  text-align: center;
  position: relative;
  z-index: 1;
  background-color: white; /* Ensure name appears above the line */
}

.metro-station-text {
  margin-left: 2em;
}

.metro-station-text li {
  line-height: 1rem;
}

.metro-station-text li::marker {
  /* color: var(--text-muted); */
}

.card-bulle-title{
    padding: 0.5em;
    border: 1px solid black;
    border-radius: 20px;
    margin: 0.5em;
    cursor: pointer;
}

.card-bulle-title:hover{
  color:var(--bg-accent);
  background-color: var(--text-main);
}

.card-bulle-list{
  display:none;
}

.card-bulle-list li{
  line-height: 1rem;

}


   
.card-bulle:hover .card-bulle-list{
  display:block;
 
}

.card-bulle-title-inactive{
    padding: 0.5em;
    border: 1px solid black;
    border-radius: 20px;
    margin: 0.5em;

}


.btn-contact{
    padding: 0.5em;
    border: 1px solid black;
    border-radius: 20px;
    margin: 0.5em;
    cursor: pointer;
}

.btn-contact:hover{
  color:var(--bg-accent);
  background-color: var(--text-main);
}


footer{
    width: 100%;
    text-align: center;
}



/* RESPONSIVE */

@media (max-width: 1024px) {
  .site-header-inner {
    padding-inline: 20px;
  }
  .page {
    padding-inline: 20px;
  }
  .card {
    padding-inline: 32px;
  }
  .expertise-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .site-header-inner {
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }
  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 12px;
    padding: 12px 0 4px;
    border-top: 1px solid var(--line-soft);
  }
  body.nav-open .main-nav {
    display: flex;
  }
  .main-nav .nav-link {
    padding: 8px 0;
  }
}

@media (max-width: 600px) {
  .card {
    padding: 26px 22px 30px;
    border-radius: 20px;
  }

  .hero-name {
    letter-spacing: 0.28em;
  }
  .presentation-columns {
    grid-template-columns: 1fr;
  }
  .expertise-cards {
    gap: 20px;
    grid-template-columns: 1fr;
  }
}
