/* 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);
  
}


/* 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);
  }
}

section {
  margin-bottom: 80px;
  padding: 40px;
  border-radius: var(--radius);

  background: var(--bg-glass);
  border: 1px solid var(--border-glass);

  backdrop-filter: blur(10px);
  transition: 0.3s;
}

section:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.1);
}

section a {
    color: #e67e22; 
    text-decoration: none; 
    font-weight: 600; 
    transition: color 0.2s ease;
}

section a:hover {
    color: #d35400; /* couleur au survol */


h1, h2, h3, .navbar, header, footer {
 
    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;
  background: var(--gradient-main);
  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: relative;
  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: 10;
}

.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;
     z-index: 0;
       pointer-events: none;
}


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

  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;
    pointer-events: none;
}

.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);
  }
}







@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;
    
}




/* Fields */
.form-contact .form-field {
  position: relative;
  margin-bottom: 20px;
}


/* Labels */
.form-contact label {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 6px;
  font-family: 'Alegreya', serif;
}


.form-contact input,
.form-contact textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.03);
  color: #fff;
  font-size: 14px;
  transition: 2.3s ease;
    font-family: 'Alegreya', serif;
      font-size: 15px;
  
}


.form-contact input:focus,
.form-contact textarea:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 
    0 0 10px rgba(56,189,248,0.6),
    0 0 20px rgba(56,189,248,0.4);
  background: rgba(255,255,255,0.06);
}


.form-contact input::placeholder,
.form-contact textarea::placeholder {
  color: var(--placeholder-color, rgba(255,255,255,0.4));
    font-size: 15px;
}

.form-contact input[type="submit"] {
  margin-top: 10px;

  border: none;
  color: white;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  border-radius: 12px;
  padding: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(99,102,241,0.5);
    font-size: 15px;

}


.form-contact input[type="submit"]:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 0 25px rgba(14,165,233,0.7),
    0 0 40px rgba(99,102,241,0.6);
}


.form-contact input[type="submit"]:active {
  transform: scale(0.98);
}


.form-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
    pointer-events: none;

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderGlow 60s linear infinite;
}

@keyframes borderGlow {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}


@media (max-width: 600px) {
  .form-contact {
    margin: 20px;
    padding: 20px;
  }
}

#sun {
  position: absolute;
  top: 25%;
  left: 9%; 
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  z-index: 10;
  pointer-events: none;
  display: none; 
}


.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none; 
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.6);
    z-index: 999999;
}


.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  max-width: 420px;
  width: 90%;
  color: #111;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}


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

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


/* --- 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);
}

/* --- 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;
  }
}





.constellation {
    position: relative;
    width: 500px;
    height: 500px;
    margin: auto;
    box-sizing: border-box;
    transform: translateZ(0); /* force un référentiel stable */
}



.star {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #7df9ff; /* argon */
    border-radius: 50%;
    box-shadow: 0 0 12px #7df9ff, 0 0 24px #7df9ff;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}
.star.tool {
    width: 14px;
    height: 14px;
    box-shadow: 
        0 0 18px #7df9ff,
        0 0 36px #7df9ff,
        0 0 60px rgba(125,249,255,0.6);
    cursor: pointer;
}
.star.tool:hover {
    transform: scale(1.6);
    background: #ff7a00;
    box-shadow:
        0 0 20px #ff7a00,
        0 0 40px #ff7a00,
        0 0 70px rgba(255,122,0,0.7);
}

.star:hover {
    transform: scale(1.6);
    box-shadow: 0 0 20px #7df9ff, 0 0 40px #7df9ff;
}

.tool-panel {
    position: absolute;
    top: 620px;
    left: 50%;
    transform: translateX(-50%);
    width: 350px;
    padding: 20px;
    background: rgba(10, 10, 20, 0.8);
    border: 1px solid #7df9ff;
    border-radius: 12px;
    box-shadow: 0 0 20px #7df9ff55;
    color: white;
    display: none;
}

.tool-panel img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.tool-panel a {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 12px;
    background: #ff7a00;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    box-shadow: 0 0 10px #ff7a00aa;
}




/* Carré extérieur */
#s1 { top: 20%; left: 50%; }   /* haut */
#s2 { top: 50%; left: 85%; }   /* droite haute */
#s3 { top: 90%; left: 85%; }   /* droite basse */
#s4 { top: 110%; left: 50%; }   /* bas */
#s5 { top: 90%; left: 15%; }   /* gauche basse */
#s6 { top: 50%; left: 15%; }   /* gauche haute */

/* Carré intérieur */
#s7 { top: 70%; left: 50%; }   /* haut intérieur */
#s8 { top: 90%; left: 50%; }   /* bas intérieur */


.honeypot {
z-index: -150000;
  opacity: 0;
}


/* tarif */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 40px 0;
}

/* CARTES */
.pricing-card {
    background: #ecececea;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #3b82f6;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* TITRES */
.pricing-card h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: #111827;
    font-weight: 600;
}

/* LISTE */
.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-card li {
    margin-bottom: 12px;
    line-height: 1.5;
    color: #374151;
    padding-left: 18px;
    position: relative;
}

.pricing-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #3b82f6; 
    font-size: 1.2rem;
}

@media (max-width: 800px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}


.flash {
    position: fixed;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999; 
    padding: 12px 20px;
    border-radius: 5px;
    animation: fadeOut 4s forwards;
}

.flash.success {
    background: #d4edda;
    color: #155724;
}

.flash.error {
    background: #f8d7da;
    color: #721c24;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; display: none; }
}
