:root {
  --color-primary: #007bff;   /* Bleu principal */
  --color-secondary: #339cff; /* Bleu clair pour hover et accents */
  --color-bg: #ffffff;
  --color-bg2: #edf3fc;
  --color-bg3: #eee;
  --color-text: #000000;
  --color-nav-text: #888; /* Texte du menu en gris foncé */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
}

header {
  background-color: var(--color-bg);
  border-bottom: 1px solid #eaeaea;
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 2rem;
  z-index: 999;
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--color-primary);
}

.login-btn {
  background-color: var(--color-nav-text);
  color: white;
  border-radius: 12px; /* bords ronds autour du texte */
  padding: 5px 12px;
  font-size: 14px; /* un peu plus petit que le reste */
  line-height: normal; /* pour ajuster à la taille du texte */
  margin-left: 10px;
  transition: background-color 0.3s ease;
}

.login-btn:hover {
  background-color: #444; /* un gris plus foncé au survol */
  color: white;
  cursor: pointer;
}

nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: var(--color-nav-text);
  font-weight: bold;
}

.image-fixe {
  width: 100%;
  overflow: hidden;
  margin: 2rem 0;
}

.image-fixe img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center top; /* Aligne le haut de l’image */
  border-radius: 8px;
  max-height: 500px;
  margin-top: 20px;
  opacity: 0.8; /* 0 = totalement transparent, 1 = opaque */
}

.image-text {
  position: absolute;
  top: 50%;
  left: 35%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1.8rem;
  font-weight: bold;
  max-width: 300px;
  background-color: rgba(0, 0, 0, 0.35); /* fond noir semi-transparent */
  padding: 1rem 1.2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); /* ombre portée sur le bloc */
  text-align: center;
}

.hero {
  margin-top: 0px;
  text-align: center;
  padding: 3rem 1rem;
}

.hero h1 {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.features {
  padding: 3rem 1rem;
  background-color: var(--color-bg2);
  text-align: center;
  margin-bottom: 40px;
}

.features h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}

.feature-list li {
  font-size: 1.2rem;
  margin: 1rem 0;
  position: relative;
  padding-left: 2rem;
}

.checkmark {
  color: rgb(62, 214, 62);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Animations pour les plans */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.plan {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  background-color: #fff;
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Ombre douce */
}

.plan:nth-child(1) {
  animation-delay: 0.2s;
}
.plan:nth-child(2) {
  animation-delay: 0.4s;
}
.plan:nth-child(3) {
  animation-delay: 0.6s;
}

.plan.featured {
  border-color: var(--color-primary);
}

.plan h2 {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.plan p {
  margin-bottom: 1.5rem;
}

button {
  background-color: var(--color-primary);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}

button:hover {
  background-color: var(--color-secondary);
}

footer {
  background-color: var(--color-bg3);
  padding: 2rem 1rem;
  margin-top: 4rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem; /* Ajoute du padding latéral */
}

.footer-column {
  text-align: center;
}

.footer-column h4 {
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li a {
  text-decoration: none;
  color: var(--color-text);
  line-height: 2;
}

/* Formulaire dans le footer */
.footer-contact form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact input,
.footer-contact textarea {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}

.footer-contact button {
  align-self: flex-start;
}

.image-fixe {
  position: relative; /* important pour que .image-text soit positionné par rapport à ce conteneur */
}

/* Section Contact */
.contact {
  max-width: 600px;
  margin: 3rem auto 5rem auto;
  padding: 2rem;
  background-color: var(--color-bg);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  color: var(--color-text);
}

.contact h2 {
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  font-weight: bold;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact label {
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--color-text);
}

.contact input[type="text"],
.contact input[type="email"],
.contact textarea {
  padding: 0.8rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  transition: border-color 0.3s ease;
}

.contact input[type="text"],
.contact input[type="email"],
.contact textarea {
  background-color: var(--color-bg);
  color: var(--color-text);
  border: 1px solid #ccc;
}

.contact button {
  margin-top: 1rem;
  background-color: var(--color-primary);
  color: white;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.contact button:hover {
  background-color: var(--color-secondary);
}

/* Responsive */
@media (max-width: 600px) {
  .contact {
    margin: 2rem 1rem 4rem 1rem;
    padding: 1.5rem;
  }
}

@media (max-width: 400px) {
  .image-text {
    font-size: 1rem;
    padding: 0.6rem 0.8rem;
    max-width: 95%;
  }
}

/* Responsive pour le footer */
@media (min-width: 600px) {
  .footer-columns {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  header {
    position: static;
  }

  .nav {
    flex-direction: column;
    align-items: center;
  }

  nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
  }

  nav a {
    margin: 0.5rem 0;
  }

  .image-text {
    position: absolute;
    top: 50%;
    left: 50%; /* recentré horizontalement */
    transform: translate(-50%, -50%);
    max-width: 90%; /* plus large sur petit écran */
    font-size: 1.2rem; /* texte plus petit */
    padding: 0.8rem 1rem;
  }
}

/* Dark mode (optionnel) */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #111111;
    --color-text: #eeeeee;
    --color-nav-text: #cccccc;
  }

  body {
    background-color: var(--color-bg);
    color: var(--color-text);
  }

  .features,
  .contact,
  footer,
  .plan {
    background-color: #1a1a1a;
    color: var(--color-text);
  }

  nav a,
  .footer-column h4,
  .footer-column ul li a {
    color: var(--color-secondary);
  }

  .contact input,
  .contact textarea {
    background-color: #222;
    color: #fff;
    border-color: #444;
  }
}
