/* 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: #edb47c;
  color: #333;
}

h2
    {color:#553b22;
      text-align: center;
    }

    #collection-title 
        {color:#edb47c;
      text-align: center;
    }

    .count
    { color:#edb47c;
      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: #edb47c;
  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: #edb47c;
  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: #edb47c;
    }


.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: #edb47c;
}
.card2 h2 {
    text-align: center;
    color: #edb47c;
}

.card2 {
  text-align: justify;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 6px #523c26; 
  border : 1px solid #523c26;
}

.card2 img {
  max-width: 100%;
  height: 220px;
  border-radius: 8px;
}

.card5 {
  text-align: justify;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 6px #523c26; 
  border : 1px solid #523c26;
}

.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: #edb47c;;
  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: #edb47c;
  margin-top: 20px;
  text-align: center;
}

.privacy-policy a {
  color: #edb47c;
  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 #edb47c;
  border-radius:10px;
}

.logicotheque h2 {
  color: #edb47c;
  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 #edb47c;
  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: #edb47c;
}

.logiciel-card p {
  margin: 5px 0;
}



      button { background-color: #edb47c;   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 #edb47c; 
            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: #edb47c; 
            color: white; 
            border: none; 
            border-radius: 5px;
      margin:20px auto;
        }
        #loadMore:hover { background-color: #523c26; }

        

/* 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 #edb47c;
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: #edb47c;
  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 #edb47c;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  position: relative;
}


.modal-content2 a {
  margin-top: 10px;
  padding: 8px 12px;
  background: #edb47c;
  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:#edb47c;
      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:#edb47c;
      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 #523c26; /* 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: #523c26;
    }

    .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: #a16a33;
      color: white;
      border-radius: 5px;
      cursor: pointer;
      font-size: 16px;
    }

    #loadMore:hover {
      background-color: #a16a33;
    }

        .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;
    }

.grid4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin: 20px;
}

    .card {
  width: 250px; 
  padding: 10px;
  border: 1px solid #edb47c;
  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: #a7794c;
      color: white;
      border-radius: 6px;
      cursor: pointer;
      text-decoration: none;
    }
    .btn:hover {
      background: #4b3520;
    }


.filters input {
  flex: 1;
  padding: 8px;
  margin-right: 10px;
  border: 1px solid #edb47c;
  border-radius: 6px;
}

.filters select {
  padding: 8px;
  border: 1px solid #edb47c;
  border-radius: 6px;
}

.filters {
  text-align: center;
  margin: 20px;
}
#searchInput {
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #edb47c;
  margin: 5px;
  width: 88%;
}

#sortSelect {
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #edb47c;
  margin: 5px;
  width: 20%;
}
#search {
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #edb47c;
  margin: 5px;
  width: 75%;
}

#sort {
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #edb47c;
  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: #976e45;
    }





    .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: #edb47c;
  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 #a16a33; border-radius:10px; padding:8px 10px; font-size:14px; width:75%; background:#fff;
    }
    select {   width: 20%; border:1px solid #a16a33;; 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;
}

#gridMoreContent {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
   padding: 16px;
}


.card2 link {
  margin-top: 10px;
  padding: 8px 8px;
  background: #edb47c;
  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: #976e45;
  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: #976e45;
  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: #a16a33;
}

#loadMoreBtn {
  background: #a16a33;
  color: white;
  padding: 12px 20px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

#loadMoreBtn:hover {
  background: #774a1e;
}

#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);
}

#counterMore
{
  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: #976e45;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.1s ease;
}

.card2 a:hover {
  background: #794b1e;
  transform: scale(1.03);
}

.card2 a:active {
  background: #663e15;
  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 #976e45;
      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: #976e45;
  margin-bottom: 10px;
}

.curiosites .intro {
  text-align: center;
  font-style: italic;
  margin-bottom: 25px;
  color: #976e45;
}

.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 #976e45;
}

.vitrine:hover {
  transform: scale(1.03);
}

.vitrine h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: #976e45;
}

.vitrine a {
text-decoration: none;
  color: #976e45;
}


    input[type="text"] {
      padding: 10px;
      border-radius: 8px;
      font-size: 1rem;
        padding: 8px;
  border: 1px solid #edb47c;
  margin: 5px;
  width: 80%;
    }
    button {
      padding: 10px 16px;
      border: none;
      border-radius: 8px;
      background: #976e45;
      color: white;
      font-size: 1rem;
      cursor: pointer;
    }
    button:hover {
      background: #7e5123;
    }
    #results {
      max-width: 800px;
      margin: 20px auto;
      display: flex;
      flex-direction: column;
      gap: 15px;
    }
    .wiki-card h3 {
      margin: 0 0 5px;
      color: #976e45;
    }
    .wiki-card a {
      text-decoration: none;
      color: #976e45;
    }
    .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: #976e45;
      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 #976e45;}
    .cat-card h3 { margin:0 0 8px; font-size:1.1rem; }
    .cat-card a { text-decoration:none; color:#976e45; font-weight:bold; }
    .search-container { margin-bottom:20px; }
    #searchBtn { padding:8px 12px; background:#976e45; 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:#976e45; 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 #edb47c;
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;
      text-decoration: none;
    }

    .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;
      text-decoration: none;
    }
    .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;
      text-decoration: none;
    }
    .shelf a {
      text-decoration: none;
      color: #feb057;
    }

     #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 #edb47c;    /* 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 */
}

#disney-counter::before {
  content: "🎬 "; /* petite icône sympa */
}

#counter::before {
  content: "📚 "; /* petite icône sympa */
}

#counterMore::before {
  content: "📚 "; /* petite icône sympa */
}

  #global-counter {
  margin: 15px 0;
  padding: 10px 15px;
  background: #f0f4ff;          /* fond doux */
  border: 1px solid #edb47c;    /* 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 #edb47c;    /* 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);
}

    #disney-counter {
      margin: 12px 0 16px;
      padding: 10px 16px;
      font-size: 1.1rem;
      font-weight: 700;
      color: #1b2a38;
      background: #e6f7ff;
      border: 2px solid #976e45;
      border-radius: 10px;
      display: inline-block;
      box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    }

#categorie-buttons {
    margin-bottom: 15px;
}

.categorie-btn {
    margin: 5px 5px 5px 0;
    padding: 8px 12px;
    border: none;
    background-color: #976e45;
    cursor: pointer;
    border-radius: 5px;
    font-size: 0.9em;
}

.categorie-btn.active {
    background-color: #edb47c;
    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 */
}


.container5 {
max-width: 900px;
margin: 20px auto;
padding: 20px;
background: #fff8ec;
border-radius: 12px;
box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

    /* STATS */
    .stats-container {
      display: flex;
      justify-content: center;
      gap: 40px;
      margin: 60px auto;
      flex-wrap: wrap;
      max-width: 1000px;
    }
    .counter-box {
      flex: 1 1 200px;
      text-align: center;
      background: white;
      padding: 30px;
      border-radius: 15px;
      box-shadow: 0 3px 12px rgba(0,0,0,0.1);
      transition: transform 0.3s;
    }
    .counter-box:hover {
      transform: translateY(-5px);
    }
    .counter {
      font-size: 2.5em;
      font-weight: bold;
      color: #5c4024;
      display: block;
      margin-top: 10px;
    }

    .vikidia-widget {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  max-width: 1100px;
  margin: 1.2rem auto;
  padding: 0 1rem;
}

.vikidia-searchbar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

#vikidia-input {
  flex: 1;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  border: 1px solid #d0d7de;
  font-size: 1rem;
  outline: none;
  transition: box-shadow .15s ease;
}

#vikidia-input:focus {
  box-shadow: 0 6px 18px rgba(41,128,185,0.12);
  border-color: #a16a33;
}

#vikidia-btn {
  background:#976e45;
  color:#fff;
  border: none;
  padding: 0 1rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  min-width: 110px;
}
#vikidia-btn:hover { filter: brightness(0.95); }

.vikidia-feedback {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

/* Grid results */
.vikidia-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

/* Card */
.vikidia-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e6e9ee;
  box-shadow: 0 6px 18px rgba(11,20,40,0.04);
  transition: transform .18s ease, box-shadow .18s ease;
  min-height: 190px;
  border : 1px solid #976e45;
}

.vikidia-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(11,20,40,0.08);
}

.vikidia-thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: linear-gradient(180deg, #f6f7fb, #eef2fb);
}

.vikidia-card-body {
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.vikidia-title {
  font-size: 1rem;
  margin: 0;
  color: #3b2a18;
  line-height: 1.25;
  font-weight: 700;
}

.vikidia-extract {
  font-size: 0.9rem;
  color: #976e45;
  margin: 0;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.vikidia-meta {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:0.5rem;
  margin-top: .4rem;
}

.vikidia-source {
  font-size:0.8rem;
  color:#976e45;
  font-style: italic;
}

.vikidia-actions {
  display:flex;
  gap:0.5rem;
}

.vikidia-open {
  background:#724d28;
  color:white;
  border:none;
  padding: 6px 10px;
  border-radius:8px;
  font-weight:600;
  cursor:pointer;
}
.vikidia-open:hover { filter: brightness(0.95);
background:#ddba98; }

.vikidia-more {
  background:transparent;
  border:1px solid #cbd5e1;
  padding:6px 10px;
  border-radius:8px;
  cursor:pointer;
  color:#6b4a29;
}
.vikidia-more:hover { background:#f8fafc; }

#vikidia-loadmore {
  background:#724d28;
  color:white;
  border:none;
  padding:0.6rem 1.2rem;
  border-radius:8px;
  font-weight:600;
  cursor:pointer;
}
#vikidia-loadmore:hover{filter:brightness(0.95);
background:#b38870;}

/* mobile tweaks */
@media (max-width:480px){
  .vikidia-thumb { height:110px; }
  #vikidia-btn{ min-width: 80px; padding: 0 .6rem; }
}


.disney-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card-disney {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.card-disney:hover {
  transform: scale(1.03);
}

.card-disney img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.card-disney .content {
  padding: 15px;
}

.card-disney h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #ebb27a;
}

.card-disney p {
  font-size: 14px;
  color: #0a0a0a;
}

.card-disney a {
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  color: #ebb27a;
  font-weight: bold;
}
#disney-films .card-disney {
  background:white; border-radius:10px; box-shadow:0 3px 8px rgba(0,0,0,0.2);
  overflow:hidden; margin:10px; display:flex; flex-direction:column;
}
#disney-films .card-disney img { height:200px; object-fit:cover; }
#disney-films .card-disney .content { padding:10px; }
#disney-films .card-disney button { margin-top:10px; padding:5px 10px; }

#modalFilm .modal-content { max-width:90%; max-height:90%; overflow:auto; background:#fff; padding:20px; border-radius:10px; }

/* Trailer principal */
.video-wrapper.trailer {
  position: relative;
  width: 800px;  /* trailer plus grand */
  margin: 10px auto;
  padding-top: 56.25%; /* 16:9 */
}

/* Clips / Musiques */
.video-wrapper.clip, 
.video-wrapper.music {
  position: relative;
  width: 500px; /* plus petit que le trailer */
  margin: 10px auto;
  height:250px;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-row {
  display: flex;
  flex-wrap: wrap;       /* permet aux vidéos de passer à la ligne si trop nombreuses */
  gap: 10px;             /* espace entre les vidéos */
  justify-content: center; /* centrer les vidéos */
  margin-bottom: 20px;
}

.video-row .video-wrapper {
  flex: 1 1 250px;       /* minimum 300px par vidéo */
  max-width: 30%;        /* 3 vidéos par ligne sur grand écran */
  position: relative;
  height:200px;
}

.video-row .video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
