/* ---------- Mise en page ---------- */
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #dbe6f6, #c5796d);
  color: #333;
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.container {
  max-width: 1000px;
  width: 95%;
  text-align: center;
}

/* ---------- Titres ---------- */
h1 {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(90deg, #1a3c72, #4b79a1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 30px;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.3);
}

h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1a3c72;
  margin: 35px 0 20px;
  display: inline-block;
  border-bottom: 3px solid #4b79a1;
  padding-bottom: 6px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

/* ---------- Carte ---------- */
#carte-franco {
  width: 100%;
  max-width: 850px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  margin-bottom: 40px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#carte-franco:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

/* ---------- Tableau ---------- */
.table-wrapper {
  overflow-x: auto;
  display: flex;
  justify-content: center; /* centre le tableau */
}

table {
  width: 100%;
  max-width: 900px;
  border-collapse: collapse;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

table:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

thead {
  background: linear-gradient(90deg, #4b79a1, #283e51);
  color: #fff;
}

th, td {
  padding: 14px 18px;
  text-align: center;
  font-size: 1rem;
}

th {
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  transition: background 0.3s ease, transform 0.2s ease;
}

th:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.05);
}

tbody tr:nth-child(even) {
  background: #f5f7fa;
}

tbody tr:hover {
  background: #e1f0ff;
  transform: scale(1.01);
}

/* ---------- BD style Jacquot ---------- */
.bd-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 30px 0;
}

.jacquot {
  width: 130px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.speech-bubble {
  background: #fffde7;
  border: 3px solid #333;
  border-radius: 20px;
  padding: 14px 18px;
  position: relative;
  max-width: 400px;
  font-weight: 600;
  box-shadow: 4px 6px 12px rgba(0,0,0,0.25);
  font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.speech-bubble:hover {
  transform: translateY(-2px);
  box-shadow: 6px 8px 16px rgba(0,0,0,0.3);
}

/* Flèche à gauche pour Jacquot */
.speech-bubble.left::after {
  content: "";
  position: absolute;
  top: 20px;
  left: -20px;
  border-width: 10px;
  border-style: solid;
  border-color: transparent #fffde7 transparent transparent;
}

/* ---------- Adapté aux écrans mobiles ---------- */
@media (max-width: 700px) {
  .bd-block {
    flex-direction: column;
    align-items: center;
  }

  .speech-bubble {
    max-width: 90%;
    text-align: center;
  }

  .speech-bubble.left::after {
    left: 50%;
    top: -15px;
    transform: translateX(-50%);
    border-width: 15px 10px 0 10px;
    border-color: #fffde7 transparent transparent transparent;
  }

  th, td {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }
}

#home-button {
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 1000;
  background: #ff7b00;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0,0,0,0.4);
  transition: background 0.3s, transform 0.2s;
}