/* ================================
   COULEURS MUTUELLE DE POITIERS
   ================================ */
:root {
  --mp-blue: #0073b5;
  --mp-green: #7bc043;
  --sidebar-bg: #0a5e99;
  --sidebar-bg-light: #0f78c4;
  --sidebar-hover: #7bc043;
  --text-light: #ffffff;
}

/* ================================
   SIDEBAR (ReadTheDocs)
   ================================ */
.wy-side-nav-search, .wy-nav-side {
  background: var(--sidebar-bg) !important;
  color: var(--text-light);
  border-right: 4px solid var(--mp-green);
}

/* Lien niveau 1 */
.wy-menu-vertical li > a {
  color: #dfefff !important;
  padding: 12px 20px;
  font-weight: 500;
  transition: 0.2s ease;
}

/* Hover */
.wy-menu-vertical li > a:hover,
.wy-menu-vertical li.current > a {
  background-color: var(--sidebar-hover) !important;
  color: #ffffff !important;
  transform: translateX(4px);
}

/* Titres de catégorie */
.wy-menu-vertical header {
  color: #ffffff;
  padding-left: 18px;
  opacity: 0.8;
  font-size: 0.85rem;
  margin-top: 18px;
  letter-spacing: 1px;
}

/* Bord arrondi léger */
.wy-nav-side {
  border-radius: 0 10px 10px 0;
}

/* ================================
   LIENS CONTENU
   ================================ */
a {
  color: var(--mp-blue);
  transition: 0.2s;
}

a:hover {
  color: var(--mp-green);
}

/* ================================
   ANIMATIONS FLUIDES (compatibles)
   ================================ */

/* Animation d’apparition */
.wy-nav-content {
  animation: fadeIn 0.7s ease forwards;
  opacity: 0;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Titres animés */
.wy-nav-content h1,
.wy-nav-content h2 {
  position: relative;
  animation: slideIn 0.6s ease forwards;
  opacity: 0;
}

@keyframes slideIn {
  from { opacity: 0; left: -10px; }
  to   { opacity: 1; left: 0; }
}

/* ================================
   FAUX EFFET FLUIDE (possible)
   ================================ */

/* Ombre légère pour effet moderne */
.wy-nav-content-wrap {
  background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 40%, #f0f0f0 100%);
}

/* Fluid waves (discrets, compatibles ReadTheDocs) */
.wy-nav-side::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  top: -80px;
  left: -80px;
  background: radial-gradient(circle at 30% 30%, var(--sidebar-bg-light), transparent 60%);
  opacity: 0.25;
  animation: floatWaves 8s ease-in-out infinite alternate;
}

@keyframes floatWaves {
  0%   { transform: translate(0,0); }
  100% { transform: translate(20px,20px); }
}

/* ----- Fond animé liquide sur la page d’accueil ----- */
.home-background {
  position: fixed;
  inset: 0;
  background: linear-gradient(120deg, #1E9AD5, #005A8B);
  overflow: hidden;
  z-index: -1;
}

.home-background::before,
.home-background::after {
  content: "";
  position: absolute;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(255,255,255,0.25) 0%, transparent 70%);
  animation: Liquide 12s infinite ease-in-out;
}

.home-background::after {
  animation-duration: 16s;
}

@keyframes Liquide {
  0%   { transform: translate(-10%, -10%); }
  50%  { transform: translate(10%, 10%); }
  100% { transform: translate(-10%, -10%); }
}

/* ---- HERO SECTION ---- */
.home-hero {
  text-align: center;
  padding: 60px 20px;
  color: white;
  background: linear-gradient(135deg, #0073B5, #1da0dd);
  border-radius: 20px;
  margin-bottom: 40px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.home-hero h1 {
  font-size: 2.6rem;
  margin-bottom: 10px;
}

.home-hero h2 {
  font-size: 1.6rem;
  font-weight: 400;
  opacity: 0.9;
}

/* ---- SECTION BLOCKS ---- */
.home-section {
  background: white;
  padding: 30px;
  border-radius: 18px;
  margin-bottom: 25px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.home-section h3 {
  font-size: 1.6rem;
  color: #0073B5;
  margin-bottom: 12px;
}

.home-section ul {
  margin: 0;
  padding-left: 20px;
  font-size: 1.15rem;
}

.home-section p {
  font-size: 1.15rem;
  line-height: 1.65;
}

/* Élargir le contenu principal */
.wy-nav-content {
  max-width: 1200px !important;
}

/* Réduit la grande marge vide à gauche */
.wy-nav-content-wrap {
  margin-left: 0 !important;
}

/* Ajuste la barre latérale à gauche */
.wy-nav-side {
  width: 240px !important;
}

.wy-side-nav-search {
  width: 240px !important;
}

/* Lisibilité du texte */
.wy-nav-content p {
  font-size: 17px;
  line-height: 1.7;
}

/* Style des titres */
.wy-nav-content h1,
.wy-nav-content h2,
.wy-nav-content h3 {
  margin-top: 25px;
  font-weight: 600;
}

/* Fond propre + padding */
.wy-nav-content {
    padding: 40px !important;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.08);
}

/* Lisibilité du texte */
.wy-nav-content p {
    font-size: 17px;
    line-height: 1.7;
}

/* Style des titres */
.wy-nav-content h1,
.wy-nav-content h2,
.wy-nav-content h3 {
    margin-top: 25px;
    font-weight: 600;
}

/* Largeur de la sidebar */
.wy-nav-side {
    width: 300px; /* Ajuste la valeur selon ton besoin */
}

/* Décalage du contenu */
.wy-nav-content-wrap {
    margin-left: 300px !important;
}












/* --- Fond texturé sur toute la page --- */
body {
    background-image: url("../images/texture.png"); /* mets ton image ici */
    background-size: cover;       /* ou "repeat" si c'est une petite texture */
    background-repeat: repeat;
    background-attachment: fixed; /* effet de fond fixe */
}

/* --- Rendre le contenu un peu translucide pour laisser voir la texture --- */
.wy-nav-content {
    background: rgba(255, 255, 255, 0.92);
    padding: 2em;
    border-radius: 6px;
}

/* --- Ajustement pour le conteneur --- */
.wy-body-for-nav {
    background: transparent;
}
