@import url(https://db.onlinewebfonts.com/c/5a3ec1660bea35534a58c047f797b1ec?family=BankGothic);
@import url(https://db.onlinewebfonts.com/c/6114cf46bdc8f52d6850779667c6f6a7?family=BankGothic+Bold);
@import url(https://db.onlinewebfonts.com/c/668a5c7268fa7b1f3cfdff7974d3060f?family=BankGothic-Regular);
@import url(https://db.onlinewebfonts.com/c/6c2b00cb942a5bc4eb4df0a11786a6fd?family=Share+Tech+Mono);

@font-face {
    font-family: "BankGothic";
    src: url("https://db.onlinewebfonts.com/t/5a3ec1660bea35534a58c047f797b1ec.eot");
    src: url("https://db.onlinewebfonts.com/t/5a3ec1660bea35534a58c047f797b1ec.eot?#iefix")format("embedded-opentype"),
    url("https://db.onlinewebfonts.com/t/5a3ec1660bea35534a58c047f797b1ec.woff2")format("woff2"),
    url("https://db.onlinewebfonts.com/t/5a3ec1660bea35534a58c047f797b1ec.woff")format("woff"),
    url("https://db.onlinewebfonts.com/t/5a3ec1660bea35534a58c047f797b1ec.ttf")format("truetype"),
    url("https://db.onlinewebfonts.com/t/5a3ec1660bea35534a58c047f797b1ec.svg#BankGothic")format("svg");
}

@font-face {
    font-family: "BankGothic Bold";
    src: url("https://db.onlinewebfonts.com/t/6114cf46bdc8f52d6850779667c6f6a7.eot");
    src: url("https://db.onlinewebfonts.com/t/6114cf46bdc8f52d6850779667c6f6a7.eot?#iefix")format("embedded-opentype"),
    url("https://db.onlinewebfonts.com/t/6114cf46bdc8f52d6850779667c6f6a7.woff2")format("woff2"),
    url("https://db.onlinewebfonts.com/t/6114cf46bdc8f52d6850779667c6f6a7.woff")format("woff"),
    url("https://db.onlinewebfonts.com/t/6114cf46bdc8f52d6850779667c6f6a7.ttf")format("truetype"),
    url("https://db.onlinewebfonts.com/t/6114cf46bdc8f52d6850779667c6f6a7.svg#BankGothic Bold")format("svg");
}

@font-face {
    font-family: "BankGothic-Regular";
    src: url("https://db.onlinewebfonts.com/t/668a5c7268fa7b1f3cfdff7974d3060f.eot");
    src: url("https://db.onlinewebfonts.com/t/668a5c7268fa7b1f3cfdff7974d3060f.eot?#iefix")format("embedded-opentype"),
    url("https://db.onlinewebfonts.com/t/668a5c7268fa7b1f3cfdff7974d3060f.woff2")format("woff2"),
    url("https://db.onlinewebfonts.com/t/668a5c7268fa7b1f3cfdff7974d3060f.woff")format("woff"),
    url("https://db.onlinewebfonts.com/t/668a5c7268fa7b1f3cfdff7974d3060f.ttf")format("truetype"),
    url("https://db.onlinewebfonts.com/t/668a5c7268fa7b1f3cfdff7974d3060f.svg#BankGothic-Regular")format("svg");
}

@font-face {
    font-family: "Share Tech Mono";
    src: url("https://db.onlinewebfonts.com/t/6c2b00cb942a5bc4eb4df0a11786a6fd.eot");
    src: url("https://db.onlinewebfonts.com/t/6c2b00cb942a5bc4eb4df0a11786a6fd.eot?#iefix")format("embedded-opentype"),
    url("https://db.onlinewebfonts.com/t/6c2b00cb942a5bc4eb4df0a11786a6fd.woff2")format("woff2"),
    url("https://db.onlinewebfonts.com/t/6c2b00cb942a5bc4eb4df0a11786a6fd.woff")format("woff"),
    url("https://db.onlinewebfonts.com/t/6c2b00cb942a5bc4eb4df0a11786a6fd.ttf")format("truetype"),
    url("https://db.onlinewebfonts.com/t/6c2b00cb942a5bc4eb4df0a11786a6fd.svg#Share Tech Mono")format("svg");
}

/* body */

body {
  font-family: 'Share Tech Mono';
  height: 100%;
  background-color: #efefef;
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
}

.background-animation.dark {
  background-image: url('test_bg.svg');
}

.background-animation {
  z-index: 1;
  background-image: url('pattern4_terrain\ copy.svg');
  background-position: 0 0;
  background-size: 2300px;
  width: 100vw;
  height: 100vh;
  position: fixed;
  inset: 0% auto auto 0%;
}

.background-glow.dark {
  background-color: #eee;
  opacity: 80;
}

.background-glow {
  z-index: 0;
  background-color: #111;
  opacity: 0.2;
  filter: blur(80px);
  border-radius: 300px;
  width: 100px;
  height: 100px;
  position: absolute;
  inset: 0% auto auto 0%;
}

.page-wrapper {
  z-index: 2;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  text-align: center;
  padding: 2rem 0;
  flex-grow: 1;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* text */

#envergure_title, #technologie_title, #intro {
  font-family: 'BankGothic Bold';
  color: #262626;
}

#envergure_title {
    font-size: 100px;
    max-width: 800px;
    margin: 1rem auto;
}

#technologie_title {
    font-size: 60px;
    max-width: 800px;
    margin: 1rem auto;
}

#title {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


/* Logo */

.logoET,
.logoET * {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.logoET {
  width: 100%;
  height: auto;
  pointer-events: none;
}

.region {
  stroke: none;
  transition: fill 0.3s ease, transform 0.3s ease;
}

.logo-navbar {
    width: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: auto;
}

.logo-index {
    width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    margin: 0rem auto;

    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4))
            drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-index:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5))
            drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.logo-white .region {fill: #ffffff;}
.logo-grey .region {fill: #262626;}
.logo-grey:hover .region {fill: #444444;}

/* Scaling */

@media (max-width: 768px) {
    .logo-index {
        width: 200px;
    }
    #envergure_title {
        font-size: 60px;
    }
    #technologie_title {
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .logo-index {
        width: 150px;
    }
    #envergure_title {
        font-size: 40px;
    }
    #technologie_title {
        font-size: 28px;
    }
}


/* --- Barre de navigation --- */

.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: #efefef;
  backdrop-filter: blur(4px);
  z-index: 1000;
}

.navbar > ul {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
  margin: 0;
  padding: 0.8rem 0.2rem;
}

/*
.navbar > ul > li:first-child {
  margin-right: auto;
}
*/

.navbar > ul > li > a {
  font-family: 'Bank Gothic';
  color: #262626;
  text-decoration: none;
  font-size: 1.2rem;
  position: relative;
  display: flex;
  justify-content: space-between;
  transition: transform 0.3s ease; /* pour le texte qui rétrécit */
  padding: 0.5rem 1.5rem;
}

.navbar > ul >li {
  position: relative;
}

.navbar > ul > li > a:hover {
  transform: scale(0.95);
  color: #262626;
}

.navbar > ul > li > a:active {
  color: #2f2e2e;
}

.navbar > ul > li.right {
  margin-left: auto; /* pousse celui-là à droite */
}


/* --- DROPDOWN --- */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown a {
  display: inline-flex; /* pour aligner texte + chevron */
  align-items: center;
  gap: 0.3rem; /* espace entre texte et chevron */
  position: relative;
}

/* Conteneur texte + chevron */
.a-content {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem; /* espace entre texte et chevron */
  pointer-events: none; /* pour que le hover passe au parent <a> */
}

/* Chevron */
.a-content .chevron {
  display: inline-flex;
  transition: transform 0.3s ease;
  color: #262626;
}

/* Rotation du chevron quand dropdown ouvert */
.dropdown:hover > a > .a-content .chevron {
  transform: rotate(180deg);
}

/* Coins laser restent actifs sur hover */
.dropdown:hover > a span.top-left,
.dropdown:hover > a span.top-right,
.dropdown:hover > a span.bottom-left,
.dropdown:hover > a span.bottom-right {
  opacity: 1;
}


/* Le menu est caché par défaut */
.dropdown-menu {
  margin-top: 0.5rem;
  position: absolute;
  top: 100%;
  left: 0;
  background: #efefef;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 0;
  z-index: 2000;

  display: flex;
  flex-direction: column;
  align-items: stretch;

  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;

  min-width: 250px;   /* largeur minimale */
  max-width: 350px;   /* largeur maximale désirée */
  width: auto;        /* laisse le menu s'adapter */
}

/* Montre le menu */
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* --- Items du menu --- */
.dropdown-menu li {
  display: block;
  width: 100%;
  font-size: 1.1rem;
}

.dropdown-menu li:first-child {
  border-top: none; /* pas de ligne au-dessus du premier */
}

.dropdown-menu a {
  font-family: 'Share Tech Mono';
  font-weight: normal;
  display: block;
  padding: 1.5rem 1rem;
  color: #262626;
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
  white-space: normal;      /* retour à la ligne autorisé */
  word-break: break-word;   /* coupe les mots trop longs */
  overflow-wrap: break-word;/* support moderne */
}

.dropdown-menu a:hover {
  background: #ddd;
}

/* --- Coins laser restent visibles pendant le survol du menu --- */
.dropdown:hover > a span::before,
.dropdown:hover > a span::after {
  opacity: 1;
}

/* --- Empêche les coins de se désactiver pendant que le menu est ouvert --- */
.dropdown:hover > a {
  transform: scale(0.95); /* conserve ton effet de réduction */
  z-index: 2100;
}

.dropdown:hover .dropdown-menu {
  width: calc(100% / 0.95); /* compense le scale(0.95) */
}



.copy-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  white-space: nowrap;
}

.copy-container li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.copy-container a {
  color: #222;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.copy-container a:hover {
  color: #000;
}

.copy-container button {
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.1s ease;
}

.copy-container button:hover {
  color: #333;
  transform: scale(1.1);
}



.navbar a span {
  position: absolute;
}

/* Span pour chaque coin */
span.top-left    { top:   -2px; left:  -2px; }
span.top-right   { top:   -2px; right: -2px; }
span.bottom-left { bottom:-2px; left:  -2px; }
span.bottom-right{ bottom:-2px; right: -2px; }

span::before,
span::after {
  content: '';
  position: absolute;
  background: rgb(179, 24, 44); 
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Horizontal segments (before) */
span::before {
  width: 10px;
  height: 2px;
  top: 0;
  left: 0;
}

/* Vertical segments (after) */
span::after {
  width: 2px;
  height: 10px;
  top: 0;
  left: 0;
}

/* Ajustements selon la position */
span.top-right::before {
  right: 0; left: auto;
}
span.top-right::after {
  right: 0; left: auto;
}

span.bottom-left::before {
  bottom: 0; top: auto;
}
span.bottom-left::after {
  bottom: 0; top: auto;
}

span.bottom-right::before {
  bottom: 0; top: auto;
  right: 0; left: auto;
}
span.bottom-right::after {
  bottom: 0; top: auto;
  right: 0; left: auto;
}

/* Hover = affiche tous les coins */
.navbar a:hover span::before,
.navbar a:hover span::after {
  opacity: 1;
}


/* footer */

footer {
  flex-shrink: 0;
  text-align: center;
  padding: 1.2rem;
  font-size: 1.2rem;
  background: #efefef;
}

.footer ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin: 0;
  padding: 0;
  width: 100%;
  text-align: center;
}

.footer li:first-child { grid-column: 2; } /* centré */
#email { grid-column: 3; text-align: right; }


/* Bouton de langue */

.toggleWrapper {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  position: relative;
  margin: 1rem;
}

.label {
  font-weight: bold;
  font-size: 14px;
}

.dn {
  position: absolute;
  left: -9999px;
}

.toggle {
  cursor: pointer;
  display: inline-block;
  position: relative;
  width: 60px;
  height: 34px;
  background-color: #2a7edd57;
  border-radius: 50px;
  transition: background-color 0.3s;
}

.toggle-handler {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.flag {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s;
  position: absolute;
}

.flag-fr { opacity: 1; }
.flag-en { opacity: 0; }

.dn:checked + .toggle {
  background-color: rgba(255, 184, 184, 0.417);
}

.dn:checked + .toggle .toggle-handler {
  transform: translateX(26px);
}

.dn:checked + .toggle .flag-fr { opacity: 0; }
.dn:checked + .toggle .flag-en { opacity: 1; }


/* Effets de scroll */

.scroll-appear {
  opacity: 0;
  transform: translateY(20px); /* juste pour l'animation */
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-appear.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Animation fade-in + slide-up --- */
@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0; /* invisible par défaut */
  animation: fadeSlideUp 1s ease-out forwards;
}

/* Effets échelonnés */
.fade-delay {
  animation-delay: 0.2s;
}
