@font-face {
  font-family: "Azonix";
  src: url("../fonts/Azonix.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #ffffff;
  color: #111111;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Layout simple */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1 0 auto;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

footer {
  flex-shrink: 0;
}

/* Nav */

.site-header {
  background: linear-gradient(90deg, #007aff, #ffffff);
  color: #000000;
}

.nav-bar {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo img {
  height: 48px;
  width: auto;
}

.nav-logo-text {
  font-family: "Azonix", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-dropdown {
  position: relative;
}

.nav-button {
  border: 1px solid #000000;
  background: #fdfdfd;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-button span.chevron {
  font-size: 0.75rem;
}



.nav-dropdown .dropdown-menu {
  position: absolute;
  top: 120%;
  left: 0;
  min-width: 210px;
  background: #ffffff;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
}

.nav-dropdown .dropdown-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.65rem 1.2rem;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 0;
}

.dropdown-item:first-child {
  border-radius: 16px 16px 0 0;
}

.dropdown-item:last-child {
  border-radius: 0 0 16px 16px;
}

.dropdown-item + .dropdown-item {
  border-top: 1px solid #f0f0f0;
}

.dropdown-item:hover {
  background: #007aff;
  color: #ffffff;
}
/* Contenu */

.page-title {
  margin: 0 0 1rem;
  font-family: "Azonix", system-ui, sans-serif;
  font-size: 1.8rem;
  text-align: center;
  letter-spacing: 0.12em;
}

.page-subtitle {
  margin: 0 0 1.5rem;
  text-align: center;
  font-weight: 600;
}

.text-block {
  max-width: 760px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.text-block p {
  margin: 0 0 0.9rem;
}

.placeholder-box {
  max-width: 760px;
  margin: 2rem auto 0;
  border-radius: 1.5rem;
  border: 2px dashed #0b7cff;
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-weight: 600;
}

.team-line {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e5e5e5;
  text-align: center;
  font-weight: 700;
}

/* Footer */

.site-footer {
  background: linear-gradient(90deg, #007aff, #ffffff);
  color: #ffffff;
  padding: 0.9rem 1.5rem;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
}

.footer-logo img {
  width: 90px;
}

.footer-names {
  font-weight: 700;
  text-transform: uppercase;
}

/* Responsive */

@media (max-width: 720px) {
  .nav-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-right {
    align-self: flex-end;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.dropdown-item:first-child {
  border-radius: 1.4rem 1.4rem 0 0;
}

.dropdown-item:last-child {
  border-radius: 0 0 1.4rem 1.4rem;
}

.dropdown-item + .dropdown-item {
  border-top: 1px solid #f0f0f0;
}

.dropdown-item:hover {
  background: #007aff;
  color: #ffffff;
}


.data-table-wrapper {
  max-width: 760px;
  margin: 1.5rem auto 0;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.data-table thead {
  background: #f3f4f6;
}

.data-table th,
.data-table td {
  padding: 0.6rem 0.75rem;
  border: 1px solid #e5e7eb;
  text-align: right;
}

.data-table th:first-child,
.data-table td:first-child {
  text-align: left;
}

.data-table tbody tr:nth-child(even) {
  background: #f9fafb;
}

#graphique1 {
  width: 100% !important;
  max-width: 1400px;
  
  margin: 0 auto;
  display: block;
}

.placeholder-box {
  max-width: 1500px !important;
  margin: 2rem auto;
  padding: 2rem;
}

#graphique1 {
  width: 100% !important;
  max-width: 1650px;
  height: 580px !important;
  margin: 0 auto;
  display: block;
}

.placeholder-box {
  max-width: 1700px !important;
  margin: 2rem auto;
  padding: 2rem;
}


/* Graphique 2 - diagramme en barres SVG */
.svg-chart-wrapper {
  max-width: 1100px;
  margin: 2rem auto 0;
}

.svg-chart-wrapper svg {
  width: 100%;
  height: auto;
  border-radius: 24px;
  background: #ffffff;
}

.svg-chart-title {
  text-anchor: middle;
  font-size: 18px;
  font-weight: 700;
  fill: #111111;
}

.svg-axis-label {
  fill: #555555;
  font-size: 12px;
}

.svg-tick {
  stroke: #e5e7eb;
  stroke-width: 1;
}

.svg-bar {
  rx: 6;
  ry: 6;
  cursor: pointer;
}

.svg-bar-label {
  font-size: 11px;
  fill: #111111;
}

.svg-legend text {
  font-size: 12px;
  fill: #111111;
}


/* Graphique 2 large */
.svg-chart-wrapper {
  max-width: 1500px;
  margin: 2rem auto 0;
}

.svg-chart-wrapper svg {
  width: 100%;
  height: 520px;
}


/* Tableau des données - Graphique 1 (strict) */
.strict-table-wrapper {
  max-width: 1200px;
  margin: 1.5rem auto 0;
}

.table-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.table-toggle-btn:hover {
  background: #f3f4f6;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.table-toggle-btn span.chevron {
  font-size: 0.9rem;
}

.strict-table-container {
  margin-top: 0.9rem;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  padding: 0.75rem 1rem 1rem;
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  display: none;
  overflow-x: auto;
}

.strict-table-container table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.strict-table-container thead {
  background: linear-gradient(90deg, #007aff 0%, #4da3ff 50%, #a6c8ff 100%);
  color: #ffffff;
}

.strict-table-container th,
.strict-table-container td {
  padding: 0.55rem 0.75rem;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

.strict-table-container tbody tr:nth-child(even) {
  background-color: #f9fafb;
}

.strict-table-container caption {
  caption-side: bottom;
  font-size: 0.8rem;
  color: #6b7280;
  padding-top: 0.4rem;
}


.strict-table-wrapper {
  max-width: 900px;
  margin: 1.75rem auto 0;
  text-align: center;
}

.strict-table-intro {
  margin-top: 0.75rem;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.strict-table-container {
  margin-top: 0.6rem;
}


/* Infographies IA */
.infographie-container {
  max-width: 900px;
  margin: 2.5rem auto 3rem;
  padding: 0 1.25rem;
  display: flex;
  justify-content: center;
}

.infographie-container img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

@media (max-width: 768px) {
  .infographie-container {
    margin: 1.8rem auto 2.5rem;
    padding: 0 0.75rem;
  }

  .infographie-container img {
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.22);
  }
}


/* Bulle d'information sur les pages de graphiques */
.graph-info-bubble-wrapper {
  max-width: 1000px;
  margin: 0 auto 3rem;
  padding: 0 1.25rem;
}

.graph-info-bubble {
  max-width: 420px;
  margin-left: auto;
  background: #ffffff;
  border-radius: 18px;
  padding: 1rem 1.5rem;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-size: 0.93rem;
  line-height: 1.55;
}

.graph-info-bubble-title {
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111827;
  margin-bottom: 0.4rem;
}

.graph-info-bubble p {
  margin: 0.25rem 0;
}

.graph-info-bubble p em {
  font-style: normal;
  font-weight: 500;
  color: #2563eb;
}

@media (max-width: 768px) {
  .graph-info-bubble-wrapper {
    padding: 0 0.75rem;
  }

  .graph-info-bubble {
    max-width: 100%;
    margin-left: 0;
  }
}


/* Bouton d'information circulaire + modale */
.graph-info-bubble-wrapper {
  position: fixed;
  right: 2.5rem;
  bottom: 2.5rem;
  z-index: 80;
}

.graph-info-button {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #007aff, #5bb0ff);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.4rem;
  box-shadow: 0 10px 30px rgba(0, 58, 140, 0.45);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, background 0.18s ease-out;
}

.graph-info-button:hover,
.graph-info-button:focus-visible {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 40px rgba(0, 58, 140, 0.55);
  outline: none;
}

.graph-info-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 90;
}

.graph-info-modal.is-visible {
  display: flex;
}

.graph-info-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(3px);
}

.graph-info-modal-content {
  position: relative;
  max-width: 720px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 2.25rem 2.5rem;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.24);
  z-index: 1;
}

.graph-info-modal-content h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.graph-info-modal-content p {
  font-size: 0.95rem;
  line-height: 1.55;
  
}

.graph-info-modal-content p strong {
  font-weight: 700;
}

.graph-info-ia-note {
  font-style: italic;
  color: #0060c7;
  margin-top: 0.5rem;
}

.graph-info-modal-close {
  position: absolute;
  top: 0.9rem;
  right: 1.1rem;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333333;
}

/* Responsive */
@media (max-width: 768px) {
  .graph-info-bubble-wrapper {
    right: 1.25rem;
    bottom: 1.25rem;
  }
  .graph-info-modal-content {
    padding: 1.6rem 1.5rem;
  }
}

.infographie-image {
  display: block;
  max-width: 900px;
  width: min(90vw, 900px);
  margin: 0 auto 2.5rem auto;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.graph-box.dashed {
  padding: 2rem 1.5rem;
}


/* === Bouton & modale pour les prompts des graphiques IA === */
.graph-prompt-button {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 10px 30px rgba(88, 28, 135, 0.45);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, background 0.18s ease-out;
  
}

.graph-prompt-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(88, 28, 135, 0.55);
  background: linear-gradient(135deg, #f472b6, #a855f7);
}

/* Modale inspirée de la modale d'informations */
.graph-prompt-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 95;
}

.graph-prompt-modal.is-visible {
  display: flex;
}

.graph-prompt-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(3px);
}

.graph-prompt-modal-content {
  position: relative;
  max-width: 720px;
  width: 90%;
  background: #ffffff;
  border-radius: 18px;
  padding: 1.6rem 1.5rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.48);
  font-size: 0.95rem;
  line-height: 1.55;
}

.graph-prompt-modal-content h2 {
  margin-top: 0;
  margin-bottom: 0.85rem;
  font-size: 1.15rem;
  color: #0f172a;
}

.graph-prompt-modal-content p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0;
  white-space: normal;
}

.graph-prompt-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #64748b;
}

.graph-prompt-modal-close:hover {
  color: #0f172a;
}

/* Position fixe du bouton P au-dessus du bouton i */
.graph-prompt-button {
  position: fixed;
  right: 1.25rem;
  bottom: 8rem; /* clairement au-dessus du bouton i pour éviter tout chevauchement */
  z-index: 99;
}
