:root {
  --background-color: #252525;
  --accent-color: #FF5F15;
  --accent-color-rgb: 255, 95, 21;
  --text-color: #d9d9d9;

  --font-size-base: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: var(--font-size-base);
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.grid-page {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 48px 96px 1fr 128px;
  grid-column-gap: 0px;
  grid-row-gap: 24px;
  height: 100vh;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  background: var(--accent-color);
  color: white!important;
}

.navbar-active{
    transform: translateY(-42px);
    border-top: 2px solid var(--accent-color);
}

main {
  /*flex: 1;*/
  padding: 20px;
}

.disclaimer{
  justify-content: center;
  align-items: center;
  text-align: center;
  color: rgb(144, 31, 31);
}

.coming-soon{
  align-items: center;
  text-align: center;
  justify-content: center;
  margin-top: 20%;
}

.coming-soon p{
  text-decoration: underline;
}

.title-box{
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 48px;
}

.login-welcoming {
  padding: 20px;
  max-width: 300px;
  margin: 40px auto;
  text-align: center;
}

.user-box {
  background-color: #1e1e1e;
  border: 1px solid rgba(var(--accent-color-rgb), 0.2);
  border-radius: 12px;
  padding: 20px;
  max-width: 300px;
  margin: 40px auto;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s;
}

.user-box:hover {
  transform: translateY(-5px);
}

.user-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid var(--accent-color);
}

.user-name {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text-color);
}

.user-desc {
  padding-bottom: 50px;
  color: var(--text-color);
}


.access-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.path{
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 20px;
  text-decoration: none;
  color: var(--text-color);
  opacity: 50%;
  font-style: italic;
  letter-spacing: 0.2em;
}

.path a{
  text-decoration: none;
  color: var(--text-color);
}
.path h5{
  text-decoration: none;
  color: var(--text-color);
}

.home-content{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20%;
  height: 100%;
}

.home-avatar {
  width: 50%;
  object-fit: cover;
  padding-right: 6px;
}
.home-img{
  width: 350px;
  max-width: 100%;
  border: 3px solid var(--accent-color);
  border-radius: 50%;
  box-shadow: 15px 4px 8px 0 rgba(0, 0, 0, 0.2), 15px 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.home-desc{
  width: 50%;
  padding-left: 40px;
  line-height: 170%;
}

.home-desc-name{
  padding-bottom: 30px;
  text-decoration: underline;
  text-decoration-color: #FF5F15;
}

.exp-content {
    justify-content: center;
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 0;
}

.exp-bloc {
    background-color: #1e1e1e;
    border: 1px solid rgba(var(--accent-color-rgb), 0.2);
    border-radius: 12px;
    padding: 20px;
    height: 400px;
    max-height: 400px;
    width: 300px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
}

.exp-bloc:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

.exp-title {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-color);
}

.exp-company {
    display: block;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 4px;
}

.exp-period {
    display: block;
    font-size: 0.9rem;
    color: rgba(var(--text-color), 0.7);
    margin-bottom: 12px;
}

.exp-desc {
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--text-color);
}

/* Responsive */
@media screen and (max-width: 1024px) {
    .exp-bloc {
        width: 45%;
    }
}

@media screen and (max-width: 768px) {
    .exp-content {
        justify-content: center;
    }
    .exp-bloc {
        width: 90%;
    }
}


.timeline-container {
  background-color: #1e1e1e;
  border: 2px solid rgba(var(--accent-color-rgb), 0.2);
  border-radius: 12px;
  padding: 20px;
  width: 90%;
  height: 550px;
  margin: 40px auto;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* Conteneur global qui limite le cadre visible */
.interactive-container {
  position: relative;
  width: calc(100% - 200px);
  overflow: hidden;
  background-color: #1e1e1e;
  border: 2px dashed rgba(var(--accent-color-rgb), 0.2);
  border-radius: 12px;
  margin: 0 auto;
}

/* Élément que l'on déplace */
#grab-zone {
  position: relative;
  cursor: grab;
  top: 0;
  left: 0;
  transform: translate(0px, 0px);
  will-change: transform;
  width: 100%;
  overflow: hidden;
  height: 100%;
}

.grab-title{
  position: absolute;
  width: 300px;
  left: calc(50% - 150px);
  top: 10px;
  color: white;
  font-size: 16px;
  text-align: center;
  opacity: .1;
  line-height: 0;
}

/* Contenu temporaire visible */
.demo-content {
  width: 800px;
  height: 600px;
  background-color: rgba(var(--accent-color-rgb), 0.1);
  border: 1px solid rgba(var(--accent-color-rgb), 0.5);
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border-radius: 8px;
  user-select: none;
}

/* --- Tooltip sur hover --- */
.tool-card {
  position: absolute;
  width: 220px;
  height: 140px;
  background-color: #1e1e1e;
  border: 1px solid rgba(var(--accent-color-rgb), 0.3);
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  cursor: grab;
  transition: transform 0.2s;
  user-select: none;
  color: var(--text-color);
}

.tool-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 18px rgba(0,0,0,0.7);
}

/* Tooltip interne (placé sous le bloc) */
.tool-card::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 110%;
  left: 50%;
  transform: translateX(-50%) translateY(-5px); /* léger offset initial */
  background-color: rgba(30, 30, 30, 0.95);
  color: var(--accent-color);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.2s ease, transform 0.2s ease;
  border: 1px solid rgba(var(--accent-color-rgb), 0.4);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  transform-origin: top center;
  z-index: 15;
}

.tool-card:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(2px); /* slide léger vers le haut */
}

/* Petite flèche cohérente avec la bordure */
.tool-card::before {
  content: "";
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(30, 30, 30, 0.95) transparent transparent transparent;
  filter: drop-shadow(0 -1px 0 rgba(var(--accent-color-rgb), 0.4)); /* bordure sur la flèche */
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 14;
  transform-origin: top center;
}

.tool-card:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(2px); /* synchronisé avec la bulle */
}




.tool-card i {
  font-size: 2rem;
  color: var(--accent-color);
  display: block;
  margin-bottom: 10px;
}

.tool-card h4 {
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.tool-card p {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Popup (modale) */
.popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.popup.hidden {
  display: none;
}

.popup-content {
  background-color: #1e1e1e;
  border: 1px solid rgba(var(--accent-color-rgb), 0.3);
  border-radius: 12px;
  padding: 25px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 8px 25px rgba(0,0,0,0.6);
  animation: fadeIn 0.3s ease;
  position: relative;
}

.popup-content h3 {
  color: var(--accent-color);
  margin-bottom: 15px;
  text-align: center;
}

.popup-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.popup-content li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: var(--text-color);
}

.popup-close {
  position: absolute;
  right: 15px;
  top: 10px;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--accent-color);
  transition: 0.2s;
}

.popup-close:hover {
  color: #fff;
}

@keyframes fadeIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}


footer.navbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 12px 25%;
  border-top: 1px solid rgba(var(--accent-color-rgb), 0.3);
  z-index: 999;
}

.navbar-footer-text{
  width: 100%;
  text-align: center;
  opacity: 25%;
}

.navbar-link {
  height: auto;
  color: var(--text-color);
  font-size: 1rem;
  text-align: center;
  background-color: #1a1a1a;
  width: 20%;
  height: 40px;
  transform: translateY(-32px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.settings:hover{
  background-color: var(--accent-color);
}

.settings{
  width: fit-content;
  padding: 0 10px;
  height: 40px;
  color: var(--text-color);
  text-align: center;
  background-color: #1a1a1a;
  transform: translateY(-32px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.settings img{
  filter: invert(2);
}

.logout{
  width: fit-content;
  padding: 0 10px;
  height: 40px;
  color: var(--text-color);
  text-align: center;
  background-color: #1a1a1a;
  transform: translateY(-32px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.logout:hover{
  background-color: rgb(255, 53, 53);
}

.connectedas {
  position: relative;
  width: fit-content;
  padding: 0 10px;
  height: 40px;
  color: var(--text-color);
  text-align: center;
  background-color: #1a1a1a;
  transform: translateY(-32px);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: default;
}

.connectedas img {
  border-radius: 50%;
  width: 26px;
  height: 26px;
  opacity: 80%;
}

.connectedas img:hover {
  border-radius: 50%;
  width: 26px;
  height: 26px;
  opacity: 100%;
}

.connectedas::after {
  content: "Connected as : Nicolas";
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(30, 30, 30, 0.95);
  color: var(--accent-color);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  border: 1px solid rgba(var(--accent-color-rgb), 0.4);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.connectedas::before {
  content: "";
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(30, 30, 30, 0.95) transparent transparent transparent;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.connectedas:hover::after,
.connectedas:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}


footer.navbar a:hover {
  color: var(--accent-color);
}

.login-footer{
  width: 100%;
  text-align: center;
  text-decoration: none;
  opacity: 100%;
  color:#3a3a3a;
  padding-bottom: 10px;
}
.login-footer-links{
  text-decoration: none;
  color:#3a3a3a;
}

.contact-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.contact-flex{
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
}

.links {
  max-width: 40%;
  background-color: #1e1e1e;
  border: 1px solid rgba(var(--accent-color-rgb), 0.2);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  height: 485px;
}

.links-title-h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 15px;
  text-align: center;
}

.links-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.links-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(var(--accent-color-rgb),0.3);
  border-radius: 8px;
  background-color: #2a2a2a;
  width: 100%;
  transition: all 0.3s;
}

.links-list a:hover {
  background-color: var(--accent-color);
  color: #fff;
}

.form {
  background-color: #1e1e1e;
  border: 1px solid rgba(var(--accent-color-rgb),0.2);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.fs-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fs-field {
  display: flex;
  flex-direction: column;
}

.fs-label {
  margin-bottom: 5px;
  font-weight: bold;
  color: var(--text-color);
}

.form-title-h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 15px;
  text-align: center;
}


.fs-input,
.fs-textarea {
  padding: 10px;
  border: 1px solid rgba(var(--accent-color-rgb),0.3);
  border-radius: 8px;
  background-color: #2a2a2a;
  color: var(--text-color);
  font-size: 1rem;
  width: 100%;
}

.fs-textarea {
  min-height: 120px;
  resize: vertical;
}

.fs-input:focus,
.fs-textarea:focus {
  outline: 2px solid var(--accent-color);
  background-color: #252525;
}

.fs-description {
  margin-top: 5px;
  font-size: 0.85rem;
  color: rgba(var(--text-color),0.7);
}

.fs-button-group {
  display: flex;
  justify-content: flex-end;
}

.fs-button {
  padding: 10px 25px;
  font-size: 1rem;
  font-weight: bold;
  color: #fff;
  background-color: var(--accent-color);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.fs-button:hover {
  background-color: #e2550f;
}

@media screen and (max-width: 768px) {
  html {
    font-size: 15px !important;
  }

  footer.navbar {
    flex-direction: row !important;
    font-size: 0.9rem !important;
    padding: 10px 0 !important;
  }

  footer.navbar a {
    padding: 0 5px !important;
  }
}

@media screen and (max-width: 480px) {
  html {
    font-size: 14px !important;
  }

  footer.navbar {
    flex-wrap: wrap !important;
    font-size: 0.85rem !important;
    padding: 8px 0 !important;
  }

  footer.navbar a {
    padding: 6px !important;
    flex: 1 1 33% !important;
    text-align: center !important;
  }

  .home-content {
    flex-direction: column !important;
    padding: 0 24px !important;
  }
}
@media screen and (max-width: 768px) {
    .exp-bloc {
        flex: 0 0 90%;
    }
}