:root {
    --text-color: #333;
    --background-color: rgba(215, 210, 255, 0.151);
    --white: #ffffff;
    --shadow: 0 5px 25px rgba(171, 174, 185, 0.356);
    --titre-color: rgb(141, 49, 184);
    --primary-blue: rgba(9, 31, 233, 0.25);
    --hover-blue: rgba(9, 80, 233, 0.35);
    --glow-blue: rgba(9, 80, 233, 0.2);
    --panel-border: rgba(42, 129, 252, 0.18);
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    color: var(--text-color);
    background-color: var(--white);
}

.page-layout {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 24px;
    display: grid;
    grid-template-columns: minmax(0, 620px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    box-sizing: border-box;
}

.container {
    background-color: var(--white);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--panel-border);
    box-shadow: var(--shadow);
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.explanation-column {
    background-color: var(--background-color);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--panel-border);
    box-shadow: var(--shadow);
    text-align: left;
    line-height: 1.55;
}

.explanation-column h2,
.explanation-column h3 {
    color: var(--titre-color);
    margin-top: 0;
}

.explanation-column h3 {
    margin-top: 22px;
}

.explanation-column ul {
    margin: 8px 0 14px 22px;
    padding: 0;
}

.explanation-column li {
    margin-bottom: 8px;
}

.formula {
    font-family: 'Courier New', monospace;
    background: #eaeaff;
    border-left: 4px solid #9293f0;
    padding: 10px;
    border-radius: 8px;
    display: inline-block;
}

h1 {
    color: var(--titre-color);
    margin-bottom: 20px;
}

h2,
h3 {
    color: var(--titre-color);
    border-bottom: 1px solid rgba(141, 49, 184, 0.2);
    padding-bottom: 10px;
    margin-top: 30px;
}

.controls,
.results,
.equation {
    margin-bottom: 20px;
    text-align: left;
    padding: 15px;
    background-color: var(--background-color);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    margin-top: 15px;
}

.slider-group,
.checkbox-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #444;
}

input[type="range"] {
    width: 100%;
    height: 8px;
    background: rgba(9, 31, 233, 0.2);
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2a81fc;
    cursor: grab;
    box-shadow: 0 0 0 2px rgba(9, 31, 233, 0.15);
}

input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
}

#probability-value {
    font-size: 1.8em;
    font-weight: bold;
    color: #2a81fc;
}

.progress-bar-container {
    width: 100%;
    background-color: #dfe6f8;
    border-radius: 6px;
    margin-top: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 25px;
    width: 0%;
    background-color: #2a82fc;
    border-radius: 6px;
    text-align: center;
    line-height: 25px;
    color: white;
    transition: width 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

#decision {
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 20px;
}

.message.success {
    color: #28a745;
}

.message.error {
    color: #dc3545;
}

.equation p {
    background-color: #eaeaff;
    border-left: 4px solid #9293f0;
    padding: 10px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
}

/*---------------------------------------------*/
/* Footer*/
/*---------------------------------------------*/

footer {
  background: linear-gradient(135deg, #33405e 0%, #231549 100%);
  color: var(--white);
  padding: 40px 0 20px;
  margin-top: 40px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 20px;
}

.footer-section h3 {
  color: #4cc9f0;
  font-size: 1.2em;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-section p {
  line-height: 1.6;
  color: #b8c1ec;
  margin-bottom: 15px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #b8c1ec;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #4cc9f0;
  transform: translateX(5px);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.footer-logo-text {
  font-size: 1.5em;
  font-weight: bold;
  color: #4cc9f0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  color: #b8c1ec;
  font-size: 0.9em;
  margin: 5px;
}

.footer-credits {
  margin-top: 10px;
  font-size: 0.85em;
  color: #8892b6;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(76, 201, 240, 0.1);
  border-radius: 50%;
  color: #4cc9f0;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.2em;
}

.social-link:hover {
  background: #4cc9f0;
  color: #1a1a2e;
  transform: translateY(-3px);
}


@media (max-width: 1000px) {
    .page-layout {
        grid-template-columns: 1fr;
    }
}


/* Tablettes portrait et grands mobiles (max 768px) */
@media screen and (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  footer {
    padding: 40px 0 20px;
  }
}