:root{
  --bg:#ffffff;
  --fg:#0a0a0a;
  --muted:#5f5f5f;
  --line:#d9d9d9;
  --maxw: 940px;
  --pad-x: clamp(20px, 5vw, 40px);
  --space-hero-top: clamp(24px, 6vw, 48px);
  --space-hero-bottom: clamp(16px, 4vw, 32px);
  --space-section: clamp(22px, 5vw, 36px);
  --space-gap: clamp(10px, 2.4vw, 18px);
  --space-media-title: clamp(18px, 4vw, 30px);
  --space-title-text: clamp(10px, 2.6vw, 16px);
  --radius:14px;
  --media-h: clamp(220px, 42vw, 420px);
}

*{ box-sizing:border-box }

@font-face {
  font-family: "UNCLASSIFIEDLAB";
  src: url("./font/unclassifiedlab.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

html,body{
  margin:0; height:100%;
  background:var(--bg); color:var(--fg);
  font-family: "UNCLASSIFIEDLAB", Arial, sans-serif;
}

.container{
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.header{
  display:flex; align-items:center; justify-content:center; flex-direction:column;
  padding-block: var(--space-hero-top) var(--space-hero-bottom);
}

.logo{
  width: clamp(74px, 9vw, 90px);
  height: clamp(74px, 9vw, 90px);
  background: transparent url('./images/logo.png') center/contain no-repeat;
}

.logo img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand{
  margin-top: clamp(10px, 2vw, 14px);
  font-weight: 800;
  letter-spacing: .08em;
  text-align: center;
  font-size: clamp(17px, 1.8vw, 19px);
}
  
.french-flag-bar {
  margin-top:10px;
  width: 206px;
  height: 5px;
  display: flex;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.10);
}

.french-flag-bar::before {
  content: "";
  flex: 1;
  background-color: #0055A4;
}

.french-flag-bar div {
  flex: 1;
  background-color: #e8e8e8; 
}

.french-flag-bar::after {
  content: "";
  flex: 1;
  background-color: #EF4135;
}

.intro{
  padding-block: clamp(8px, 2.5vw, 14px) clamp(18px, 4vw, 28px);
  text-align: center;
}

.mark{
  font-weight: inherit;
  color: var(--accent, #000);
}

.menu-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #959595;
  background: #efefef;
  border-radius: 8px;
  cursor: pointer;
  z-index: 1001;
  transition: none;
  user-select: none;
  transition: background 0.2s ease, color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.menu-toggle:hover {
  color: #000;
}

.menu-toggle.active {
  background: #f7f7f7;
  color: #000;
}

.side-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.side-menu {
  position: fixed;
  top: 0;
  left: -320px;
  width: 243px;
  height: 100vh;
  background: #fff;
  border-right: 1px solid #9d9d9d;
  box-shadow: 3px 0 15px rgba(0, 0, 0, 0.1);
  transition: left 0.3s ease;
  z-index: 1002;
  display: flex;
  flex-direction: column;
  padding-top: 20px;
}

.close-menu {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #ababab;         
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.close-menu:hover {
  color: #000;
}

.close-menu:active {
  color: #000;           
}

.side-menu-list {
  list-style: none;
  margin: 60px 0 0;
  padding: 0;
  width: 100%;
}

.side-menu-list .menu-item {
  width: 100%;
  padding: 16px 0;
  text-align: center;
  font-size: clamp(15px, 2vw, 18px); 
  color: var(--muted);
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.side-menu-list .menu-item.active {
  background: #f3f3f3;
  color: var(--fg);
  font-weight: 600; 
}

.side-menu-list .menu-item.active:hover {
  background: #f3f3f3;
}

.side-menu-list .menu-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--fg);
  border-radius: 2px;
}

.side-menu-list .menu-item:not(.active):hover {
  background: rgba(0, 0, 0, 0.02);
}

.side-menu.open {
  left: 0;
}

.side-menu-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

@media (max-width: 500px) {
  .side-menu {
    width: 50%;
    left: -55%;
  }
  
  .side-menu.open {
    left: 0;
  }
  
}

.sections-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.tech-section {
  display: none;
  opacity: 0;
  /*transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;*/
}

.tech-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.intro .title{
  font-weight: 700;
  margin-bottom: clamp(6px, 1.8vw, 10px);
  font-size: clamp(17px, 2vw, 19px);
}

.intro .desc{
  color: var(--muted);
  line-height: 1.65;
  margin-inline: auto;
  max-width: 760px;
  text-align: left;
  font-size: clamp(16px, 1.8vw, 18px);
}

.separator{
  display:flex; justify-content:center;
  margin-block: clamp(24px, 5vw, 36px);
}

.separator .line{
  width: min(520px, 70%);
  height: 1px; background: var(--line);
}

.section{
  padding-block: var(--space-section);
}

.section .section-head{
  display:flex; justify-content:center;
  margin-bottom: clamp(10px, 2.4vw, 16px);
}

.section .section-title{
  font-weight: 800;
  text-transform: none;
  text-align: center;
  letter-spacing: .02em;
  font-size: clamp(17px, 2vw, 19px);
}

.tech-item {
  display:flex;
  flex-direction:column;
  align-items:center;
  margin: clamp(16px, 3.6vw, 22px) auto clamp(18px, 4vw, 28px);
  max-width: 760px;
}

.media{
  width: 100%;
  height: var(--media-h);
  background-color: #f2f2f2;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  border: 1px solid #cfcfcf; border-radius: var(--radius);
  display:flex; align-items:center; justify-content:center;
}

.media .media-placeholder{
  padding: 10px; color:#8a8a8a; font-size: clamp(12px, 1.6vw, 13px);
}

.h-200{ --media-h:200px; }
.h-240{ --media-h:240px; }
.h-300{ --media-h:300px; }
.h-360{ --media-h:360px; }
.h-420{ --media-h:420px; }
.h-520{ --media-h:520px; }

.tech-title {
  margin-top: var(--space-media-title);
  font-size: clamp(16px, 1.8vw, 18px);
  font-weight:700;
  text-align:left;
  width:100%;
}

.tech-desc {
  margin-top: var(--space-title-text);
  color: var(--muted);
  line-height: 1.65;
  text-align:left;
  width:100%;
  font-size: clamp(16px, 1.8vw, 18px);
}

.research-item{
  display:flex; flex-direction:column; align-items:center;
  margin: clamp(16px, 3.6vw, 22px) auto clamp(18px, 4vw, 28px);
  max-width: 760px;
}

.research-title{
  margin-top: clamp(10px, 2.4vw, 12px);
  font-size: clamp(16px, 1.9vw, 18px);
  font-weight:700;
  text-align:left;
  width:100%;
}
.research-desc{
  margin-top: clamp(6px, 1.8vw, 8px);
  color: var(--muted);
  line-height: 1.65;
  text-align:left;
  width:100%;
  font-size: clamp(16px, 1.8vw, 18px);
}

.contact .section-title{
  font-size: clamp(17px, 2vw, 19px);
}

.contact-text {
  margin: clamp(10px, 2.6vw, 14px) auto 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.7;
  text-align: center;
  font-size: clamp(16px, 1.8vw, 18px);
}

.block-separator {
  margin-top: 1.2rem;
}

.contact-email {
  margin: 0.5rem auto 0;
  max-width: 760px;
  text-align: center;
  color: #0a0a0a;
  font-size: clamp(16px, 1.8vw, 18px);
  word-break: break-word;
  cursor: text;
}

@media (max-width: 900px){
  :root{ --media-h: clamp(200px, 48vw, 380px); }
}
@media (max-width: 600px){
  :root{
    --pad-x: clamp(20px, 6vw, 28px);
    --media-h: clamp(200px, 52vw, 360px);
  }
}

.tech-item .media + .tech-title {
  margin-top: var(--space-media-title);
}

.tech-title + .tech-desc {
  margin-top: var(--space-title-text);
}

/* Menu language and contact design update */
.side-menu-list .menu-separator {
  display: block;
  width: calc(100% - 48px);
  height: 1px;
  margin: 14px auto;
  background: var(--line);
}

.side-menu-list .last-separator {
  margin-top: 14px;
  margin-bottom: 14px;
}

.language-block {
  width: 100%;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.language-option {
  width: 100%;
  padding: 14px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: clamp(15px, 2vw, 18px);
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.language-option:hover {
  background: rgba(0, 0, 0, 0.02);
  color: var(--fg);
}

.language-option.active-language {
  background: #f3f3f3;
  color: var(--fg);
  font-weight: 600;
}

.contact-menu-button {
  margin-top: 0;
}

.tech-item .media + .tech-title {
  margin-top: clamp(18px, 3.4vw, 28px);
}

.tech-title + .tech-desc {
  margin-top: clamp(10px, 2.4vw, 16px);
}


.section-hero{
  width: 100%;
  max-width: 760px;
  margin: clamp(16px, 3.6vw, 24px) auto clamp(20px, 4.2vw, 34px);
}

.section-hero .media{
  width: 100%;
}

.contact-email a {
    color: inherit;
    text-decoration: none;
}

.contact-email a:hover {
    color: inherit;
    text-decoration: none;
}

/*
.media-electronics{ background-image:url('../images/electronics.svg'); }
.media-energy{ background-image:url('../images/energy.svg'); }
.media-quantum{ background-image:url('../images/quantum.svg'); }
.media-propulsion{ background-image:url('../images/propulsion.svg'); }
.media-materials{ background-image:url('../images/materials.svg'); }
*/

/* =========================
   Custom Scrollbar
   ========================= */

/* Firefox */
html{
  scrollbar-width: thin;
  scrollbar-color: #4a4a4a #f5f5f5;
}

/* Chrome, Edge, Safari */
::-webkit-scrollbar{
  width:10px;
  height:10px;
}

::-webkit-scrollbar-track{
  background:#f5f5f5;
}

::-webkit-scrollbar-thumb{
  background:#4a4a4a;
  border-radius:20px;
  border:2px solid #f5f5f5;
}

::-webkit-scrollbar-thumb:hover{
  background:#2f2f2f;
}

/* Scrollbar menu latéral */
.side-menu{
  overflow-y:auto;
  overflow-x:hidden;
}

.side-menu::-webkit-scrollbar{
  width:8px;
}

.side-menu::-webkit-scrollbar-track{
  background:transparent;
}

.side-menu::-webkit-scrollbar-thumb{
  background:#5a5a5a;
  border-radius:20px;
}

.side-menu::-webkit-scrollbar-thumb:hover{
  background:#2f2f2f;
}