/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Montserrat:wght@400;700&family=Playfair+Display:wght@400;700&display=swap');


/* ---- Layout ---- */
body {
  font-family: 'Lato', sans-serif;
  margin: 0;
  background: #50a7e2;
  color: #333;
}

h2
    {color:#11345c;
      text-align: center;
    }

    #collection-title 
        {color:#4a90e2;
      text-align: center;
    }

    .count
    { color:#4a90e2;
      text-align: right;}

/* Grille des livres */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px;
}
.book-card {
  background: white;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
  border : 1px solid #012b54;
}

.book-card a {
  margin-top: 10px;
  padding: 8px 12px;
  background: #4a90e2;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
}
.book-card img {
  max-width: 100%;
  border-radius: 5px;
}
.book-card h3 {
  margin: 10px 0 5px;
}
.book-card .resume {
  font-size: 0.85em;
  color: #444;
  margin: 10px 0;
  max-height: 50px;
  overflow: hidden;
}
.book-card button {
  margin-top: 10px;
  padding: 8px 12px;
  background: #4a90e2;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}



.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  cursor: pointer;
}
.close:hover {
  color: black;
}

    .container {
      max-width: 900px;
      margin: 40px auto;
      padding: 20px;
      background: white;
      border-radius: 10px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .container h2 {
      text-align: center;
      margin-bottom: 20px;
      color: #4a90e2;
    }


.container {
  display: flex;              /* Mets le texte + image sur la même ligne */
  align-items: center;        /* Aligne verticalement au centre */
  justify-content: space-between; /* Espace entre les deux */
  gap: 20px;                  /* Espace entre texte et image */
}

.text {
  flex: 1; /* Le texte prend toute la largeur dispo */
}

.image img {
  max-width: 300px;   /* Taille max de l'image */
  height: auto;
  border-radius: 10px; /* optionnel : coins arrondis */
}

.container2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 colonnes égales */
  gap: 20px; /* espace entre les colonnes */
  margin: 20px;
}

.card {
  text-align: center;
  background: #f9f9f9;   /* optionnel : fond doux */
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1); /* petit effet sympa */
}

.card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.card2 h3 {
    text-align: center;
    color: #4a90e2;
}
.card2 h2 {
    text-align: center;
    color: #4a90e2;
}

.card2 {
  text-align: justify;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 6px #012b54; 
  border : 1px solid #012b54;
}

.card2 img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.card5 {
  text-align: justify;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 6px #012b54; 
  border : 1px solid #012b54;
}

.card5 img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

@media (max-width: 900px) {
  .container {
    grid-template-columns: 1fr 1fr; /* 2 colonnes */
  }
}

@media (max-width: 600px) {
  .container {
    grid-template-columns: 1fr; /* 1 seule colonne */
  }
}

.image-container {
  position: relative;
  display: inline-block; /* ou block si tu veux pleine largeur */
  width: 100%; /* prend toute la largeur dispo */
}

.image-container img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px; /* optionnel */
}

.overlay-text {
  position: absolute;
  top: 50%;   /* milieu vertical */
  left: 50%;  /* milieu horizontal */
  transform: translate(-50%, -50%); /* centre parfaitement */
  color: #4a90e2;;
  text-align: center;
  padding: 20px;
  border-radius: 10px;
  font-size:40px;
}

.body button {
  margin-top: 10px;
  padding: 8px 12px;
  background: #333;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.body button:hover {
  background: #555;
}

.privacy-policy {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  line-height: 1.6;
  font-family: Arial, sans-serif;
  text-align: justify;
}

.privacy-policy h1, 
.privacy-policy h2, 
.privacy-policy h3 {
  color: #4a90e2;
  margin-top: 20px;
  text-align: center;
}

.privacy-policy a {
  color: #4a90e2;
  text-decoration: none;
}

.privacy-policy a:hover {
  text-decoration: underline;
}

.logicotheque {
  max-width: 990px;
  margin: 30px auto;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  text-align: center; 
  border : 2px solid #4a90e2;
  border-radius:10px;
}

.logicotheque h2 {
  color: #4a90e2;
  margin-bottom: 15px;
  text-align: center; 
}

.logicotheque p {
  margin-bottom: 15px;
  line-height: 1.5;
}

.logicotheque-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

#logiciel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin: 20px;
}

.logiciel-card {
  width: 250px; /* ou la taille que tu veux pour tes cartes */
  padding: 10px;
  border: 1px solid #4a90e2;
  border-radius: 8px;
  text-align: center;
  background: #fff;
}

.logiciel-img {
  width: 100%;      /* l’image prend toute la largeur de la carte */
  height: 150px;    /* hauteur fixe pour uniformiser */
  object-fit: cover; /* recadre sans déformer */
  border-radius: 5px;
}



.logiciel-card h3 {
  margin-bottom: 10px;
  color: #4a90e2;
}

.logiciel-card p {
  margin: 5px 0;
}



      button { background-color: #4a90e2;   color: white; padding: 10px 20px; cursor: pointer; font-size: 16px;   border-radius: 5px; }
        .video-container { 
            display: grid; 
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
            gap: 20px; 
            justify-content: center; 
            margin-top: 20px; 
        }
        .video {
            border: 2px solid #4a90e2; 
            padding: 10px; 
            background-color: #f9f9f9; 
            border-radius: 8px; 
            transition: transform 0.3s;
        }
        .video:hover { transform: scale(1.05); }
        .video img {
            width: 100%;
            border-radius: 5px;
        }
        .video p {
            font-weight: bold;
            font-size: 14px;
            margin-top: 10px;
        }
        #loadMore { 
            display: none;  
            padding: 10px 20px; 
            font-size: 16px; 
            cursor: pointer;
            background-color: #4a90e2; 
            color: white; 
            border: none; 
            border-radius: 5px;
      margin:20px auto;
        }
        #loadMore:hover { background-color: #0056b3; }

        

/* Bouton fermer */
.modal-content .close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 28px;
  font-weight: bold;
  color: white;
  cursor: pointer;
}

/* Player YouTube responsive */
#modalPlayer iframe {
  width: 80vw;       
  height: 45vw;      
  max-width: 960px; 
  max-height: 540px;
  border-radius: 8px;
}

.modal {
  display: none;
  position: fixed;
  top:0; left:0;
  width:100%; height:100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  display: none; 
  position: fixed;
  z-index: 1000;
}
.modal-content {
  background: white;
  padding: 20px;
  border-radius: 12px;
  max-width: 960px;
  width: 90%;
border: 5px solid #4a90e2;
border-radius:10px;
padding-left:10px;
  position: relative;
  padding: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-content a {
  margin-top: 10px;
  padding: 8px 12px;
  background: #4a90e2;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
}

.modal-content img {
  max-width: 150px;
  float: right;
  margin-left: 15px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}


.modal2 {
  display: none; 
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content2 {
  background: white;
  padding: 20px;
  border-radius: 12px;
  max-width: 700px;
  width: 90%;
  max-height: 90%;         /* empêche le débordement vertical */
  overflow-y: auto;        /* ajoute un scroll interne si trop grand */
  border: 5px solid #4a90e2;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  position: relative;
}


.modal-content2 a {
  margin-top: 10px;
  padding: 8px 12px;
  background: #4a90e2;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
}

.modal-content2 img {
  max-width: 150px;
  float: right;
  margin-left: 15px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}


.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px; /* Augmente la taille */
    font-weight: bold;
    cursor: pointer;
    color: #333; /* Couleur plus visible */
    background: #fff;
    padding: 5px;
    border-radius: 50%;
    transition: 0.3s;
}

.close:hover {
    background: #ff4d4d; /* Effet rouge au survol */
    color: white;
}


iframe {
    width: 100%;
    height: 450px;
    border-radius: 10px;
}

.explication
{      max-width: 900px;
      margin: 40px auto;
      padding: 20px;
      background: white;
      border-radius: 10px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .explication h2
    {color:#4a90e2;
      text-align: center;
    }

    .explication2
{     width: 900px;
      margin: 40px auto;
      padding: 20px;
      background: white;
      border-radius: 10px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);

    }

    .explication2 h2
    {color:#4a90e2;
      text-align: center;
    }


  #results {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 15px;
      margin-top: 20px;
    }

    /* Carte musique */
    .track {
      border: 2px solid #007BFF; /* bleu */
      border-radius: 10px;
      padding: 10px;
      background-color: #f0f8ff; /* bleu très clair */
      box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
      text-align: center;
      transition: transform 0.2s ease;
    }

    .track:hover {
      transform: scale(1.03);
    }

    .track img {
      width: 100%;
      height: 150px;
      object-fit: cover;
      border-radius: 6px;
      margin-bottom: 8px;
    }

    .track h3 {
      font-size: 16px;
      margin: 5px 0;
      color: #0056b3;
    }

    .track p {
      margin: 4px 0;
    }

    .track audio {
      width: 100%;
      margin-top: 8px;
    }

    #loadMore {
      display: none; /* caché au départ */
      margin: 20px auto;
      padding: 10px 20px;
      border: none;
      background-color: #007BFF;
      color: white;
      border-radius: 5px;
      cursor: pointer;
      font-size: 16px;
    }

    #loadMore:hover {
      background-color: #0056b3;
    }

        .audiobook {
      max-width: 500px;
      margin: auto;
      background: white;
      border-radius: 12px;
      box-shadow: 0 4px 8px rgba(0,0,0,0.2);
      padding: 20px;
    }
    .audiobook img {
      max-width: 100%;
      border-radius: 8px;
      margin-bottom: 15px;
    }
    .audiobook h2 {
      margin: 0 0 10px;
    }
    .audiobook p {
      margin: 5px 0;
    }
    audio {
      width: 100%;
      margin-top: 10px;
    }



        /* Grille des cartes */
    .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin: 20px;
    }
    .card {
  width: 250px; 
  padding: 10px;
  border: 1px solid #4a90e2;
  border-radius: 8px;
  text-align: center;
  background: #fff;
    }

    .card img {
  width: 100%;      
  height: 150px;    
  object-fit: cover; 
  border-radius: 5px;
    }
    .card h3 {
      margin: 10px 0;
      font-size: 1.1em;
    }
    .btn {
      display: inline-block;
      padding: 8px 12px;
      margin-top: 10px;
      background: #007BFF;
      color: white;
      border-radius: 6px;
      cursor: pointer;
      text-decoration: none;
    }
    .btn:hover {
      background: #0056b3;
    }


.filters input {
  flex: 1;
  padding: 8px;
  margin-right: 10px;
  border: 1px solid #4a90e2;
  border-radius: 6px;
}

.filters select {
  padding: 8px;
  border: 1px solid #4a90e2;
  border-radius: 6px;
}

.filters {
  text-align: center;
  margin: 20px;
}
#searchInput {
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #4a90e2;
  margin: 5px;
  width: 88%;
}

#sortSelect {
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #4a90e2;
  margin: 5px;
  width: 20%;
}
#search {
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #4a90e2;
  margin: 5px;
  width: 75%;
}

#sort {
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #4a90e2;
  margin: 5px;
  width: 20%;
}


.lect-card {
  text-align: center;
  background: #f9f9f9;   /* optionnel : fond doux */
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1); /* petit effet sympa */
}

.lect-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  height:250px;
}

    /* Menu des genres */
    .menu-genres {
      background: #fff;
      padding: 20px;
      border-radius: 10px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
      width: 250px;
    }

    .menu-genres h2 {
      font-size: 18px;
      margin-bottom: 15px;
      border-bottom: 2px solid #ddd;
      padding-bottom: 5px;
    }

    .menu-genres ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .menu-genres li {
      padding: 8px 0;
      cursor: pointer;
      transition: color 0.2s ease;
    }

       .menu-genres a {
      text-decoration: none;
    }

    .menu-genres li:hover {
      color: #0077cc;
    }





    .thumb {object-fit:cover; background:#ddd; max-width: 300px; height: auto;}
    .title { font-size:15px; line-height:1.35; margin:0; font-weight:600; }
.actions  { margin-top: 10px;
  padding: 8px 12px;
  background: #4a90e2;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
text-align: center !important;
border: 1px solid #000000;}
    .tags { font-size:12px; color:#334155; display:flex; flex-wrap:wrap; gap:6px; }
    .tag { background:#eef2ff; border:1px solid #c7d2fe; border-radius:999px; padding:2px 8px; }

    
    .link {
      display:inline-block; text-decoration:none; padding:8px 10px;  color: white; text-align: center !important;
    }
    .bar { display:flex; gap:10px; align-items:center; }
    input[type="search"] {
      border:1px solid #334155; border-radius:10px; padding:8px 10px; font-size:14px; width:75%; background:#fff;
    }
    select {   width: 20%; border:1px solid #334155; border-radius:10px; padding:8px 10px; font-size:14px; background:#fff; }


    #grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* colonnes auto-ajustables */
  gap: 20px; /* espace entre les cartes */
  padding: 16px;
}

.card2 link {
  margin-top: 10px;
  padding: 8px 8px;
  background: #4a90e2;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
text-align: center !important;
}

#pexels-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

#pexels-gallery img {
    width: 100%;
    height: 200px; /* fixe la hauteur */
    object-fit: cover; /* rogne l’image pour remplir le cadre */
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    cursor: pointer;
}


#pexels-gallery img:hover {
    transform: scale(1.05);
}


.pexels-modal {
  display: none; 
  position: fixed; 
  z-index: 1000; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgba(0,0,0,0.9);
}

.pexels-modal-body {
  margin: 40px auto;
  max-width: 90%;
  text-align: center;
}

.pexels-modal-content {
  max-width: 100%;
  max-height: 70vh; /* laisse de la place pour les boutons */
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

.pexels-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

#pexelsModalCaption {
  margin: 15px auto 5px;
  text-align: center;
  color: #ddd;
  font-size: 16px;
}

#pexelsModalPhotographer {
  margin-bottom: 15px;
  text-align: center;
  font-size: 14px;
  color: #bbb;
}

#pexelsModalPhotographer a {
  color: #0077cc;
  text-decoration: none;
}

#pexelsModalPhotographer a:hover {
  text-decoration: underline;
}

.pexels-modal-actions {
  text-align: center;
  margin-top: 10px;
}

.pexels-modal-actions a,
.pexels-modal-actions button {
  background: #0077cc;
  color: white;
  padding: 10px 15px;
  margin: 5px;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s;
}

.pexels-modal-actions a:hover,
.pexels-modal-actions button:hover {
  background: #45a049;
}

#loadMoreBtn {
  background: #4CAF50;
  color: white;
  padding: 12px 20px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

#loadMoreBtn:hover {
  background: #45a049;
}

#filters input { margin:5px; padding:5px; }
#gallery { display:grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap:10px; margin-top:20px; }
#gallery img { width:100%; height:150px; object-fit:cover; cursor:pointer; }

.modal { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.7); justify-content:center; align-items:center; }
.modal-content { background:#fff; padding:20px; max-width:600px; width:90%; position:relative; }
.modal-content img { width:100%; height:auto; margin-bottom:10px; }
#close { position:absolute; top:5px; right:10px; font-size:24px; cursor:pointer; }
#modalDetails { margin-bottom:10px; }
#loadMore { margin-top:20px; padding:10px 20px; cursor:pointer; }

    #gallery {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 10px;
      padding: 1rem;
    }
    #gallery img {
      width: 100%;
      height: 200px;
      object-fit: cover;
      border-radius: 8px;
      cursor: pointer;
      box-shadow: 0 2px 6px rgba(0,0,0,0.2);
      transition: transform 0.2s;
    }
    #gallery img:hover {
      transform: scale(1.05);
    }
    /* Modale */
#museumModal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
}

#museumModal .modal-content {
  background: white;
  margin: 5% auto;
  width: 80%;
  max-width: 800px;
  height: 90vh; /* hauteur fixe */
  border-radius: 10px;
  display: flex;
  flex-direction: column;
}

#museumModal h2 {
  margin: 0;
  padding: 1rem;
  flex-shrink: 0;
}

#museumModal .modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  text-align: center;
  max-height: calc(90vh - 140px); 
  /* 90vh total - header (~60px) - footer (~80px) */
}

#museumModal img {
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

#museumModal .modal-footer {
  padding: 0.8rem;
  background: #f5f5f5;
  text-align: right;
  border-top: 1px solid #ccc;
  flex-shrink: 0;  /* empêche le footer d’être compressé */
}



    #museumModal button {
      margin: 0.5rem;
      padding: 0.5rem 1rem;
      border: none;
      border-radius: 5px;
      background: #333;
      color: white;
      cursor: pointer;
    }
    #museumModal button:hover {
      background: #555;
    }


    #counter {
  margin: 10px 0 20px;
  font-size: 1.1em;
  font-weight: bold;
  color: #444;
  padding: 6px 12px;
  background: #f0f0f0;
  border-radius: 8px;
  display: inline-block;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.card2 a {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 14px;
  background: #0077cc;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.1s ease;
}

.card2 a:hover {
  background: #005fa3;
  transform: scale(1.03);
}

.card2 a:active {
  background: #004080;
  transform: scale(0.97);
}
   /* Style du compteur global */
    #global-counter {
      margin: 12px 0 16px;
      padding: 10px 16px;
      font-size: 1.1rem;
      font-weight: 700;
      color: #1b2a38;
      background: #e6f7ff;
      border: 2px solid #0077cc;
      border-radius: 10px;
      display: inline-block;
      box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    }
    #global-counter small {
      font-weight: 500;
      opacity: .8;
      margin-left: .5rem;
    }

    .curiosites {
  font-family: "Georgia", serif;
  padding: 20px;
}

.curiosites h1 {
  text-align: center;
  font-size: 2rem;
  color: #0077cc;
  margin-bottom: 10px;
}

.curiosites .intro {
  text-align: center;
  font-style: italic;
  margin-bottom: 25px;
  color: #0077cc;
}

.curiosites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.vitrine {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
  border : 1px solid #0077cc;
}

.vitrine:hover {
  transform: scale(1.03);
}

.vitrine h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: #0077cc;
}

.vitrine a {
text-decoration: none;
  color: #0077cc;
}


    input[type="text"] {
      padding: 10px;
      border-radius: 8px;
      font-size: 1rem;
        padding: 8px;
  border: 1px solid #4a90e2;
  margin: 5px;
  width: 80%;
    }
    button {
      padding: 10px 16px;
      border: none;
      border-radius: 8px;
      background: #0077cc;
      color: white;
      font-size: 1rem;
      cursor: pointer;
    }
    button:hover {
      background: #005fa3;
    }
    #results {
      max-width: 800px;
      margin: 20px auto;
      display: flex;
      flex-direction: column;
      gap: 15px;
    }
    .wiki-card h3 {
      margin: 0 0 5px;
      color: #0077cc;
    }
    .wiki-card a {
      text-decoration: none;
      color: #0077cc;
    }
    .wiki-card a:hover {
      text-decoration: underline;
    }

    .result, .wiki-results { margin-top:20px; padding:12px; background:#f9f9f9; border-radius:8px; }
    .wiki-card { margin-bottom:15px; padding:10px; background:#fff; border:1px solid #ddd; border-radius:6px; }
    .wiki-card p { margin:4px 0 0; color:#555; }
    .links { margin-top:12px; }
    .links a { margin-right:10px; 
      text-decoration: none;     
      padding: 10px 16px;
      border: none;
      border-radius: 8px;
      background: #0077cc;
      color: white;
      font-size: 1rem;
      cursor: pointer;  }


       .categories { display:flex; flex-wrap:wrap; gap:12px; margin-bottom:24px; }
    .cat-card { background:#fff; padding:14px; border-radius:8px; flex:1 1 250px; box-shadow:0 1px 6px rgba(0,0,0,0.1); border : 1px solid #0077cc;}
    .cat-card h3 { margin:0 0 8px; font-size:1.1rem; }
    .cat-card a { text-decoration:none; color:#0077cc; font-weight:bold; }
    .search-container { margin-bottom:20px; }
    #searchBtn { padding:8px 12px; background:#0077cc; color:#fff; border:none; border-radius:6px; cursor:pointer; }
    .wiki-card { background:#fff; padding:12px; margin-bottom:12px; border-radius:8px; box-shadow:0 1px 6px rgba(0,0,0,0.05); }
    .wiki-card h3 { margin:0 0 6px; font-size:1rem; }
    .wiki-card p { margin:4px 0; color:#444; font-size:0.95rem; }
    .wiki-card a { color:#0077cc; text-decoration:none; font-weight:bold; }


    
.modal3 {
  display: none;
  position: fixed;
  top:0; left:0;
  width:100%; height:100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  display: none; 
  position: fixed;
  z-index: 1000;
}
.modal-content3 {
  background: white;
  padding: 20px;
  border-radius: 12px;
  max-width: 960px;
  width: 90%;
border: 5px solid #4a90e2;
border-radius:10px;
padding-left:10px;
  position: relative;
  padding: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}



/* Jeunesse */

 .shelves {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      padding: 40px 20px;
      gap: 40px;
      background-color : #f7d19e;
    }

    .shelf {
      width: 220px;
      background: #fff;
      border: 3px solid #feb057;
      border-radius: 15px;
      text-align: center;
      box-shadow: 4px 6px 0 rgba(0,0,0,0.1);
      transition: transform 0.2s ease;
      padding: 20px 15px;
    }
    .shelf:hover {
      transform: scale(1.05);
    }
    .shelf img {
      width: 100px;
      height: 100px;
      margin-bottom: 10px;
    }
    .shelf h3 {
      color: #feb057;
      margin: 10px 0;
    }
    .shelf p {
      font-size: 0.95rem;
      color: #555;
    }

     #results2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
  }

  .track {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    background: #f9f9f9;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s;
  }

  .track:hover {
    transform: scale(1.03);
  }

  .track img {
    border-radius: 8px;
    margin-bottom: 10px;
  }

  .track h3 {
    font-size: 1.1em;
    margin-bottom: 5px;
  }

  .track p {
    margin: 5px 0;
    font-size: 0.9em;
  }



  #logiciel-count {
  margin: 15px 0;
  padding: 10px 15px;
  background: #f0f4ff;          /* fond doux */
  border: 1px solid #4a90e2;    /* couleur assortie */
  border-radius: 8px;
  display: inline-block;
  font-size: 14px;
  font-weight: bold;
  color: #2a4d8f;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
}

#logiciel-count::before {
  content: "📦 "; /* petite icône sympa */
}
#global-counter::before {
  content: "📚 "; /* petite icône sympa */
}
#counter::before {
  content: "📚 "; /* petite icône sympa */
}

  #global-counter {
  margin: 15px 0;
  padding: 10px 15px;
  background: #f0f4ff;          /* fond doux */
  border: 1px solid #4a90e2;    /* couleur assortie */
  border-radius: 8px;
  display: inline-block;
  font-size: 17px;
  font-weight: bold;
  color: #2a4d8f;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
}

  #counter {
  margin: 15px 0;
  padding: 10px 15px;
  background: #f0f4ff;          /* fond doux */
  border: 1px solid #4a90e2;    /* couleur assortie */
  border-radius: 8px;
  display: inline-block;
  font-size: 17px;
  font-weight: bold;
  color: #2a4d8f;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
}

#categorie-buttons {
    margin-bottom: 15px;
}

.categorie-btn {
    margin: 5px 5px 5px 0;
    padding: 8px 12px;
    border: none;
    background-color: #0077cc;
    cursor: pointer;
    border-radius: 5px;
    font-size: 0.9em;
}

.categorie-btn.active {
    background-color: #4a90e2;
    color: #fff;
}

.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  display: none;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  padding: 40px;
  overflow: auto; 
}

.close {border : 1px solid red;}

.modal-content {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  max-width: 900px;
  width: 100%;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  text-align: justify;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.book-header {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 20px;
  align-items: start;
}
.book-header img {
  max-width: 100%;
  border-radius: 6px;
}
.info-box {
  background: #f5f5f5;
  padding: 10px;
  border-radius: 6px;
}
.gallery {
  display: flex;
  gap: 10px;
}
.gallery img {
  max-height: 150px;
  border-radius: 6px;
}


.card2 img {
  width: 210px;        /* largeur fixe */
  height: 270px;       /* hauteur fixe */
  object-fit: cover;   /* coupe l’image si elle ne rentre pas dans le ratio */
  border-radius: 5px;  /* optionnel pour arrondir les coins */
}


#filters {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}
select {
    padding: 5px;
}
.channel {
    margin-bottom: 30px;
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}
.channel h2 {
    margin-top: 0;
}
.show {
    padding: 5px 0;
    border-bottom: 1px solid #ddd;
}
.show:last-child {
    border-bottom: none;
}
.time {
    font-weight: bold;
    margin-right: 10px;
}

#horoscope-widget {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  font-family: Arial, sans-serif;
  margin: 20px 0;
}

.horoscope-card {
  background: #fff8f0;
  border: 1px solid #003b7a;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.horoscope-card:hover {
  transform: translateY(-5px);
}

.horoscope-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 8px;
}

.horoscope-card h3 {
  font-size: 1.1em;
  margin: 0 0 8px;
  color: #003b7a;
}

.horoscope-card p {
  font-size: 0.95em;
  color: #333;
}

.horoscope-card a {
  display: inline-block;
  margin-top: 8px;
  color: #003b7a;
  text-decoration: none;
  font-weight: bold;
}

.horoscope-card a:hover {
  text-decoration: underline;
}

  /* ---- Onglets ---- */
  .tabs {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
  }
  .tabs button {
    flex: 1;
    padding: 6px;
    cursor: pointer;
    border: none;
    background: #003b7a;
    transition: 0.3s;
  }
  .tabs button.active {
    background: #6a3d9a;
    color: #fff;
  }
  .tab-content {
    display: none;
    padding: 15px;
    border: 2px solid #6a3d9a;
    border-radius: 10px;
    background: #fff;
    margin-bottom: 20px;
  }
  .tab-content.active {
    display: block;
  }

  /* ---- Formulaire ---- */
  .astro-form {
    background: #c7daee;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    border: 2px solid #003b7a;
  }
  .astro-form label {
    font-weight: bold;
  }
  .astro-form input {
    padding: 5px;
    margin: 5px;
  }
  .result {
    margin-top: 10px;
    font-size: 1.2em;
    font-weight: bold;
    color: #003b7a;
  }

.rss-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.rss-card {
  background: #d5e0ec;
  border: 1px solid #003b7a;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.rss-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.rss-card img {
  max-width: 100%;
  border-radius: 6px;
  margin-bottom: 8px;
}

.rss-card h4 {
  margin: 8px 0 6px;
  font-size: 1.05em;
}

.rss-card h4 a {
  text-decoration: none;
  color: #003b7a;
}

.rss-card p {
  font-size: 0.9em;
  line-height: 1.4;
}


/* Conteneur général */
#literature-widget {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  font-family: 'Arial', sans-serif;
  padding: 1rem;
}

/* Carte article */
.literature-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.literature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

/* Image article */
.literature-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

/* Contenu texte */
.card-text {
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-text h3 {
  margin: 0;
  font-size: 1.1rem;
}

.card-text h3 a {
  text-decoration: none;
  color: #2c3e50;
}

.card-text h3 a:hover {
  color: #2980b9;
}

.card-text p {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
}

/* Source en bas de la carte */
.card-source {
  font-size: 0.8rem;
  color: #888;
  font-style: italic;
  margin-top: 0.5rem;
  text-align: right;
}


