@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --primary: rgb(40, 14, 144);
    --dark: #cad1e6;
}

body{
    background: linear-gradient(#19024e, #140341);
    background-color: #140341;
    font-family: "Barlow", sans-serif;
    line-height: 1.7;
    color: #dbe9f7;
}

/*A corriger*/
h1, h2, h3, h4, h5, h6 {

    font-weight: 700 !important;
    color: var(--dark);

}

html {
  scroll-behavior: smooth;
}
section {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, transform 0.8s ease;

}
section.hidden {
  opacity: 0;
  transform: translateY(5vh);
}


.navbar {
    box-shadow: 0px 6px 30px rgba(115, 0, 255, 0.08);
    background-color: rgba(3, 0, 10, 0.3);
    
}

.nav-scrolled{
    box-shadow: 0vh 2vh 10vh rgba(115, 0, 255, 0.08);
    background-color: rgba(0, 0, 0, 0.9);
}

.navbar .navbar-nav .nav-link:hover, .navbar .navbar-nav .nav-link:active {
    color: var(--primary);

}

.navbar-brand {
    font-weight: 700;
    font-size: 4vh;
    color: var(--dark);
}

.navbar-brand span {
    color: var(--primary);
}

/*BTN*/

.btn {
    padding: 1vh 3vh;
    font-weight: 500;
}

.btn-brand {
    border-color: var(--primary);
    background-color: var(--primary);
    color: white;
}

.btn-brand:hover {
    color: white;
    background-color: rgb(51, 32, 179);
}

/* CENTRER ITEM NAVBAR & RESPONSIVE */

@media (max-width: 991px) {

    .navbar .navbar-nav {
        text-align: center;
        width: 100%;
        
    }

    .navbar .navbar-nav .nav-item {
        margin: 0.5rem 0;
    }

    .navbar .btn.btn-brand {
        text-align: center;
    }

    .navbar-collapse {
        justify-content: center !important;
        text-align: center;
    }
}






/*Projets*/

.media-wrapper {
  width: fit-content;   
  margin-left: auto;
  margin-right: auto;
}
#background-video {
    height: 55vh;
    max-width: 100%;
    align-items: center;       
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.btn-purple {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: white;
  border: none;
  max-width: 100%;            
  text-align: center;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
#oneProjet.row {
    width: 100%;
    min-height: 100vh;
    align-items: center;
}
.description {
    height: 60vh;       
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
    color: #eaeaf0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 18px;
}
.text-purple {
  color: #a855f7;
}





/*ABOUT ME*/

/*???*/
.img-about img {
    border-radius: 100% !important;
    width: 10vh;
    display: block;
    margin: 0 auto;    
    height: auto;
}

.row.align-items-center {
  align-items: center;
}

.img-about {
  display: flex;
  justify-content: flex-start; 
}

/*??*/
.img-earth img {
    width: 680px;
    border-radius: 20%;
    display: block;
    margin: 0 auto;    
    height: auto;
}


#home{
  background-image: url("../images/earth_bg.png");
  background-repeat: no-repeat, repeat;
  background-size: cover;
  height: 105vh;
  padding: 15vh 5vw;
}

/*RESPONSIVE*/
@media (max-width: 768px) {
  #home {
    background-color: #000;
    background-image: contain;      
    padding-bottom: 8vh;
    background-size: cover;
    background-position: center top;
    min-height: 90vh;
    padding: 12vh 5vw 8vh 5vw;
  }
}

@media (max-width: 992px) {
  #home {
    background-position: center;
    background-repeat: no-repeat;
  }
}



#about{
   /* background-image: linear-gradient( rgba(8, 0, 254, 0.301), rgba(129, 11, 233, 0.304)), url(../images/bg_1.jpg) !important; */
    background-image: linear-gradient( rgba(6, 5, 57, 0.336), rgba(1, 5, 35, 0.401)), url(../images/bg_6.png);
    background-repeat: no-repeat, repeat;
    background-size: cover;
    min-height: 90vh;
    padding: 15vh 5vw;
}

/*RESPONSIVE*/
@media (max-width: 768px) {
  #about {
    background-image: contain;      
    padding-bottom: 8vh;
    background-size: cover;
    background-position: center top;
    min-height: 90vh;
    padding: 12vh 5vw 8vh 5vw;
  }
}

#about img{
  max-width: 60vh;
}

#skills{
  padding: 4vh 4vh;
}



.cacher{
  display: none;
}

#markerLabel {
  --baseColor: rgb(255, 250, 250);
  width: 22vh;
  height: auto;
  color: var(--baseColor);
  font-family: Monospace;
  font-size: 14px;
  /*font-weight: 700;*/
  padding: 2px;
  background: rgba(0, 0, 0, 0.75);
  border: 2px solid var(--baseColor);
  border-radius: 5px;
  margin-top: -25px;
  margin-left: 120px;
  overflow: hidden;
  padding: 0px;
}
#markerLabel img {
  width: 22vh;
}
.text {
  margin-left: 4px;
}

#closeButton{
  position: absolute;
  right: 0px;
  top: 0px;
  font-family: Arial;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  border: 1px solid gray;
  border-radius: 3px;
  background: transparent;
  color: white;
}

#markerLabel.hidden {
  display: none !important;
}

/*.labelRenderer {
   position: absolute;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
}*/

#globe-container {
  position: relative;
  width: min(90vw, 400px);
  height: min(90vw, 400px);
  margin: auto;
}
#globe-canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.labelRenderer {
  position: absolute;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}

#projects {
  position: relative;
  display: flex;
  justify-content: center; 
  align-items: center;     
  flex-direction: column;
  min-height: 100vh;
  margin-bottom: 8vh;      
}

#globe-container {
  position: relative;
  width: 120vh;
  height: 90vh;           
  display: flex;
  justify-content: center;
  align-items: center;
}

#globe-canvas {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 1000px;       
  max-height: 900px;
}



.grow-with-us {
  background: #0d0d0d;
}

.icon-box p {
  color: #bbbbbb;
  font-size: 0.9rem;
}

.icon {
  font-size: 45px;
  color: white;
}

/*test skill card*/
/* --- Fonds étoiles animées --- */
.skills {
  position: relative;
  padding: 40px 0;
  overflow: hidden;
  /*background: radial-gradient(circle at top, #0b0241aa, #040324);*/
  background-image: linear-gradient( rgba(7, 5, 151, 0.251), rgba(4, 3, 54, 0.464)) ,url("/images/bg_9.png");
  background-size: auto 100%;    
  background-repeat: no-repeat; 
  background-position: center;
}



.skills-cosmos{
  margin-top: 5vh;
}

/* --- Card Cosmos --- */
.cosmos-card {
  position: relative;
  padding: 25px;
  border-radius: 20px;
  background: rgba(28, 1, 124, 0.336);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  color: white;
  overflow: hidden;
  transition: 0.5s;
  min-height: 28vh;
}

.cosmos-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 25px rgba(0, 140, 255, 0.6);
}

/* --- Halo planète --- */
.planet-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(0,150,255,0.9), transparent 70%);
  border-radius: 50%;
  filter: blur(35px);
  opacity: 0.7;
  pointer-events: none;
}

/* --- Icon --- */
.icon {
  font-size: 60px;
  margin-bottom: 12px;
  z-index: 3;
}

/* --- Text --- */
.cosmos-card h5 {
  margin-top: 10px;
  font-weight: 600;
}

.cosmos-card p {
  color: #bbbbbb;
  font-size: 0.85rem;
  margin-top: 5px;
}

.smoke {
  position: fixed;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    circle,
    rgba(100, 123, 255, 0.9),
    rgba(80,120,255,0.5),
    transparent 60%
  );
  filter: blur(15px);
  mix-blend-mode: screen;
}

/*

#about{
  background-image: url("/images/bg_3.png");
  background-size: contain;    
  background-repeat: no-repeat; 

}*/

/* Fond global du modal */
.honeypot-field {
    display: none !important;
    visibility: hidden;
}
.contact-modal {
  background: radial-gradient(circle at top left, #1b1f4a, #05070f);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0,0,0,0.6);
}

/* Image gauche */
.contact-image {
  background-image: url("/images/asteroid-1477065_1280.jpg");
  background-size: cover;
  background-position: center;
  min-height: 500px;
}

/* Inputs */
.custom-input {
  background: rgba(255,255,255,0.06);
  border: none;
  border-radius: 14px;
  padding: 14px;
  color: #fff;
}

.custom-input::placeholder {
  color: rgba(255,255,255,0.5);
}

.custom-input:focus {
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 2px rgba(123,63,228,0.4);
  color: #fff;
}

/* Labels */
.form-label {
  color: rgba(255,255,255,0.7);
}

/* Bouton principal */
.btn-gradient {
  background: linear-gradient(90deg, #683fe4, #556bf7);
  border: none;
  padding: 12px 22px;
  border-radius: 14px;
  color: #fff;
  transition: transform 0.2s ease;
}
.btn-outline-light{
  border-radius: 14px;
  background: linear-gradient( #a393d54c, #9181ed67);
}

.btn-gradient:hover {
  transform: translateY(-2px);
}

.contact-info-card {
  background: linear-gradient(145deg,
    rgba(255,255,255,0.04),
    rgba(255,255,255,0.01));
  border-radius: 22px;
  padding: 30px;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 50px rgba(0,0,0,0.6);
}

/* Item */
.info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.info-item p {
  margin: 0;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

.info-item strong {
  color: #fff;
}

/* Icônes */
.info-icon {
  width: 48px;
  height: 48px;
  background: radial-gradient(circle at top left, #5d3fe4, #3f1d95);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

/* Séparateur */
.contact-info-card hr {
  border: none;
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 28px 0;
}

/* Réseaux */
.socials span {
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  cursor: pointer;
  opacity: 0.75;
  transition: all 0.2s ease;
}

.socials span:hover {
  opacity: 1;
  background: rgba(71, 63, 228, 0.4);
}

.btn-brand{
  max-width: 25vh;
}

/* CARD */
.project-card {
  max-width: 42vh;
  background: linear-gradient(180deg, #1b1f4b, #0e1235);
  border-radius: 2vh;
  overflow: hidden;
  box-shadow: 0 2vh 4vh rgba(0,0,0,0.4);
  transition: transform .3s ease;
}

.project-card:hover {
  transform: translateY(-0.8vh);
}

/* IMAGE */
.card-image {
  position: relative;
}

.card-image img {
  width: 100%;
  display: block;
  border-bottom-left-radius: 2vh;
  border-bottom-right-radius: 2vh;
  height: 30vh;
}

/* GitHub button */
.github-btn {
  position: absolute;
  top: 1.6vh;
  right: 1.6vh;
  width: 4.2vh;
  height: 4.2vh;
  background: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: clamp(1.4vh, 1.8vh, 2vh);
}

/* CONTENT */
.card-content {
  padding: 2vh;
  color: #fff;
}

.card-content h3 {
  font-size: clamp(2vh, 2.3vh, 2.6vh);
  margin-bottom: 1vh;
}

.card-content p {
  font-size: clamp(1.3vh, 1.5vh, 1.7vh);
  color: #cfd3ff;
  line-height: 1.6;
}

/* TAGS */
.tags {
  margin-top: 1.5vh;
  display: flex;
  gap: 1vh;
  flex-wrap: wrap;
}

.tag {
  font-size: clamp(1.2vh, 1.4vh, 1.6vh);
  padding: 0.6vh 1.2vh;
  border-radius: 5vh;
  background: rgba(255,255,255,0.1);
}

.tag.blue { background: #047ba9; color: white; }
.tag.green { background: #04654d; color: white; }
.tag.pink { background: #ff7ac6; color: white; }
.tag.gray { background: #6b7280; color: white; } 
.tag.purple { background-color: #8b5cf6; }
.tag.yellow { background-color: #f59e0b; }
.tag.orange { background-color: #f97316; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 10vh;
}

#projet.hidden{
  display: none;
}
