/* --- Style global --- */
body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  color: #00344F;
  background-color: #ffffff;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Raleway', sans-serif;
  color: #00344F;
  margin-bottom: 0.5em;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* --- En-tête --- */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #E2F3FA;
  padding: 15px 40px;
  flex-wrap: wrap;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  height: 60px;
  transition: filter 0.6s ease, box-shadow 0.6s ease;
}

/* --- Ajustement logo sans slogan --- */
.big-logo {
  height: 80px; /* taille augmentée */
}
@media (max-width: 768px) {
  .big-logo {
    height: 65px; /* adaptation sur mobile */
  }
}

.slogan {
  font-weight: 600;
  color: #005b7f;
}

.nav a {
  text-decoration: none;
  color: #004568;
  font-weight: 600;
  margin-left: 20px;
}

.nav a:hover {
  color: #009FE3;
}

/* --- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, #E2F3FA 0%, #ffffff 100%);
  text-align: center;
  padding: 60px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  margin-bottom: 20px;
}

.hero-logo {
  width: 180px;
  margin-bottom: 15px;
}

.hero h1 {
  font-size: 40px;
  margin-bottom: 15px;
  color: #004568;
}

.hero p {
  font-size: 20px;
  max-width: 700px;
  margin: 10px auto 30px;
}

/* --- Bouton au-dessus des vagues --- */
.hero .btn {
  position: relative;
  margin-top: -45px;
  z-index: 3;
}

/* --- Vagues --- */
.waves {
  width: 100%;
  height: 120px;
  margin-top: -20px;
  z-index: 1;
}

/* Animation */
@keyframes moveWaves {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --- Responsive --- */
@media (max-width: 768px) {

  .hero-logo {
    width: 120px;
  }

  .hero h1 {
    font-size: 32px;
  }

  /* Ajustement mobile du bouton */
  .hero .btn {
    margin-top: -20px !important;
    z-index: 3;
  }

  /* Vagues mobile */
  .waves {
    height: 90px;
    margin-top: -10px;
  }

}


@keyframes moveWaves {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* --- Boutons --- */
.btn {
  background: #009FE3;
  color: #fff;
  padding: 12px 25px;
  border: none;
  text-decoration: none;
  font-weight: 600;
  border-radius: 5px;
  transition: background 0.3s;
}

.btn:hover {
  background: #007bb5;
}

.btn-secondary {
  background: #fff;
  color: #009FE3;
  border: 2px solid #009FE3;
  padding: 10px 22px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: #009FE3;
  color: #fff;
}

/* --- Présentation --- */
.presentation {
  padding: 60px 20px;
  background-color: #f7fbfd;
  text-align: center;
}

.presentation p {
  margin-bottom: 20px;
}

.keywords {
  font-size: 18px;
  color: #009FE3;
}

/* --- Nos générateurs --- */
.generators {
  padding: 60px 20px;
  text-align: center;
}

.gen-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.gen-card {
  background: #E2F3FA;
  border-radius: 10px;
  padding: 25px;
  width: 300px;
}

/* --- Avantages --- */
.advantages {
  background: #f0f9fc;
  padding: 60px 20px;
  text-align: center;
}

.adv-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.adv-item {
  background: #fff;
  border: 1px solid #E2F3FA;
  border-radius: 10px;
  padding: 20px;
  width: 230px;
}

/* --- Contact --- */
.contact {
  padding: 60px 20px;
  text-align: center;
}

.contact-forms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.contact-form, .callback-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 300px;
}

.contact-form input,
.callback-form input,
.contact-form textarea {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

@keyframes sloganLight {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* --- Transition douce sur tout --- */
* {
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* --- Menu hamburger --- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #009FE3;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Animation croix quand actif */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Menu mobile */
.nav {
  transition: max-height 0.3s ease;
}

@media (max-width: 768px) {
  .nav {
    position: absolute;
    top: 70px;
    right: 0;
    background: #E2F3FA;
    flex-direction: column;
    align-items: center;        /* ← centrer les liens */
    padding: 20px 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    z-index: 999;
    text-align: center;         /* ← très important */
  }

  .nav.active {
    max-height: 400px;          /* un peu plus haut */
  }

  .nav a {
    display: block;
    padding: 12px 0;
    margin: 5px 0;
    width: 100%;
    font-size: 20px;
  }

  .hamburger {
    display: flex;
  }

  /* si tu n'as plus le theme-toggle, tu peux supprimer ceci */
}


/* Adaptation dark mode pour menu mobile */
body.dark-mode .nav {
  background: #0d2533;
}


/* --- Responsive --- */
@media (max-width: 768px) {
  .nav {
    margin-top: 10px;
  }
  .adv-item, .gen-card {
    width: 90%;
  }
  .contact-form, .callback-form {
    width: 90%;
  }
}

/* --- Liens pour ouvrir le module rappel --- */
.rappel-link {
  margin-top: 20px;
  font-size: 16px;
}

.rappel-link span {
  color: #009FE3;
  font-weight: 600;
  cursor: pointer;
}

.rappel-link span:hover {
  text-decoration: underline;
}

/* --- VOLET DE RAPPEL QUI GLISSE --- */
.rappel-panel {
  position: fixed;
  bottom: -250px; /* caché */
  left: 0;
  width: 100%;
  background: #ffffff;
  box-shadow: 0 -5px 15px rgba(0,0,0,0.15);
  padding: 25px 15px;
  border-top: 3px solid #009FE3;
  transition: bottom 0.4s ease;
  z-index: 9999;
  text-align: center;
}

.rappel-panel.open {
  bottom: 0; /* quand ouvert */
}

.rappel-panel h3 {
  margin: 0 0 15px;
  color: #004568;
}

.rappel-panel input {
  width: 90%;
  padding: 10px;
  margin-bottom: 12px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

/* ferme le volet en cliquant sous le menu */
.rappel-panel::after {
  content: "";
}

/* Message de retour */
.form-response {
  margin-top: 8px;
  font-weight: 600;
}

/* --- Croix de fermeture du volet rappel --- */
.close-rappel {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 28px;
  color: #009FE3;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.close-rappel:hover {
  transform: scale(1.2);
  opacity: 0.7;
}

/* --- Footer : logo très petit --- */
.footer-logo {
  height: 35px !important;
  width: auto !important;
  margin-right: 10px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-right a {
  margin-left: 15px;
}

/* Ligne séparatrice au-dessus du footer */
.footer {
  border-top: 2px solid rgba(0, 159, 227, 0.25); /* bleu clair transparent */
}

/* --- Badge PRO pour la carte professionnelle --- */
.pro-card {
  position: relative;
}

.badge-pro {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #009FE3;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  z-index: 5;
}

/* Uniformisation des images dans les cartes */
.gen-card img {
  width: 100%;
  max-width: 260px;
  height: 420px;      /* hauteur identique pour toutes les images */
  object-fit: cover;  /* recadre proprement */
  display: block;
  margin: 0 auto 15px;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}


html {
  scroll-behavior: smooth;
}
