/* Styles spécifiques à la page d'accueil */

/* Hexagon Background - Page d'accueil uniquement */
.hexagon-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    background-color: #f0f2f5;
    pointer-events: none;
}

/* Ensure all page content renders above the hexagon background */
nav,
header,
main,
footer {
    position: relative;
    z-index: 1;
}

/* Allow hexagon hover through transparent section/container areas */
.hero,
section.container {
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.hero *,
section.container * {
    pointer-events: auto;
}

.hexagon-row {
    display: inline-flex;
    white-space: nowrap;
}

.hexagon {
    position: relative;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: all 0.3s ease;
    pointer-events: auto;
}

.hexagon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 64, 128, 0.4);
    transition: all 1s;
}

.hexagon::after {
    content: '';
    position: absolute;
    inset: 3px;
    background-color: #f0f2f5;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.hexagon:hover::before {
    background-color: rgba(33, 150, 243, 0.6);
    transition-duration: 0s;
}

.hexagon:hover::after {
    background-color: #e8eaed;
    transition-duration: 0s;
}

/* Mode sombre pour hexagones */
.dark-mode .hexagon-container {
    background-color: #1a1a2e;
}

.dark-mode .hexagon::before {
    background-color: rgba(51, 51, 51, 0.4);
}

.dark-mode .hexagon::after {
    background-color: #1a1a2e;
}

.dark-mode .hexagon:hover::before {
    background-color: rgba(33, 150, 243, 0.6);
}

.dark-mode .hexagon:hover::after {
    background-color: #16213e;
}

.hero {
  padding: 4rem 2rem;
  background: linear-gradient(45deg, #004080, #007acc);
  color: white;
  margin-bottom: 2rem;
}

.hero-content {
  display: grid;
  grid-template-columns: 280px 1fr;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
  align-items: center;
}

.hero-text {
  text-align: center;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-text h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  background: white;
  color: #004080;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 1rem;
  transition: all 0.3s;
}

.btn:hover {
  background: #004080;
  color: white;
}

@media (max-width: 900px) {
  .hero {
    padding: 2rem 0;
  }

  .hero-content {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .hero-text {
    grid-row: 1;
    padding: 1rem;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
  }
}

.dark-mode .hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.dark-mode .card {
  background: #252545;
  color: #e6e6e6;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.dark-mode .card h3 {
  color: #4d8ce3;
}

.dark-mode .card a {
  color: #4d8ce3;
}

.dark-mode .btn {
  background: #2196F3;
  color: white;
}

.dark-mode .btn:hover {
  background: #1976D2;
  color: white;
}