#loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #0a0a0a, #00eaff 80%, #1a1a1a);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.7s;
}
#loader.hide {
  opacity: 0;
  pointer-events: none;
}
.loader-cyrex {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 6px solid cyan;
  border-top: 6px solid #222;
  animation: spin 1.1s linear infinite;
  box-shadow: 0 0 32px cyan;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}


/* ==== FAQ ==== */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.faq-item {
  background: linear-gradient(
    120deg,
    rgba(0, 200, 255, 0.1),
    rgba(0, 255, 255, 0.04)
  );
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 255, 255, 0.08);
  border: 1.5px solid rgba(0, 255, 255, 0.13);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.faq-item.open {
  border-color: cyan;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: cyan;
  font-size: 1.13rem;
  font-weight: 600;
  padding: 18px 24px;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
}
.faq-question:hover {
  background: rgba(20, 30, 40, 0.12);
  color: cyan;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  background: rgba(0, 255, 255, 0.03);
  color: #ccc;
  font-size: 1rem;
  padding: 0 24px;
  transition: max-height 0.35s cubic-bezier(0.77, 0, 0.18, 1), padding 0.35s;
}
.faq-item.open .faq-answer {
  max-height: 200px;
  padding: 12px 24px 18px 24px;
}
.project-tags span {
  position: relative;
}
.project-tags span[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: 120%;
  transform: translateX(-50%);
  background: rgba(0, 200, 255, 0.95);
  color: #0a0a0a;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(0, 255, 255, 0.18);
  z-index: 10;
  opacity: 1;
  pointer-events: none;
}
/* ==== FOOTER ENRICHED ==== */
.footer-menu {
  margin-bottom: 18px;
  text-align: center;
}
.footer-menu a {
  margin: 0 14px;
  color: cyan;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  transition: color 0.2s;
}
.footer-menu a:hover {
  color: #00eaff;
  text-shadow: 0 0 8px cyan;
}
.footer-socials {
  margin-bottom: 12px;
  text-align: center;
}
.footer-socials a {
  margin: 0 10px;
  color: cyan;
  text-decoration: none;
  font-size: 1.05rem;
  transition: color 0.2s;
}
.footer-socials a:hover {
  color: #00eaff;
  text-shadow: 0 0 8px cyan;
}
/* ==== WHY CYREX / FAQ ==== */
#why-cyrex {
  margin: 0 auto 60px auto;
  padding: 60px 0 0 0;
}
#why-cyrex h2 {
  font-size: 2rem;
  margin-bottom: 38px;
  text-align: center;
  background: linear-gradient(90deg, cyan, #00eaff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.why-cyrex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  justify-items: center;
}
.why-cyrex-item {
  background: linear-gradient(
    120deg,
    rgba(0, 200, 255, 0.1),
    rgba(0, 255, 255, 0.04)
  );
  border-radius: 16px;
  box-shadow: 0 2px 18px rgba(0, 255, 255, 0.08);
  padding: 28px 18px 18px 18px;
  text-align: center;
  border: 1.5px solid rgba(0, 255, 255, 0.13);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.why-cyrex-item h3 {
  color: cyan;
  font-size: 1.12rem;
  margin-bottom: 4px;
}
.why-cyrex-item p {
  color: #ccc;
  font-size: 1rem;
}
/* ==== BACK TO TOP ==== */
#backToTop {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 999;
  background: cyan;
  color: #0a0a0a;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  font-weight: bold;
  box-shadow: 0 0 18px cyan;
  cursor: pointer;
  display: none;
  transition: background 0.2s, transform 0.2s;
}
#backToTop:hover {
  background: #00eaff;
  transform: scale(1.12);
}
/* ==== ANIMATIONS ==== */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.77, 0, 0.18, 1),
    transform 0.8s cubic-bezier(0.77, 0, 0.18, 1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
/* ==== SERVICES ==== */
#services {
  display: block;
  margin: 0 auto 60px auto;
  padding: 60px 0 0 0;
}
#services h2 {
  font-size: 2rem;
  margin-bottom: 38px;
  text-align: center;
  background: linear-gradient(90deg, cyan, #00eaff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  justify-items: center;
}
.service-card {
  background: linear-gradient(
    120deg,
    rgba(0, 200, 255, 0.1),
    rgba(0, 255, 255, 0.04)
  );
  border-radius: 18px;
  box-shadow: 0 2px 18px rgba(0, 255, 255, 0.08);
  padding: 32px 18px 24px 18px;
  text-align: center;
  transition: box-shadow 0.3s, transform 0.3s;
  border: 1.5px solid rgba(0, 255, 255, 0.13);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.service-card:hover {
  box-shadow: 0 0 28px cyan;
  transform: translateY(-6px) scale(1.04);
  border-color: cyan;
}
.service-card img {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 8px cyan);
}
.service-card h3 {
  color: cyan;
  font-size: 1.18rem;
  margin-bottom: 4px;
}
.service-card p {
  color: #ccc;
  font-size: 1rem;
}
.skills-row,
.tools-row {
  display: flex;
  flex-direction: row;
  gap: 22px;
  justify-content: center;
  margin-bottom: 12px;
}
.skills-row img,
.tools-row img {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0, 255, 255, 0.07);
  padding: 8px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.skills-row img:hover,
.tools-row img:hover {
  box-shadow: 0 0 18px cyan;
  transform: scale(1.13);
}
/* ==== PROJECTS V2 ==== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 38px;
  margin: 0 auto;
  padding: 10px 0 0 0;
}
.project-card-v2 {
  background: linear-gradient(
    120deg,
    rgba(0, 200, 255, 0.1),
    rgba(0, 255, 255, 0.04)
  );
  border-radius: 22px;
  box-shadow: 0 2px 24px rgba(0, 255, 255, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s, transform 0.3s;
  position: relative;
  border: 1.5px solid rgba(0, 255, 255, 0.13);
}
.project-card-v2:hover {
  box-shadow: 0 0 38px cyan;
  transform: translateY(-8px) scale(1.03);
  border-color: cyan;
}
.project-img {
  width: 100%;
  height: 240px;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(0, 255, 255, 0.08);
  overflow: hidden;
}
.project-img img {
  width: 680px;
  height: 240px;
  object-fit: cover;
  filter: drop-shadow(0 0 18px cyan);
  border-radius: 16px;
}
.project-content {
  padding: 28px 24px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.project-content h3 {
  font-size: 1.35rem;
  color: cyan;
  margin-bottom: 2px;
}
.project-content p {
  color: #ccc;
  font-size: 1.05rem;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.project-tags span {
  background: rgba(0, 255, 255, 0.13);
  color: cyan;
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 0.93rem;
  font-weight: 500;
  border: 1px solid rgba(0, 255, 255, 0.18);
  transition: background 0.2s, color 0.2s;
}
.project-tags span:hover {
  background: cyan;
  color: #0a0a0a;
}
/* ==== ABOUT LONG ==== */
.about-long {
  background: rgba(0, 255, 255, 0.02);
  border-radius: 22px;
  padding: 48px 5% 40px 5%;
  margin: 0 auto 40px auto;
  max-width: 950px;
  display: flex;
  flex-direction: column;
  gap: 38px;
  box-shadow: 0 2px 24px rgba(0, 255, 255, 0.04);
}
.about-profile {
  display: flex;
  align-items: center;
  gap: 32px;
}
.about-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 18px cyan;
  background: #111;
}
.about-infos {
  color: #eee;
  font-size: 1.05rem;
  line-height: 1.7;
}
.about-desc {
  font-size: 1.13rem;
  color: #ccc;
  text-align: center;
  margin: 0 0 10px 0;
}
.about-skills h3,
.about-tools h3,
.about-path h3 {
  color: cyan;
  font-size: 1.15rem;
  margin-bottom: 16px;
  text-align: left;
}
.skills-grid.icons-only {
    display: flex;
    flex-direction: column;
    gap: 18px;
    justify-items: flex-start;
    align-items: center;
    margin-bottom: 10px;
}
.skills-grid.icons-only img {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0, 255, 255, 0.07);
  padding: 8px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.skills-grid.icons-only img:hover {
  box-shadow: 0 0 18px cyan;
  transform: scale(1.13);
}
.tools-grid.icons-only {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
  gap: 18px;
  justify-items: center;
  align-items: center;
}
.tools-grid.icons-only img {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0, 255, 255, 0.07);
  padding: 7px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.tools-grid.icons-only img:hover {
  box-shadow: 0 0 14px cyan;
  transform: scale(1.13);
}
.about-path {
  margin-top: 10px;
}
.path-grid {
  display: flex;
  gap: 38px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.path-item {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 14px 22px;
  min-width: 180px;
  box-shadow: 0 1px 6px rgba(0, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.path-date {
  color: #00eaff;
  font-size: 0.98rem;
  font-weight: 500;
}
.path-title {
  color: cyan;
  font-size: 1.05rem;
  font-weight: 600;
}
.path-desc {
  color: #ccc;
  font-size: 0.97rem;
}
/* ==== ABOUT ==== */
.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: center;
  background: rgba(0, 255, 255, 0.03);
  border-radius: 18px;
  padding: 32px 24px;
  margin-bottom: 30px;
}
.about-text {
  flex: 1 1 260px;
  min-width: 220px;
}
.about-text h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: cyan;
}
.about-tech {
  flex: 1 1 220px;
  min-width: 180px;
}
.about-tech h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #00eaff;
}
.tech-shields {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.shield {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(0, 255, 255, 0.1);
  color: cyan;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid rgba(0, 255, 255, 0.18);
  box-shadow: 0 1px 4px rgba(0, 255, 255, 0.07);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.shield:hover {
  background: cyan;
  color: #0a0a0a;
  transform: scale(1.08);
}
/* ==== BASE ==== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}
body {
  background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
  color: white;
  overflow-x: hidden;
}

/* ==== HERO ==== */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: radial-gradient(
    circle at center,
    rgba(0, 200, 255, 0.22),
    transparent 70%
  );
}
/* Transition douce header -> fond */
header.hero > * {
  position: relative;
  z-index: 2;
}
.logo {
  width: 140px;
  filter: drop-shadow(0 0 25px cyan);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 3rem;
  background: linear-gradient(90deg, cyan, #00eaff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  margin: 15px 0;
  color: #ccc;
}
.btn {
  margin-top: 20px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  color: cyan;
  text-decoration: none;
  transition: 0.3s;
}
.btn:hover {
  background: rgba(0, 255, 255, 0.2);
  transform: scale(1.05);
}

/* ==== SECTIONS ==== */
section {
  padding: 80px 10%;
}
h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
  background: linear-gradient(90deg, cyan, #00eaff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==== CARDS ==== */
.cards {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.project-card {
  position: relative;
  padding: 18px 14px 16px 14px;
  border-radius: 16px;
  background: linear-gradient(
    120deg,
    rgba(0, 200, 255, 0.07),
    rgba(0, 255, 255, 0.02)
  );
  border: 1px solid rgba(0, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  transition: transform 0.25s, box-shadow 0.25s;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
}
.project-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s cubic-bezier(0.77, 0, 0.18, 1),
    transform 0.5s cubic-bezier(0.77, 0, 0.18, 1);
}
.project-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.1);
  border-color: cyan;
}
.project-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 2px cyan);
}
.project-btn {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 22px;
  background: rgba(0, 255, 255, 0.12);
  color: cyan;
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 255, 0.18);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}
.project-btn:hover {
  background: cyan;
  color: #0a0a0a;
  transform: scale(1.07);
}

/* ==== CONTACT ==== */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: 0 auto;
}
input,
textarea {
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  color: white;
}
button {
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: cyan;
  color: black;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}
button:hover {
  background: #00eaff;
  transform: scale(1.05);
}
.socials {
  margin-top: 30px;
  text-align: center;
}
.socials a {
  margin: 0 10px;
  color: cyan;
  text-decoration: none;
  transition: 0.3s;
}
.socials a:hover {
  text-shadow: 0 0 10px cyan;
}

/* ==== FOOTER ==== */
footer {
  text-align: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  font-size: 0.9rem;
  color: #aaa;
}
