/* ===== Global ===== */
body {
  font-family: Arial, sans-serif;
  background-color: #d8d8e9;
  margin: 0;
  color: #333;
  text-align: center;
}

/* ===== Entête flexible ===== */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #000D3D;
  color: white;
  padding: 10px 20px;
}

.top-bar-left {
  width: 50%;
  text-align: left;
}

.top-bar-left h1 {
  margin: 0;
  font-size: 1.2em;
}

.top-bar-left p {
  margin: 2px 0 0;
  font-size: 0.8em;
  color: #ccc;
}

.top-bar-right img {
  max-height: 50px;
  width: auto;
}

/* ===== Menu compte sous entête ===== */
.menu-bar {
  background-color: #f6f6fb;
  border-bottom: 1px solid #ccc;
  padding: 6px 20px;
  text-align: right;
}

.menu-compte {
  position: relative;
  display: inline-block;
}

.menu-compte button {
  background: none;
  border: none;
  color: #004080;
  font-size: 0.95em;
  cursor: pointer;
  font-weight: bold;
}

.menu-compte button img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 5px;
}

.menu-compte-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: white;
  min-width: 220px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  border-radius: 6px;
  overflow: hidden;
  text-align: left;
  z-index: 1000;
}

.menu-compte-content a {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: #004080;
  font-size: 0.9em;
}

.menu-compte-content a:hover {
  background-color: #f0f0f8;
}

.menu-compte:hover .menu-compte-content {
  display: block;
}

/* ===== Contenu ===== */
.content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 30px 60px;
  text-align: center;
}

.page-title {
  font-size: 1.7em;
  color: #004080;
  margin: 0;
}

.image-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 360px;
  max-width: 100%;
  margin: 0 auto;
}

.image-stack img:first-child {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  transform: none;
  transition: none;
  pointer-events: auto;
}

.image-stack a img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-stack a img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(85, 61, 233, 0.4);
}

.center-img {
  width: 340px;
  max-width: 100%;
  margin: 10px auto;
}

.tagline {
  font-size: 1.3em;
  font-weight: bold;
  color: #5f5f6b;
  margin: 10px 0 20px;
}

/* ===== Boutons stylés ===== */
.btn {
  display: inline-block;
  width: 220px;
  padding: 12px 0;
  margin: 8px auto;
  border-radius: 30px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  color: white;
  background: linear-gradient(135deg, #553DE9, #7B5DE9);
  box-shadow: 0 6px 15px rgba(85, 61, 233, 0.4);
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 20px rgba(85, 61, 233, 0.5);
}

.btn.secondary {
  background: linear-gradient(135deg, #004080, #0066A0);
  box-shadow: 0 6px 15px rgba(0, 64, 128, 0.4);
}

.btn.secondary:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 64, 128, 0.5);
}

.btn-info-drones {
  margin-top: 5px;
  padding: 8px 18px;
  font-size: 0.95em;
  background-color: #f6f6fb;
  color: #004080;
  border: 1px solid #004080;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-info-drones:hover {
  background-color: #e6e6f5;
  box-shadow: 0 4px 10px rgba(0, 64, 128, 0.25);
  transform: translateY(-1px);
}

.btn-info-drones:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(85, 61, 233, 0.3);
}

/* ===== Sections et boxed ===== */
.section {
  margin-top: 40px;
}

.boxed {
  border: 2px solid #004080;
  border-radius: 8px;
  padding: 20px;
  margin: 10px auto;
  max-width: 700px;
  background-color: #f6f6fb;
}


/* ===== Modales ===== */
#modalAssistant, #modalDrones {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 12px;
  padding: 20px;
  max-width: 500px;
  width: 90%;
  z-index: 10001;
  box-shadow: 0 8px 25px rgba(0,0,0,0.35);
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

#modalDrones {
  max-width: 700px;
  height: 50%;           /* réduit la hauteur globale à moitié de l'écran */
  padding: 15px;         /* optionnel : réduit un peu le padding */
}

/* ===== Assistant fixe à droite ===== */
.assistant-box {
  position: fixed;
  top: 150px;
  right: 30px;
  width: 120px;
  background: #f6f6fb;
  border: 1px solid #d0d0e0;
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  text-align: center;
  z-index: 500;
}

.assistant-box img {
  max-width: 100%;
  height: auto;
  cursor: pointer;
}

.assistant-box .title {
  font-weight: bold;
  font-size: 0.75em;
  margin: 6px 0 4px;
  color: #004080;
}

.assistant-box .help-text {
  font-size: 0.7em;
  line-height: 1.3;
  color: #333;
  margin-bottom: 6px;
}

.assistant-box .avis-text {
  font-size: 0.6em;
  font-style: italic;
  color: #555;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .assistant-box {
    display: none;
  }
}
#footer-container {
  position: fixed; /* reste visible même en scroll */
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}
