/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 120%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: 'Open Sans', 'Nunito', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #1E2939;
  background-color: #ffffff;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

/* Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 50;
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

body:not(.landing-page) .site-header {
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,.02), 0 1px 0 rgba(0,0,0,.06);
}

.navbar {
  min-height: 3.5rem;
  padding: 0.5rem 0;
}

.navbar-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand img {
  max-height: 5rem;
  height: auto;
  width: auto;
  object-fit: contain;
}

.navbar-menu {
  display: none;
  gap: 2rem;
  align-items: center;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #ffffff;
  flex-direction: column;
  padding: 1rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

/* Assurer que les liens dans le menu mobile sont toujours visibles */
.navbar-menu .navbar-link {
  color: #1E2939;
  text-shadow: none;
}

.navbar-menu.navbar-menu-open {
  display: flex;
}

.navbar-link {
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: #1E2939;
  padding: 0.625rem 1rem;
  border-radius: 0.375rem;
  transition: 0.6s;
  text-shadow: none;
  display: inline-block;
}

.navbar-link:hover {
  color: #73b909;
  background-color: #ffffff;
}

.navbar-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.navbar-toggle span {
  width: 24px;
  height: 2px;
  background-color: #1E2939;
  transition: all 0.3s ease;
  display: block;
}

.navbar-toggle-open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle-open span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle-open span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Burger menu visible jusqu'à 1024px, menu horizontal à partir de 1024px */
@media (min-width: 1024px) {
  .navbar-menu {
    display: flex !important;
    position: static;
    background-color: transparent;
    box-shadow: none;
    flex-direction: row;
    padding: 0;
    gap: 2rem;
  }
  .navbar-toggle {
    display: none;
  }
}

/* Content */
.content-wrapper {
  max-width: 100%;
  margin: 0 auto;
}

.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.page-content {
  padding-top: 4.5rem;
  min-height: calc(100vh - 4.5rem);
}

@media (min-width: 768px) {
  .page-content {
    padding-top: 4rem; /* Légèrement réduit sur tablette */
    min-height: calc(100vh - 4rem);
  }
}

@media (min-width: 1024px) {
  .page-content {
    padding-top: 4.5rem; /* Retour à la normale sur desktop */
    min-height: calc(100vh - 4.5rem);
  }
}

main {
  min-height: 100vh;
}

.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.page-body {
  font-size: 1rem; /* 16px - cohérent avec les sections de contenu */
  line-height: 1.8;
  color: #444444; /* Couleur cohérente avec les sections de contenu */
}

/* Titre principal de la page (h1 dans .page-container) */
.page-container h1 {
  font-size: 1.75rem; /* Réduit pour mobile */
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #1E2939;
  font-family: 'Nunito', 'Poppins', sans-serif; /* Police pour les titres */
}

.page-body h2 {
  font-size: 1.5rem; /* Réduit pour mobile - cohérent avec landing page */
  font-weight: 700; /* Changé de 600 à 700 pour cohérence */
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #1E2939;
  font-family: 'Nunito', 'Poppins', sans-serif; /* Police pour les titres */
}

.page-body h3 {
  font-size: 1.25rem; /* Réduit pour mobile */
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #1E2939;
  font-family: 'Nunito', 'Poppins', sans-serif; /* Police pour les titres */
}

/* Tailles pour tablette */
@media (min-width: 768px) {
  .page-container h1 {
    font-size: 2rem;
  }
  
  .page-body h2 {
    font-size: 1.75rem;
  }
  
  .page-body h3 {
    font-size: 1.375rem;
  }
}

/* Tailles pour desktop */
@media (min-width: 1024px) {
  .page-container h1 {
    font-size: 2.5rem;
  }
  
  .page-body h2 {
    font-size: 2rem; /* Cohérent avec les sections de contenu */
  }
  
  .page-body h3 {
    font-size: 1.5rem;
  }
}

.page-body p {
  margin-bottom: 1.5rem;
  color: #444444; /* Couleur cohérente avec les sections de contenu */
  font-size: 1rem; /* 16px - cohérent avec les sections de contenu */
}

.page-body ul, .page-body ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  color: #444444; /* Couleur cohérente */
}

.page-body li {
  margin-bottom: 0.5rem;
  font-size: 1rem; /* 16px - cohérent avec les paragraphes */
  line-height: 1.8;
}

.page-body a {
  color: #73b909; /* Vert Alterra */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-body a:hover {
  color: #5a9507; /* Vert plus foncé au hover */
}

.page-body a:hover {
  color: #5a9407;
}

.page-body hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 2rem 0;
}

.page-body blockquote {
  border-left: 4px solid #73b909;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #4b5563;
}

/* Footer */
.site-footer {
  background-color: #ffffff;
  padding: 3rem 0;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.footer-logo {
  margin-bottom: 2rem;
}

.footer-lacyber-logo {
  height: 80px;
  width: auto;
  max-height: 80px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: #4b5563;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #1E2939;
}

.footer-copyright {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.5;
}

.footer-made-with {
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

@media (min-width: 768px) {
  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .footer-copyright p:first-child {
    flex-basis: 100%;
    margin-bottom: 0.5rem;
  }
}

