/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #FF7F00; /* Orange */
  color: #000; /* Noir */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* En-tête */
.hero img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-logo {
  /*height: 60px;*/
  margin-bottom: 10px;
}

/* Conteneur principal */
.container {
  display: flex;
  flex: 1;
  min-height: calc(100vh - 200px); /* Ajusté selon bannière */
  position: relative;
}

/* Menu gauche */
.sidebar {
  width: 250px;
  background-color: #fff;
  color: #000;
  padding: 20px 0;
  position: sticky;
  top: 0;
  height: calc(100vh - 200px);
  overflow-y: auto;
  box-shadow: 2px 0 5px rgba(0,0,0,0.1);
  z-index: 10;
}

.sidebar .logo {
  text-align: center;
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FF7F00;
}

.sidebar ul {
  list-style: none;
}

.sidebar ul li {
  padding: 10px 20px;
}

.sidebar ul li a {
  color: #000;
  text-decoration: none;
  font-weight: 500;
  display: block;
  transition: color 0.3s;
}

.sidebar ul li a:hover {
  background-color: #000;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  display: block;
  text-decoration: none;
  border-left: 4px solid #FF7F00; /* Orange vif à gauche */
  transition: all 0.3s ease;
}

/* Contenu principal */
.main-content {
  flex: 1;
  padding: 30px;
  background-color: #FF7F00;
  min-width: 0; /* Pour éviter les débordements */
}

.main-content h1 {
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.main-content p {
  color: #fff;
  margin-bottom: 30px;
}

/* Grille de boutons - 3 colonnes sur grand écran */
.tools-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.tool-btn {
  background-color: #fff;
  border: none;
  padding: 20px;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  font-size: 1em;
  color: #000;
}

.tool-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.2);
  background-color: #f9f9f9;
  border-left: 5px solid #007BFF;
}

.tool-btn h3 {
  color: #FF7F00;
  margin-bottom: 8px;
}

.tool-btn p {
  color: #555;
  font-size: 0.95em;
}

/* Barre latérale droite */
.sidebar-right {
  width: 180px;
  background-color: #fff;
  padding: 20px;
  position: sticky;
  top: 0;
  height: calc(100vh - 200px);
  overflow-y: auto;
  box-shadow: -2px 0 5px rgba(0,0,0,0.1);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.ad-banner img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 5px;
}

/* Pied de page */
.footer {
  display: flex;
  background-color: #fff;
  color: #000;
  padding: 30px;
  font-size: 0.9em;
  z-index: 5;
}

.footer-section {
  flex: 1;
  margin: 0 20px;
}

.footer-section h4 {
  color: #FF7F00;
  margin-bottom: 10px;
}

.footer-section a {
  color: #007BFF;
  text-decoration: none;
}

.footer-section a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
  .sidebar-right {
    display: none; /* Cacher sur tablette et mobile */
  }
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    transform: translateX(-100%);
    z-index: 1000;
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .container {
    flex-direction: column;
  }

  .main-content {
    margin: 0;
    padding: 20px;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .hamburger {
    display: block;
  }

  .footer {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
}

/* Hamburger */
.hamburger {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
  z-index: 1100;
  background-color: rgba(0,0,0,0.5);
  width: 40px;
  height: 40px;
  border-radius: 5px;
  text-align: center;
  line-height: 40px;
}

/* === BANNIÈRE HÉRO MODERNE === */
.hero-banner {
  background: linear-gradient(135deg, #FF7F00, #FF9933); /* Orange chaud */
  color: white;
  padding: 60px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 5px solid #007BFF; /* Bleu vif */
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero-content h1 {
  font-size: 2.8em;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  color: #fff;
}

.hero-content p {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #fff;
}

.cta-button {
  display: inline-block;
  background-color: #007BFF; /* Bleu vif */
  color: white;
  padding: 14px 30px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  border: 2px solid white;
}

.cta-button:hover {
  background-color: #0056b3;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* === Éléments décoratifs === */
.hero-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
}

.shape {
  position: absolute;
  background: white;
}

.circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  top: 20%;
  left: 10%;
  background: radial-gradient(circle, white, transparent);
}

.wave {
  width: 200px;
  height: 100px;
  background: linear-gradient(transparent, white), 
              repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(255,255,255,0.5) 10px, rgba(255,255,255,0.5) 20px);
  bottom: 10%;
  right: 15%;
  clip-path: polygon(0% 100%, 100% 100%, 100% 0%, 0% 50%);
}

.blob {
  width: 180px;
  height: 180px;
  background: white;
  border-radius: 60%;
  transform: rotate(45deg);
  bottom: 20%;
  left: 25%;
  opacity: 0.7;
  filter: blur(20px);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.2em;
  }

  .hero-content p {
    font-size: 1em;
  }

  .cta-button {
    padding: 12px 24px;
    font-size: 1em;
  }
}
