:root {
  --bg: #0f0f14;
  --panel: #151521;
  --text: #e9e9ef;
  --muted: #b9b9c7;
  --line: rgba(255,255,255,0.10);

  --violet: #26264a;
  --brown: #5a463d;
  --yellow: #ffd400;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(38,38,74,0.55), transparent 60%),
    radial-gradient(1200px 700px at 80% 0%, rgba(90,70,61,0.55), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.45;/*1.55*/
}

/* ---------- Layout ---------- */

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  /*background: rgba(15,15,20,0.72);
  backdrop-filter: blur(10px);*/
  border-bottom: 1px solid var(--line);
  z-index:2000;
}



/* =========================
   NAVBAR
   ========================= */
/* Le conteneur "glass" */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(15,15,20,0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 0;/* crée un stacking context exploitable */
  isolation:isolate;/* empêche ::before de s’échapper derrière le monde */
}

/* La couche qui porte le blur + le fond */
.navbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Le contenu doit passer AU-DESSUS de la couche ::before */
.navbar > .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}


/* ---------- Brand ---------- */

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

/*
.brand {
  display: flex;
  align-items: center;
  overflow: hidden;
  gap: 0.75rem;
  text-decoration: none;
}
*/
/*
.brand-logo {
  height: 20px;       
  width: auto;
  max-width: 20px;
  object-fit: contain;
  object-position: center;
  display: block;
}
*/

/*
.brand-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  /*background: linear-gradient(135deg, var(--violet), var(--brown));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);*/
/* background-image: url("/assets/logoWeb.png"); /* CHEMIN ABSOLU */
/* background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  }
*/

.brand-badge {
/*width: 150px;/*124px;*/
height: 39px;/*34px;*/
  aspect-ratio: 620 / 170;
background-image: url("/assets/neosapiaAll_transp_web.png"); /* CHEMIN ABSOLU */
background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.brand-title {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-title strong {
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-title span {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.22em;
  text-transform: lowercase;
}

/* ---------- Navigation ---------- */

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.nav-links a {
  text-decoration: none;
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 14px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
}

.nav-links a.active {
  color: var(--text);
  border-color: rgba(255,255,255,0.16);
  background: linear-gradient(
    135deg,
    rgba(38,38,74,0.35),
    rgba(90,70,61,0.30)
  );
}


/* ---------- Language ---------- */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 2px;
  opacity: 0.75;
  /*font-size: 12px;
  letter-spacing: 0.05em;*/
}

/* séparateur */
.lang-switch span {
  opacity: 0.25;
}

/* liens */
.lang-switch a {
  text-decoration: none;
  color: #ffffff;
  opacity: 0.25;        /* langue inactive */
  transition: opacity 0.2s ease;
 font-size: 0.75em;
  letter-spacing: 0.08em;
}

/* langue active */
.lang-switch a.active {
  opacity: .9;
}

/* hover subtil */
.lang-switch a:hover {
  opacity: 0.6;
}





/* ---------- Pages ---------- */

.page {
  padding: 26px 0 46px;
}

h1 {
  margin: 6px 0 12px;
  font-size: clamp(15px, 2.8vw, 28px);/*clamp(20px, 3.2vw, 30px);*/
  letter-spacing: 0.0em;
}

.lead {
  color: var(--muted);
  max-width: 80ch;
}

.kicker {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.85;
  padding: .3rem 0 1.5rem; /*top horizontal bottom*/
  font-family: "Inter", system-ui, sans-serif;
}


/* Base commune */
.badge {
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Titre "Négatives / Positives" */
.badge-title {
  font-weight: 600;
  margin-right: 0.25rem;
}

/* Variante négative */
.badge-negative {
 color: #ffffffff;          /*  exemple : rouge désaturé */
}

.badge-negative .badge-title {
  /*color: #d9534f;*/
  letter-spacing: 0.02em;
}

/* Variante positive */
.badge-positive {
 color: #ffffffff;          /*  exemple : vert doux */
}

.badge-positive .badge-title {
  /*color: #5cb85c;*/
  letter-spacing: 0.04em;
}





/* ---------- Cards ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}





@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
  .nav-links {
    justify-content: flex-start;
  }
}

.card {
  background: rgba(21,21,33,0.70);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
}

.card h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.card p,
.card ul {
  color: var(--muted);
}

.card li {
  margin: 8px 0;
}


/* ---------- Photo ---------- */
.profile-card {
  overflow: hidden; /* contient le float */
}

.profile-photo {
  float: right;
  width: 113px;/*227px;*/
  height: 128px;/*256px;*/
  position: relative;
  margin: 0.25rem 0 0.75rem 1.25rem;
  border-radius: 12px;
  object-fit: cover;
}

/* Force le texte suivant à passer SOUS la photo */
.profile-clear {
  clear: both;
}



/* ---------- Quotes & CTA ---------- */

.quote {
  border-left: 3px solid rgba(255,212,0,0.35);
  padding-left: 12px;
  font-style: italic;
}

.cta {

  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
    width: auto;
  flex: 0 0 auto;
}

.btn {
  display: inline-block;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-weight: 600;
    flex: 0 0 auto;
}

.btn:hover {
  background: rgba(255,255,255,0.08);
}

.btn.primary {
  border-color: rgba(255,212,0,0.35);
  background: rgba(255,212,0,0.12);
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 18px 0 28px;
  color: var(--muted);
  font-size: 13px;
}

/* Liens de contact : même couleur que le texte + soulignés */
.contact-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.contact-link:hover {
  color: inherit;
  text-decoration-thickness: 2px;
}






/* ============================
   RESPONSIVE — MOBILE FIRST
   ============================ */

@media (max-width: 768px) {

  /* Container plus étroit */
  .container {
    padding: 1rem;
  }

    header {
    padding: 0;
    /*max-height: 64px;
    overflow: hidden;*/
  }

   body {
    line-height: 1.4;
  }
  
  /* ---------- NAVBAR ---------- */

  .navbar {
    display: flex;
    flex-direction: row;      /* 🔑 empile tout */
    align-items: flex-start;     /* alignement propre */
    gap: 0.3rem;
    padding: 0 14px; /* 🔑 annule l’héritage desktop en vertical */
  }

  .nav-links {
    display: flex;
    flex-direction: column;      /* 🔑 menu vertical */
    gap: 0.12rem;
    /*width: 100%;*/
    margin-left: auto; 
  }

  .nav-links a {
    font-size: .9rem;
    padding: 0.1rem 0;
    line-height: 1.1;
    white-space: nowrap;
    text-align: right;            /* plus propre visuellement */
  }

  
 /* ---------- Language ---------- */

@media (max-width: 768px) {
  .lang-switch {
        font-size: .8rem;
    margin-top: 6px;
    align-self: flex-end;
  }

  .lang-switch a {
    font-size: 0.75em;
  }



  
 /* ---------- LOGO ---------- */

  .brand {
    margin-bottom: 0.2rem;
    flex-shrink: 0;
  }
  
  .brand-logo {
    height: 30px; /*28px;*/
    width: auto;
    display: block;
  }

  
  /* ---------- TITRES ---------- */

  h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  h2 {
    font-size: 1.4rem;
  }

  .kicker {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    padding: .2rem 0 1.5rem; /*top horizontal bottom*/
  }

  /* ---------- HERO ---------- */

  .hero {
    padding: 2rem 0 1.5rem;
  }

  .subtitle {
    font-size: 1.05rem;
  }

  /* ---------- GRILLES ---------- */

  .grid,
  .split {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  /* ---------- CARTES ---------- */

  .card {
    padding-right: 1.25rem;
  }



 /* ---------- PHOTOS ---------- */
  .profile-photo {
    position: relative;
    top: 0;
    right: 0;
    margin-bottom: 1rem;
    width: 86px;
    height: 86px;
  }

  

  /* ---------- CTA ---------- */

  .cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  /* ---------- FOOTER ---------- */

  footer small {
    font-size: 0.8rem;
    line-height: 1.4;
  }
}


