*{
    margin: 0;
    padding: 0;
    font-family: "Cossette Titre", sans-serif;
    font-weight: 700;
    font-style: normal;
}
.container {
  max-width: 1440px;   /* Limit width */
  margin: 0 auto;      /* Center horizontally */
  width: 100%;         /* Allow smaller screens to shrink */
}

.cossette-titre-bold {
  font-family: "Cossette Titre", sans-serif;
  font-weight: 700;
  font-style: normal;
}

/* Site-wide header banner */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: #ffffffcc;
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid #e6e6e6;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 12px;
}

.site-nav .brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-nav .nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin-left: auto;
  padding: 0;
}

.site-nav .nav-links a {
  text-decoration: none;
  color: #111;
  font-size: 18px;
  padding: 8px 6px;
}

.site-nav .nav-links li::after{
    content: '';
    width: 0%;
    height: 2px;
    background: #f44336;
    display: block;
    margin: auto;
    transition: 0.5s;
}

.site-nav .nav-links li:hover::after{
    width: 100%;
}

/*
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .site-nav .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid #e6e6e6;
    padding: 8px 16px 16px;
  }
  .site-nav .nav-links.open { display: flex; }
}*/

/* End of Site-wide header banner */
.header{
    min-width: 100vh;
    width:  100%;
    background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)),url("images/banner.png");
    /*background-image: none;*/
    background-repeat: no-repeat; 
    background-position: center;
    background-size: cover;
    position: relative;
    height: 100vh;  
}
/* sections below the banner  */
.section {
  padding-block: 64px;
}

.logo-section {
  display: flex;
  align-items: center;
  background: #fff;
}

.logo-wrap {
  display: grid;
  place-items: center;
  min-height: 40vh;
}

.tam-logo {
  max-width: min(60vw, 760px);
  height: auto;
  image-rendering: -webkit-optimize-contrast;
}

.page-products{
  /* image path relative to products.html */
  background: url("images/pbackground.png") center / cover no-repeat fixed;
  /* optional solid color behind transparent areas */
  /*background-color: #000;*/
  min-height: 100vh;
}

/* ---- Two-panel products layout ---- */
.two-panel .split {
  display: grid;                      /* CSS Grid for the two columns */
  grid-template-columns: 260px 1fr;   /* left menu fixed, right grows */
 /* grid-template-columns: 260px 1fr; */  /* left menu fixed, right grows */

  gap: 36px;
  align-items: start;
  min-height: 90vh;
}

.split-left {
  border-right: 1px solid #eee;
  padding-right: 16px;
}

.menu-title {
  margin: 8px 0 12px;
  font-size: 18px;
  font-weight: 700;
}

.product-menu { 
  list-style: none; 
  margin: 0; padding: 0; display: grid; gap: 8px; }

/* space after the shared banner ONLY on products.html */
.products-page .site-header {           /* if banner.html uses class="site-header" */
  margin-bottom: 36px;                  /* adjust as needed */
}
/* if your banner doesn't have .site-header, this also works: */
.products-page header[role="banner"] {
  margin-bottom: 36px;
}

.product-menu li { margin: 0; }

.product-menu button {
  width: 100%;
  text-align: left;
  background: #f7f7f9;
  border: 1px solid #e6e6ee;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 600;
  cursor: pointer;
}

/* --- Independent scroll for the left menu --- */
.products-page .split-left{
  position: sticky;                    /* stick within viewport */
  top: var(--header-offset, 0px);      /* leave room for sticky banner */
  max-height: calc(100vh - var(--header-offset, 0px));
  overflow: auto;                      /* make only the menu scroll */
  overscroll-behavior: contain;        /* stop scroll chaining to page */
  padding-right: 6px;                  /* small gutter for scrollbar */
}

/* Keep the right viewer visible while you scroll the menu */
.products-page .split-right .viewer{
  position: sticky;
  top: calc(var(--header-offset, 0px) + 12px);
}

/* (optional) smoother keyboard/JS scrolling inside the menu */
.products-page .split-left{ scroll-behavior: smooth; }

.product-menu button:is(:hover, :focus) { outline: none; border-color: #c7c7dd; }
.product-menu button.is-active { background: #eaf0ff; border-color: #9db7ff; }

.split-right { padding: 0; }

.viewer {
  margin: 0;
  display: grid;
  place-items: center;   /* center image both axes */
  min-height: 60vh;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 12px;
}

.viewer img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;   /* keep aspect ratio, fit inside frame */
  opacity: 1;
  transition: opacity .25s ease;  /* smooth crossfade */
}

.viewer img.fading { opacity: 0; }
.viewer figcaption { margin-top: 8px; text-align: center; font-size: 14px; color: #666; }

/* Mobile: stack columns */
/*
@media (max-width: 900px) {
  .two-panel .split { grid-template-columns: 1fr; }
  .split-left { border-right: 0; border-bottom: 1px solid #eee; padding-bottom: 12px; }
}
*/