/* style.css */

/* Reset & typographie */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Orbitron', sans-serif;
  line-height: 1.6;
  background: #111;
  color: #fff;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Header & navigation */
header {
  background: rgba(0, 0, 0, 0.8);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #333;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

header .logo h1 {
  font-size: 1.8rem;
  color: #0ff;
}

nav ul {
  list-style: none;
  display: flex;
}

nav ul li {
  margin-left: 2rem;
}

nav ul li a {
  text-decoration: none;
  color: #fff;
  font-size: 1rem;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #ff0;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle .bar {
  height: 3px;
  width: 25px;
  background-color: #fff;
  margin: 4px 0;
  transition: 0.3s;
}

/* Affichage des sections de la page principale */
.section,
.hero {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  padding-top: 80px; /* compense le header fixe */
}

.hero.active,
.section.active {
  display: block;
  opacity: 1;
}

/* Hero */
.hero {
  background: url('hero-bg.jpg') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  padding: 150px 0 220px;
  text-align: center;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero .btn {
  padding: 0.8rem 2rem;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid #fff;
  color: #fff;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

.hero .btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}

@keyframes gradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Sections génériques */
.section {
  padding: 80px 0;
}

.section.dark {
  background-color: #222;
}

.section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #0ff;
}

/* Blog cards */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.card {
  background: #1a1a1a;
  border: 1px solid #333;
  padding: 1.5rem;
  width: 300px;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.card h3 {
  margin-bottom: 1rem;
  color: #ff0;
}

.card p {
  margin-bottom: 1rem;
}

/* News items */
.news-items {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.news-item {
  background: #1a1a1a;
  padding: 1rem;
  border: 1px solid #333;
  border-radius: 10px;
  width: 300px;
  transition: transform 0.3s ease;
}

.news-item:hover {
  transform: scale(1.05);
}

.news-item h3 {
  color: #0f0;
  margin-bottom: 1rem;
}

/* Tips */
.tips {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.tip {
  background: #1a1a1a;
  padding: 1.5rem;
  border: 1px solid #333;
  border-radius: 10px;
  width: 300px;
  transition: transform 0.3s ease;
}

.tip:hover {
  transform: translateY(-5px);
}

/* Tests */
.tests {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.test {
  background: #1a1a1a;
  padding: 1.5rem;
  border: 1px solid #333;
  border-radius: 10px;
  width: 300px;
  text-align: center;
  transition: background 0.3s ease;
}

.test a {
  text-decoration: none;
  color: #fff;
  border: 1px solid #fff;
  padding: 0.5rem 1rem;
  display: inline-block;
  margin-top: 1rem;
  transition: background 0.3s ease;
}

.test a:hover {
  background: #fff;
  color: #000;
}

/* Formulaire Contact */
#contact-form {
  max-width: 600px;
  margin: auto;
}

#contact-form .form-group {
  margin-bottom: 1.5rem;
}

#contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  color: #0ff;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #333;
  background: #111;
  color: #fff;
  border-radius: 5px;
  transition: border 0.3s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
  border-color: #0ff;
}

#contact-form button {
  padding: 0.8rem 2rem;
  border: none;
  background: #0ff;
  color: #000;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#contact-form button:hover {
  background: #0cc;
}

/* Footer */
footer {
  background: #000;
  padding: 1rem 0;
  text-align: center;
}

footer p {
  color: #fff;
}

footer a {
  color: #0ff;
  text-decoration: none;
  margin: 0 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    background: #111;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    border: 1px solid #333;
  }
  nav ul li {
    margin: 0;
    padding: 1rem;
    border-bottom: 1px solid #333;
  }
  .menu-toggle {
    display: flex;
  }
  nav ul.active {
    display: flex;
  }
}

/* ---------------------------------------- */
/* BOUTON “Discuter avec IA”               */
/* ---------------------------------------- */
.btn-ai {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(0, 114, 255, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-ai:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 114, 255, 0.4);
}

.btn-ai:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(0, 114, 255, 0.2);
}

/* BOUTON “Générer des images” – style moderne rouge/rose */
.btn-img {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(255, 75, 43, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.btn-img:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(255, 75, 43, 0.4);
}
.btn-img:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(255, 75, 43, 0.2);
}
/* Bouton “Poursuivre…” pour Ethical Hacking */
.btn-ethical {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #28a745 0%, #218838 100%);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(33,136,56,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.btn-ethical:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 16px rgba(33,136,56,0.4);
}
.btn-ethical:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(33,136,56,0.2);
}

