 /* =========================
       Variables & Reset
       ========================= */
    :root {
      --clr-bg1: #0d0d1a;
      --clr-bg2: #1a1630;
      --clr-primary: #00d8ff;
      --clr-accent: #ff00ff;
      --duration: 0.6s;
      --easing: cubic-bezier(0.23, 1, 0.32, 1);
    }
    *, *::before, *::after {
      margin: 0; padding: 0; box-sizing: border-box;
    }
    html { scroll-behavior: smooth; }
    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                   Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
                   sans-serif;
      background: linear-gradient(135deg, var(--clr-bg1), var(--clr-bg2));
      background-size: 400% 400%;
      animation: bgShift 20s ease infinite;
      color: #eee;
      overflow-x: hidden;
      line-height: 1.6;
    }
    @keyframes bgShift {
      0%   { background-position: 0% 50%; }
      50%  { background-position: 100% 50%; }
      100% { background-position: 0% 50%; }
    }

strong {
  color: var(--clr-primary);
}

    /* =========================
       HEADER & NAV
       ========================= */
    header {
      position: fixed; top: 0; left: 0;
      width: 100%; height: 64px;
      backdrop-filter: blur(12px);
      background: rgba(10,10,30,0.75);
      display: flex; align-items: center; justify-content: space-between;
      padding: 0 2rem; z-index: 1000;
    }
    .logo {
      font-size: 1.4rem; font-weight: 700; text-transform: uppercase;
      background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent));
      -webkit-background-clip: text; -webkit-text-fill-color: transparent;
      position: relative; overflow: hidden;
    }
    .logo::after {
      content: ''; position: absolute; top: 0; left: -100%;
      width: 100%; height: 100%;
      background: rgba(255,255,255,0.1);
      transform: skewX(-20deg);
      animation: shine 2.5s ease infinite;
    }
    @keyframes shine {
      0%   { left: -100%; }
      100% { left: 200%; }
    }
nav ul {
  list-style: none; /* supprime les puces */
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}

nav a {
  position: relative;
  font-weight: 600;
  color: #bbb;
  padding: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: 0.95rem;
  transition: color 0.4s ease-in-out;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent));
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Soulignement en dégradé animé */
nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent));
  transition: width 0.4s ease-in-out;
  border-radius: 1px;
}

nav a:hover {
  color: #fff;
  background-position: 100% 0;
}

nav a:hover::after {
  width: 100%;
}

    nav a:hover {
      color: #fff;
    }
    nav a:hover::after {
      width: 100%;
    }

    /* =========================
       HERO
       ========================= */
    .hero {
      position: relative;
      height: 100vh;
      display: flex; flex-direction: column;
      justify-content: center; align-items: center;
      text-align: center;
      padding: 0 1rem;
      overflow: hidden;
    }
    .hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.4);
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 4, 255, 0.079); /* couleur plus uniforme et transparente */
  backdrop-filter: blur(4px);    /* effet de flou comme ton header */
  -webkit-backdrop-filter: blur(12px); /* compatibilité Safari */
  z-index: 1;
}


.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
}

    .hero::before {
      content: '';
      position: absolute; top:0; left:0;
      width:100%; height:100%;
      background: radial-gradient(circle at 50% 50%,
                   rgba(0,216,255,0.2), transparent 70%);
      animation: pulseBg 8s ease-in-out infinite;
    }
    @keyframes pulseBg {
      0%,100% { transform: scale(1); opacity: 0.7; }
      50%      { transform: scale(1.2); opacity: 0.4; }
    }
    .hero h1 {
      font-size: clamp(2.5rem, 8vw, 4rem);
      font-weight: 700;
      opacity: 0; transform: translateY(20px);
      animation: fadeInUp var(--duration) 0.4s forwards;
    }
    .hero p {
      font-size: clamp(1rem, 3vw, 1.25rem);
      max-width: 700px;
      color: rgba(255,255,255,0.9);
      margin-bottom: 2rem;
      opacity: 0; transform: translateY(20px);
      animation: fadeInUp var(--duration) 0.6s forwards;
    }
    .hero .btn {
      background: var(--clr-primary); color: #111;
      padding: 0.75rem 2rem; border: none; border-radius: 4px;
      font-weight: 600; cursor: pointer;
      opacity: 0; transform: scale(0.9);
      animation: popIn var(--duration) 0.8s forwards;
      transition: transform 0.3s, background 0.3s;
    }
    .hero .btn:hover {
      background: var(--clr-accent); transform: scale(1.05);
    }
    @keyframes fadeInUp {
      to { opacity: 1; transform: translateY(0); }
    }
    @keyframes popIn {
      to { opacity: 1; transform: scale(1); }
    }

    /* =========================
       SECTIONS “À PROPOS” & “SUPPORTS”
       ========================= */
    section {
      padding: 6rem 2rem; text-align: center; position: relative;
    }
    #about {
      background: rgba(10,10,30,0.6);
    }
    #about h2, #about p, #about blockquote {
      opacity: 0; transform: translateY(30px);
      transition: opacity 0.8s var(--easing),
                  transform 0.8s var(--easing);
    }
    #about.visible h2,
    #about.visible p,
    #about.visible blockquote {
      opacity: 1; transform: translateY(0);
    }

    #about blockquote {
      max-width: 800px; margin: 2rem auto;
      font-style: italic; color: #ccc;
      border-left: 4px solid var(--clr-primary);
      padding-left: 1rem; text-align: left;
    }
    #about a {
      color: var(--clr-accent);
      text-decoration: underline;
    }

    #resources {
      background: rgba(10,10,30,0.8);
    }
    #resources h2, #resources .cards {
      opacity: 0; transform: translateY(30px);
      transition: opacity 0.8s var(--easing),
                  transform 0.8s var(--easing);
    }
    #resources.visible h2,
    #resources.visible .cards {
      opacity: 1; transform: translateY(0);
    }
    .cards {
      display: flex; flex-wrap: wrap;
      gap: 2rem; justify-content: center;
      margin-top: 2rem;
    }
    .card {
      background: rgba(255,255,255,0.05);
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 8px;
      padding: 2rem; width: 260px;
      box-shadow: 0 8px 20px rgba(0,0,0,0.2);
      transition: transform var(--duration),
                  background var(--duration);
    }
    .card:hover {
      transform: translateY(-10px);
      background: rgba(0,216,255,0.1);
    }
    .card h3 {
      margin-bottom: 1rem; color: var(--clr-primary);
    }
    .card p {
      margin-bottom: 1rem; color: #ccc;
    }
    .card a {
      color: var(--clr-accent); font-weight: 600;
      transition: color var(--duration);
    }
    .card a:hover {
      color: var(--clr-primary);
    }

    /* =========================
       FOOTER
       ========================= */
    footer {
      padding: 2rem; text-align: center;
      color: #aaa;
      backdrop-filter: blur(12px);
      background: rgba(10,10,30,0.7);
    }
    footer strong {
      color: var(--clr-primary);
    }

    /* =========================
       RESPONSIVE
       ========================= */
    @media (max-width:768px) {
      header { padding: 0 1rem; }
      .hero { height: auto; padding: 4rem 1rem; }
      section { padding: 4rem 1rem; }
      nav ul { gap: 1rem; }
    }
    /* =========================
   HERO
   ========================= */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--clr-bg2) 30%, var(--clr-bg1) 100%);
  position: relative;
  overflow: hidden;
}


.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%; height: 140%;
  background: radial-gradient(circle at center,
    rgba(0,216,255,0.15), transparent 70%);
  animation: pulse 12s ease-in-out infinite;
}

@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 0.8; }
  50%      { transform: scale(1.3); opacity: 0.4; }
}

.hero-content {
  text-align: center;
  color: #fff;
  z-index: 1;
}
.section-about__quote {
  max-width: 800px;
  margin: 2rem auto;
  padding-left: 1rem;
  border-left: 4px solid var(--clr-accent);
  background: rgba(255,255,255,0.03);
  color: #bbb;
  font-style: italic;
}

.section-about__text {
  max-width: 800px;
  margin: auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #ddd;
  text-align: justify;
  padding: 1rem 0;
}


.hero-content h1 {
  color: #e2d0ff !important;
  margin-bottom: 1rem;
  animation: fadeInUp var(--duration) ease both 0.4s;
}

.hero-content .subtitle {
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center; /* ajout pour le centrage */
  animation: fadeInUp var(--duration) ease both 0.6s;
}


.hero-content .btn {
  background: var(--clr-primary);
  color: #111;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transform: scale(0.9);
  opacity: 0;
  animation: popIn var(--duration) ease both 0.8s;
  transition: transform 0.3s, background 0.3s;
}

.hero-content .btn:hover {
  background: var(--clr-accent);
  transform: scale(1.05);
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
  to { opacity: 1; transform: scale(1); }
}

/* =========================
   SECTIONS
   ========================= */
section {
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  color: #eee;
}

.section-about {
  background: rgba(10,10,30,0.7);
}



.section-about blockquote {
  max-width: 800px;
  margin: 2rem auto;
  font-style: italic;
  color: #ccc;
  border-left: 4px solid var(--clr-primary);
  padding-left: 1rem;
  text-align: left;
  opacity: 0; transform: translateX(-30px);
  animation: fadeInUp var(--duration) ease both 0.6s;
}

.section-about p {
  max-width: 800px;
  margin: auto;
  line-height: 1.8;
  color: #ddd;
  opacity: 0; transform: translateY(20px);
  animation: fadeInUp var(--duration) ease both 0.8s;
}

.section-resources {
  background: linear-gradient(135deg, var(--clr-bg2), var(--clr-bg1));
}

.section-resources h2 {
  font-size: 2rem;
  color: var(--clr-accent);
  opacity: 0; transform: translateY(20px);
  animation: fadeInUp var(--duration) ease both 0.4s;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  opacity: 0; transform: translateY(30px);
  animation: fadeInUp var(--duration) ease both 0.6s;
}

.card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 2rem;
  width: 260px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  transition: transform var(--duration), background var(--duration);
}

.card:hover {
  transform: translateY(-10px);
  background: rgba(0,216,255,0.1);
}

.card h3 {
  margin-bottom: 1rem;
  color: var(--clr-primary);
}

.card p {
  margin-bottom: 1rem;
  color: #ccc;
}

.resource-button {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--clr-accent);
  transition: color 0.3s ease;
}

.resource-button:hover {
  color: var(--clr-primary);
  text-decoration: underline;
}

/* =========================
   FOOTER
   ========================= */
footer {
  padding: 2rem;
  text-align: center;
  color: #aaa;
  backdrop-filter: blur(12px);
  background: rgba(10,10,30,0.7);
}
footer strong {
  color: var(--clr-primary);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  section { padding: 4rem 1rem; }
  nav ul { gap: 1rem; }
}
.section-about {
  background: rgba(10,10,30,0.7);
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
}

.section-resources {
  background: linear-gradient(135deg, var(--clr-bg2), var(--clr-bg1));
  padding: 6rem 2rem;
  text-align: center;
}

.animated-quote {
  position: relative;
  max-width: 820px;
  margin: 2.5rem auto;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-left: 5px solid transparent;
  font-style: italic;
  font-size: 1.1rem;
  color: #ddd;
  line-height: 1.7;
  text-align: justify;
  overflow: hidden;
  animation: fadeSlideIn 0.8s ease-out forwards;
  opacity: 0;
  transform: translateX(-30px);
}

/* Animation d'entrée */
@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Bordure dégradée animée */
.animated-quote::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #00d8ff, #ff00ff);
  animation: borderGlow 4s ease-in-out infinite;
}

/* Animation du dégradé */
@keyframes borderGlow {
  0%, 100% {
    background-position: top;
  }
  50% {
    background-position: bottom;
  }
}

/* Style du lien dans la citation */
.animated-quote  {
  font-weight: 600;
  color: var(--clr-primary);
  text-decoration: none;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent));
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position 0.4s ease, text-shadow 0.4s ease;
  display: inline-block;
}

/* =========================
   SECTION TITLES
   ========================= */
/* cible aussi bien tes h2 via classe .section-title que ceux de #about et #resources */
.section-title,
.section-resources h2 {
  font-size: 48px; /* ⬆️ Taille augmentée ici */
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp var(--duration) ease both 0.4s;
}



/* petite barre animée sous chaque titre */
.section-title::after,
.section-resources h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  height: 3px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent));
  border-radius: 2px;
  animation: pulseBar 2s ease-in-out infinite;
}
.intro-image #achievement {
  width: 600px; /* ou une taille fixe */
  height: 400px;

}

.intro-image #idea{
  margin-left: -70px;
  margin-top: -70px;
  margin-bottom: -70px;
  margin-right: 100px;


  height: 400px;
  align-items: center;
}

.resource-section {
  display: flex;
  gap: 3rem;
  align-items: center;
  margin: 4rem 0;
  flex-wrap: wrap;
   margin-left: 10%;
  margin-right: 10%;
}

.resource-section.reverse {
  flex-direction: row-reverse;
}

.resource-image img {
  width: 100%;
  max-width: 340px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,216,255,0.1);
}

.resource-text {
  flex: 1;
  min-width: 280px;
  color: #ccc;
}

.resource-text h3 {
  font-size: 1.6rem;
  color: var(--clr-primary);
  margin-bottom: 1rem;
 
}

.resource-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.resource-link {
  display: inline-block;
  font-weight: 600;
  color: var(--clr-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

.resource-link:hover {
  color: var(--clr-primary);
}

.educational-disclaimer {
  position: relative;
  margin: 2rem auto;
  padding: 1.5rem 1.75rem;
  max-width: 800px;
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 4px solid var(--clr-accent);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  font-size: 1rem;
  line-height: 1.6;
  color: #ccc;
}

.educational-disclaimer::before {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 1.5rem;
  color: var(--clr-accent);
}

.educational-disclaimer strong {
  color: var(--clr-primary);
  font-weight: 700;
}

.educational-disclaimer p {
  margin: 0;
  text-align: justify;
}
.section-gallery::before,
.section-gallery::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  z-index: 0;
}
.section-gallery::before {
  width: 350px; height: 350px;
  background: var(--clr-primary);
  top: -100px; left: -100px;
}
.section-gallery::after {
  width: 250px; height: 250px;
  background: var(--clr-accent);
  bottom: -80px; right: -80px;
}

.section-gallery .section-title {
  text-align: center;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}
.section-gallery .section-subtitle {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
  color: rgba(255,255,255,0.85);
  position: relative;
  z-index: 1;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}

.gallery-item {
  position: relative;
  height: 320px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0,0,0,0.5);
  transform: translateY(0);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.gallery-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.4s ease;
  filter: brightness(0.6);
}

.gallery-info {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  width: 100%;
}

.gallery-info h3 {
  font-size: 1.4rem;
  color: var(--clr-primary);
  margin-bottom: 0.3rem;
}
.gallery-info span {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
}

.gallery-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0,0,0,0.65);
}

.gallery-item:hover .gallery-video {
  filter: brightness(1);
}

/* Lecture automatique au hover */
.gallery-item:hover video {
  autoplay: true;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  box-shadow: 0 0 100px rgba(0, 255, 255, 0);
  transition: box-shadow 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.gallery-item:hover::after {
  box-shadow: 0 0 60px rgba(0, 255, 255, 0.6);
}

/* =========================
   SECTION “Cours intensif : Simulation Quantique”
   ========================= */
#faire-sa-simulation-quantique {
  position: relative;
  padding: 6rem 2rem;
  background: linear-gradient(135deg, var(--clr-bg2), var(--clr-bg1));
  overflow: hidden;
}

#faire-sa-simulation-quantique::before {
  content: '';
  position: absolute;
  top: -40%; left: 50%;
  width: 140%; height: 140%;
  background: radial-gradient(circle at center,
              rgba(0,216,255,0.1), transparent 70%);
  transform: translateX(-50%);
  animation: pulseBg 12s ease-in-out infinite;
  z-index: 0;
}

@keyframes pulseBg {
  0%,100% { transform: translateX(-50%) scale(1); opacity: 0.8; }
  50%      { transform: translateX(-50%) scale(1.3); opacity: 0.4; }
}

#faire-sa-simulation-quantique .course-wrapper {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  color: #eee;
}

#faire-sa-simulation-quantique .section-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  animation: fadeInUp var(--duration) ease both 0.4s;
}

#faire-sa-simulation-quantique .course-intro {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  color: rgba(255,255,255,0.9);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp var(--duration) ease both 0.6s;
}

#faire-sa-simulation-quantique .course-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp var(--duration) ease both 0.8s;
}

#faire-sa-simulation-quantique .step {
  background: rgba(255,255,255,0.05);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform var(--duration), background var(--duration);
}

#faire-sa-simulation-quantique .step:hover {
  transform: translateY(-8px);
  background: rgba(0,216,255,0.1);
}

#faire-sa-simulation-quantique .step h3 {
  font-size: 1.4rem;
  color: var(--clr-primary);
  margin-bottom: 0.5rem;
}

#faire-sa-simulation-quantique .step p {
  color: #ccc;
  line-height: 1.6;
}

#faire-sa-simulation-quantique .section-btn {
  padding: 0.8rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #111;
  background: var(--clr-primary);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.9);
  animation: popIn var(--duration) ease both 1s;
  box-shadow: 0 0 20px rgba(0,216,255,0.5);
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

#faire-sa-simulation-quantique .section-btn:hover {
  background: var(--clr-accent);
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255,0,255,0.6);
}
/* ============================
   Bloc de code stylisé Python
   ============================ */
.col-code {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 1.5rem 2rem;
  margin: 2rem auto;
  max-width: 840px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
  overflow-x: auto;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e0e0e0;
}

/* Accent latéral */
.col-code::before {
  content: "";
  position: absolute;
  left: 16px;
  width: 4px;
  height: calc(100% - 32px);
  background: linear-gradient(180deg, var(--clr-primary), var(--clr-accent));
  border-radius: 2px;
  opacity: 0.8;
}

/* Syntax highlighting maison */
.language-python .keyword     { color: #00d8ff; font-weight: bold; }
.language-python .function    { color: #ff00cc; }
.language-python .class-name  { color: #ffd700; font-weight: bold; }
.language-python .comment     { color: #888; font-style: italic; }
.language-python .string      { color: #a0ffb3; }
.language-python .number      { color: #ffcc99; }
.language-python .operator    { color: #ff99ff; }
.language-python .builtin     { color: #66ccff; }

/* Scrollbar stylée */
.col-code::-webkit-scrollbar {
  height: 8px;
}
.col-code::-webkit-scrollbar-thumb {
  background: var(--clr-accent);
  border-radius: 4px;
}

/* ================================
   Souligner automatiquement tous les H2
   ================================ */
h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
  padding-bottom: 0.25rem;
}

.language-python{
  background: none!important;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--clr-primary) 0%,
    var(--clr-accent) 100%
  );
  border-radius: 2px;
}

code {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}


/* Sommaire stylé façon livre */
.sommaire-section {
  margin: 4rem auto;
  max-width: 800px;
  padding: 2rem;
  background: rgba(10, 10, 30, 0.8);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.sommaire-section .section-title {
  margin-bottom: 1.5rem;
  color: var(--clr-primary);
  font-weight: 700;
}

/* On supprime tout marquage de type liste */
.sommaire,
.sommaire ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Pas de chiffres ou symboles avant les items */
.sommaire li::before {
  content: none;
}

.sommaire > li {
  margin-bottom: 1rem;
}

/* Titres principaux en bleu */
.sommaire > li > a {
  color: var(--clr-primary);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.sommaire > li > a:hover {
  color: #66ccff;
}

/* Sous-titres en rose */
.sommaire ul li {
  margin: 0.4rem 0;
}

.sommaire ul li > a {
  color: var(--clr-accent);
  font-weight: 400;
  font-size: 0.95em;
  text-decoration: none;
  transition: color 0.3s ease;
}

.sommaire ul li > a:hover {
  color: #ff66cc;
}

  
  
</style>