/* ====== BASE ====== */
/* Initialisation des marges de tous les élements html*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

 @import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;500;700&family=Syne:wght@400;700&display=swap');

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

/* Définition des variables du documents*/
: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);
  /* Sigmoïde*/
  --bg: #0a0a0f;
  --surface: #12121a;
  --accent: #00e5ff;
  --accent2: #ff6b6b;
  --grid: rgba(255, 255, 255, 0.05);
  --text: #e0e0e0;
  --muted: #666;
  --sigma-surface: #1f2937;
  --sigma-border: rgba(148, 163, 184, 0.35);
  --sigma-muted: #94a3b8;
  --sigma-accent: #60a5fa;
  --sigma-accent2: #f59e0b;
  --sigma-grid: rgba(148, 163, 184, 0.16);
  --sigma-axis: rgba(148, 163, 184, 0.5);
  --sigma-tip-bg: #0f172a;
  --sigma-tip-border: rgba(148, 163, 184, 0.4);
}

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

/*SOmmaire*/
.containerNav {
  background: linear-gradient(180deg, #2a82fc 0%, #360143 100%);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 40px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 20px 20px rgba(9, 31, 233, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  max-width: 1200px;
  width: 100%;
}

.titreNav {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 30px;
  text-shadow:
    0 0 20px rgba(9, 80, 233, 0.8),
    0 0 40px rgba(9, 80, 233, 0.4);
  letter-spacing: 1px;
}

.navigationPage {
  margin: 20px 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.navigationPage a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 15px 30px;
  color: var(--white);
  background: rgba(9, 31, 233, 0.3);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 8px 32px 0 var(--glow-blue),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.5px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.navigationPage a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(255, 255, 255, 0.3) 0%,
      transparent 70%);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s ease,
    height 0.6s ease;
}

.navigationPage a:hover::before {
  width: 300px;
  height: 300px;
}

.navigationPage a:hover {
  background: var(--hover-blue);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transform: translateY(-5px) scale(1.05);
  box-shadow:
    0 15px 45px rgba(9, 80, 233, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.navigationPage a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--white), transparent);
  transform: translateX(-50%);
  transition: width 0.4s ease;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.navigationPage a:hover::after {
  width: 80%;
}

.navigationPage a:active {
  transform: translateY(-2px) scale(1.02);
}

/* navigation*/

.menu {
  background-color: #2222223a;
  color: #346ee9;
  padding: 0px 20px;
  display: flex;
  align-items: center;
  justify-content: end;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.menu-toggle {
  font-size: 1.8em;
  cursor: pointer;
}

.sidebar {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  background-color: #614ae7f5;
  padding-top: 70px;
  transition: left 0.4s ease;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1001;
}

.sidebar a {
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  font-size: 1.1em;
  transition: background 0.3s;
}

.sidebar a:hover {
  background-color: #00bcd4;
}

.menu.active+.sidebar {
  left: 0;
}

.sidebar .icone {
  display: flex;
  justify-content: center;
}

/* Pour le contenu principal */
.content {
  margin-top: 70px;
  padding: 20px;
}

/* info bulle au survol*/
.collapsible-section h2 {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.collapsible-section h2::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #7374df;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  margin-bottom: 5px;
}

.collapsible-section h2:hover::after {
  opacity: 1;
}

.section-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
}

.section-content .inner {
  overflow: hidden;
}

.collapsible-section.open .section-content {
  grid-template-rows: 1fr;
}

.toggle-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
  transform: rotate(0deg);
}

.collapsible-section.open .toggle-arrow {
  transform: rotate(180deg);
}

/*------------------------------------------------------*/

header {
  background: linear-gradient(180deg, #360143, #2a81fc);
  color: white;
  padding: 40px 20px;
  text-align: center;
  box-shadow: 0 5px 20px rgb(54, 66, 109);
}

header h1 {
  margin: 0;
  font-size: 2.4rem;
}

header p {
  max-width: 800px;
  margin: 15px auto 0;
  font-size: 1.1rem;
}

main {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

section {
  line-height: 1.7;
  /* Interligne confortable */
  margin-bottom: 1em;
  /* Espace entre les paragraphes */

  max-width: 1200px;
  background-color: var(--background-color);
  color: var(--text-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  /*Espace de la colonne centrale pour plus de visibilité*/
  margin: 30px auto;
  /*centre horizontalement dans son conteneur.*/
  padding: 10px 20px 20px 20px;
  /*marge interne de 40 en haut et bas et 20 sur les cotés*/
}

h2 {
  margin-bottom: 30px;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--titre-color);
  border-left: 6px solid var(--titre-color);
  padding-left: 10px;
}

.resume {
  font-size: clamp(1.2rem, 2.5vw, 1.3rem);
  font-style: italic;
  font-weight: bold;
}

.illustration {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.illustration img {
  width: 100%;
  height: 100%;
}

p {
  margin-bottom: 15px;
}

/* ====== CARTES ====== */



.image {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image img {
  width: 60%;
  height: 100%;
}

.axes {
  display: flex;
  align-items: center;
  justify-content: center;
}

.containerAxe {
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px;
  border-radius: 10px;
  border: 2px solid rgba(128, 128, 128, 0.247);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.cardImage {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: clamp(0.7rem, 2vw + 0.5rem, 1rem);
  background: linear-gradient(90deg, #9293f0, rgb(126, 125, 194));
  border-radius: 10px 10px 0 0;
  border: 2px solid rgba(128, 128, 128, 0.247);
}

.cardImage h3 {
  gap: 8px;
  display: flex;
  align-items: center;
}

h3 img.icon {
  width: 30px;
  height: 30px;
}

.cardContent {
  width: 90%;
  border-radius: 0 0 10px 10px;
  padding: 15px;
}

.cardContent .sousTitre {
  font-weight: bold;
  padding: 5px;
}

.cardContent .texte {
  padding: 5px;
}

.centrage {
  display: flex;
  justify-content: center;
}

.cardContent .exemple {
  background-color: #eaeaff;
  border-radius: 10px 10px 10px 10px;
  padding: 10px;
  width: 100%;
}

.containerAxe:hover {
  transform: translateY(-7px);
  box-shadow: 0 5px 25px rgba(120, 142, 241, 0.644);
  border-color: #a564e2;
}

.containerAxeType {
  width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px;
  border-radius: 10px;
  border: 2px solid rgba(128, 128, 128, 0.247);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.cardImageType {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: clamp(0.7rem, 2vw + 0.5rem, 1rem);
  background: linear-gradient(90deg, #92cdf0, rgb(125, 161, 194));
  border-radius: 10px 10px 0 0;
  border: 2px solid #649ae2;
}

.containerAxeType:hover {
  border-color: #649ae2;
  transform: translateY(-7px);
}

.cardImageType h3 {
  gap: 8px;
  display: flex;
  align-items: center;
}

/* ====== SCHÉMAS ====== */
.schema {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.box {
  background-color: #e9eff8;
  border: 2px solid #4b75b6;
  border-radius: 8px;
  padding: 15px 20px;
  min-width: 180px;
  text-align: center;
  font-weight: bold;
}

.arrow {
  font-size: 2rem;
  color: #4b75b6;
}

/* ====== LISTES ====== */
.collapsible-section ul {
  margin-top: 10px;
  margin-bottom: 20px;
  margin-left: 30px;
}

.collapsible-section li {
  margin-bottom: 8px;
}

.collapsible-section ol {
  margin-top: 10px;
  margin-bottom: 20px;
  margin-left: 30px;
}









/* ====== Sigmoïde ====== */

h1 {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
}

.formula {
  width: 100%;
  max-width: 560px;
  margin: 0.25rem auto 1rem auto;
  text-align: center;
  font-size: 0.9rem;
  color: var(--sigma-muted);
  letter-spacing: 0.05em;
}

.formula span {
  color: var(--sigma-accent2);
}

.sigma-title {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.containerSigma {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 1.6fr) minmax(220px, 1fr);
  gap: 1.25rem;
  align-items: start;
  padding: 1.5rem;
  
}
.titreSigma{
  display: block;
  width: 100%;
}

.sigmaGraph {
  display: flex;
  flex-direction: column;
  align-items: center;
}

canvas {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  cursor: crosshair;
  background: var(--sigma-surface);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22);
  border: 1px solid var(--sigma-border);
  border-radius: 12px;
}

.paraSigma {
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--text-color);
  line-height: 1.7;
}

.controls {
  display: flex;
  width: 100%;
  max-width: 560px;
  margin: 1rem auto 0 auto;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

label {
  font-size: 0.7rem;
  color: var(--sigma-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

input[type=range] {
  
  width: 160px;
  height: 4px;
  background: rgba(148, 163, 184, 0.35);
  border-radius: 2px;
  outline: none;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--sigma-accent);
  cursor: pointer;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.45);
}

.val {
  font-size: 0.85rem;
  color: var(--sigma-accent);
  min-width: 40px;
}

.tooltip {
  position: fixed;
  background: var(--sigma-tip-bg);
  border: 1px solid var(--sigma-tip-border);
  border-radius: 6px;
  padding: 0.4rem 0.7rem;
  font-size: 0.75rem;
  color: #e2e8f0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 10;
}

.tooltip span {
  color: var(--sigma-accent2);
}

/* ====== Fin Sigmoïde ====== */


.containerImageNeuronne{
  display: flex;
  align-items: center;
  justify-content: center;
}

.imageNeurone{
  margin :0 20px;
  width: auto;
  height: auto;
  transition: all 0.3s ease;
} 

.imageNeurone img{
  max-width: 200px;
  max-height: 250px;
}


.imageNeurone:hover{
transform: scale(1.2);
}

























/*---------------------------------------------*/
/* 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-top: 0px;
  margin-bottom: 20px;
  font-weight: 600;
}

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

.footer-links {
  list-style: none;
  padding: 0px;
  margin: 0px;
}

.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,
.footer-bottom div {
  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);
}

/* pour que les carte ne se déforme pas*/
@media screen and (max-width: 1120px) {
  .axes {
    flex-direction: column;
  }

  .containerAxe {
    width: 90%;
    max-width: 300px;
    margin: 15px auto;
  }

  .containerAxeType {
    width: 90%;
    max-width: 300px;
    margin: 15px auto;
  }

  .containerNav {
    padding: 30px 20px;
  }

  .titreNav {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .navigationPage {
    gap: 10px;
  }

  .navigationPage a {
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* Tablettes portrait et grands mobiles (max 880px) */
@media screen and (max-width: 880px) {
  .containerSigma {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  footer {
    padding: 0px 0 20px;
    padding-top: 20px;
  }
}

