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

/* :root est un pseudo-sélecteur CSS qui cible l’élément racine du document.*/
:root {
  --bg-main: #0a0a0f;
  --bg-glass: rgba(255, 255, 255, 0.05);
  --border-glass: rgba(255, 255, 255, 0.1);

  --gradient-main: linear-gradient(135deg, #6a5cff, #00d4ff);
  --gradient-soft: linear-gradient(135deg, rgba(106,92,255,0.2), rgba(0,212,255,0.1));

  --text-main: #ffffff;
  --text-secondary: #b3b3c3;

  --radius: 16px;
}


:root[data-theme="light"] {
  --bg-main: #f5f5f7;
  --bg-glass: rgba(255,255,255,0.8);
  --border-glass: rgba(0,0,0,0.1);

  --text-main: #111122;
  --text-secondary: #555555;

  --gradient-main: linear-gradient(135deg, #6a5cff, #00d4ff);
  
}

@font-face {
    font-family: "MedievalSharp";
    src: url("./Data/MedievalSharp-Regular.ttf") format("truetype");
}

/* BODY */
body {
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at top, #111122, #050507 70%);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
   font-family: 'Alegreya', serif;
      font-size: 16px;
  line-height: 1.5;
}

/* MAIN */
main {
  max-width: 1200px;
  margin: auto;
  padding: 80px 20px;
    z-index: 1;
}

main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;

  background-image:
    radial-gradient(2px 2px at 10% 20%, #00d4ff, transparent),
    radial-gradient(2px 2px at 80% 30%, #6a5cff, transparent),
    radial-gradient(2px 2px at 30% 70%, #ff7a00, transparent),
    radial-gradient(2px 2px at 70% 80%, #00d4ff, transparent);

  background-size: 300px 300px;
  animation: floatParticles 25s linear infinite;

  opacity: 0.3;
}

@keyframes floatParticles {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-300px);
  }
}

.carousel {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.25);
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}

.carousel img {
    width: 100%;
    flex-shrink: 0;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: white;
    border: none;
    padding: 12px;
    cursor: pointer;
    font-size: 22px;
    border-radius: 50%;
    transition: background 0.2s;
}

.carousel-btn:hover {
    background: rgba(0,0,0,0.6);
}

.carousel-btn.prev {
    left: 15px;
}

.carousel-btn.next {
    right: 15px;
}

.carousel-dots {
    text-align: center;
    margin-top: 12px;
}

.carousel-dots button {
    width: 12px;
    height: 12px;
    margin: 5px;
    border-radius: 50%;
    border: none;
    background: #bbb;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-dots button.active {
    background: #555;
}




/* Sections sans background */
section {
    background: none !important;
    border: none !important;
    padding: 40px 0 !important;
    margin-bottom: 60px !important;
}

/* Contenu centré */
section > * {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Titres centrés */
section h1,
section h2,
section h3 {
    text-align: center;
}

/* Paragraphes centrés */
section p {
    text-align: center;
    max-width: 800px;
}

/* Liens orange style Noexia */
a {
    color: #ff7b00 !important;
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    text-decoration: underline;
}



h1, h2, h3, .navbar, header, footer {
  /* font-family: "UnifrakturCook", cursive; */
    font-family: "MedievalSharp", cursive;
  letter-spacing: 1px;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 15px;
  position: relative;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 60px;
  height: 3px;
  border-radius: 2px;
}

p {
  color: var(--text-secondary);
  max-width: 700px;
}


button {
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  background: var(--gradient-main);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  box-shadow: 0 0 20px rgba(106, 92, 255, 0.6);
  transform: translateY(-2px);
}


/* HEADER */
header {
  position: inherit;
  top: 0;
  backdrop-filter: blur(12px);
  background: rgba(10, 10, 15, 0.7);
  border-bottom: 1px solid var(--border-glass);
  padding: 20px 40px;
  z-index: 1000;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 20px 40px;

  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(12px);

  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* LOGO */
.logo {
  font-weight: 700;
  font-size: 1.2rem;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* CONTENEUR DES LIENS */
.nav-links {
  display: flex;
  gap: 30px;
}


.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: 0.3s;
}

/* HOVER */
.nav-links a:hover {
  color: white;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: var(--gradient-main);
  transition: 0.3s;
}

#hero {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;

  position: relative;
  overflow: hidden;

  background: #050507;
  color: white;
}

/* conteneur */
.lines {
  position: absolute;
  inset: 0;
}

 /* Lignes animation, carrés là */
.lines span {
  position: absolute;
  top: 50%;
  left: 50%;

  width: 600px;
  height: 600px;

  border-radius: 50%;
  transform: translate(-50%, -50%);

  border: 1px solid;

  border-image: conic-gradient(
    #00d4ff,
    #6a5cff,
    #f87c07,
    transparent
  ) 1;

  opacity: 0.7;
}

.lines span:nth-child(1) {
  animation: rotate 20s linear infinite;
}

.lines span:nth-child(2) {
  width: 800px;
  height: 800px;
  animation: rotate 30s linear infinite reverse;
}

.lines span:nth-child(3) {
  width: 1000px;
  height: 1000px;
  animation: rotate 40s linear infinite;
}

@keyframes rotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.nav-links a:hover::after {
  width: 100%;
}

/* FOOTER */
footer {
  margin-top: 100px;
  padding: 40px;

  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(12px);      

  border-top: 1px solid rgba(255,255,255,0.1); 
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: 0.3s;
}


.footer-links a:hover {
  color: white;
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: var(--gradient-main);
  transition: 0.3s;
}


.footer-links a:hover::after {
  width: 100%;
}

#logo {

    width: 3%;
     height: auto;
    position: absolute;
    top: 1px;
    left: 180px;
    
}





.modal {
  position: fixed;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  max-width: 420px;
  width: 90%;
  color: #111;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

.consent-box {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  font-size: 0.9rem;
}

/* Liens orange uniquement dans les sections */
section a {
    color: #ff7b00 !important;
    text-decoration: none;
    font-weight: 600;
}

section a:hover {
    text-decoration: underline;
}

/* Liens navbar restaurés */
header a,
.navbar a,
.nav-links a {
    color: var(--text-secondary) !important;
    font-weight: 500;
}

header a:hover,
.navbar a:hover,
.nav-links a:hover {
    color: white !important;
}


/* --- MENU MOBILE --- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -260px;
  width: 260px;
  height: 100vh;
  background: rgba(10,10,15,0.95);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  padding: 30px;
  gap: 20px;
  transition: 0.35s ease;
  z-index: 10000;
}

.mobile-menu a,
.mobile-menu button {
  color: white;
  font-size: 1.2rem;
}

/* Menu ouvert */
.mobile-menu.open {
  right: 0;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .burger {
    display: flex;
    
  }
}


@media (max-width: 900px) {
  #logo {
    width: 40px;
    left: auto;
    right: 20px;
    top: 10px;
    z-index: 1;
  }
}

@media (max-width: 900px) {

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  h3 {
    font-size: 1.1rem;
  }
}

@media (max-width: 900px) {
  section {
    padding: 20px;
    margin-bottom: 40px;
  }
}

@media (max-width: 900px) {
  #sun {
    display: none !important;
  }
}
/* --- BURGER BUTTON --- */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10001;
  color: red;
}

.burger span {
  width: 28px;
  height: 3px;
  background: currentColor;
  transition: 0.3s;
}

/* Animation burger ouvert */
.burger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

h1, h2, h3, .navbar, header, footer {
 
    font-family: "MedievalSharp", cursive;
  letter-spacing: 1px;
}
