/* Reset des styles de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'DM Sans', sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

header {
  background-color: #000;
  color: #fff;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Cet partie est le logo du lycée est dans la navbar pour que ca soit plus net et plus facile a gerer pour les autres pages */

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration-line: none;
}

.logo-lycee a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: auto;
  font-size: 24px;
  font-weight: 700;
}

.logo-lycee img {
  width: auto;
  height: 50px;
  border-radius: 6px;
  padding: 4px;
  display: flex;
  background: #000;
  /* pour que ca soit plus netfond */
}

span {
  color: #88c6d6;
  font-size: 1.5rem;
  font-family: "Playfair Display" sans-serif;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;

}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  position: sticky;
}

ul li {
  float: right;
}

ul li a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

ul li a:hover {
  background-color: #88c6d6b1;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-family: "Playfair Display" sans-serif;
  transition: 0.25s ease;
  ;
}

nav a:hover {
  text-decoration: none;
  border-radius: 0.5rem;
  font-family: "Playfair Display" sans-serif;
  transform: scale(1.08);
  box-shadow: 0 0 6px #4a90e2b3;
}

a {
  color: white;
  text-decoration: none;
  text-decoration-color: black;
}

/* From Uiverse.io by LightAndy1 */
.group {
  display: flex;
  align-items: center;
  position: relative;
  justify-content: space-between;
}

.input {
  font-family: "DM Sans", sans-serif;
  width: 100%;
  height: 45px;
  padding-left: 2.5rem;
  padding-right: 1rem;
  box-shadow: 0 0 0 1.5px #2b2c37, 0 0 25px -17px #000;
  border: 1.5px solid #2b2c37;
  border-radius: 12px;
  background-color: #16171d;
  outline: none;
  color: #bdbecb;
  transition: all 0.25s cubic-bezier(0.19, 1, 0.22, 1);
  cursor: text;
  z-index: 0;
  font-size: 1rem;
  transition: border-color 0.2s, width 0.3s;
}

.input::placeholder {
  color: #555;
}

.input:hover {
  box-shadow: 0 0 0 2.5px #2f303d, 0px 0px 25px -15px #000;
}

.input:active {
  transform: scale(0.95);
}

.input:focus {
  box-shadow: 0 0 0 2.5px #2f303d;
  border-color: #88c6d6;
  width: 280px;
}

.search-icon {
  position: absolute;
  left: 1rem;
  fill: #bdbecb;
  width: 1rem;
  height: 1rem;
  pointer-events: none;
  z-index: 1;
}


main {
  padding: 2rem;
}


.intro {
  text-align: center;
}

.container h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  margin-top: 1rem;
}

#Titre {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  color: #000000;
  text-decoration: none;
}

.intro h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  margin-top: 1rem;
}

.intro p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.btn {
  background-color: #88c6d6;
  color: #fff;
  padding: 0.9rem 2rem;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 5px;
  text-decoration: none;
  margin-top: 1.5rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-weight: 500;
  justify-content: center;
}


.btn:hover {
  background-color: #88c6d6b1;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}


.nouveautes {
  margin-top: 3rem;
}

.nouveautes h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.nouveautes-items {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.nouveaute-item {
  text-align: center;
  width: 200px;
  display: block;
  color: #333;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.nouveaute-item:hover {
  transform: translateY(-4px);
}

.nouveaute-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.nouveautes-items p {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.livres-colonnes {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.horaires table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
}

.horaires th,
.horaires td {
  padding: 1rem;
  border: 1px solid #ddd;
}

.horaires th {
  background-color: #f1f1f1;
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 10px;
  }

  nav ul {
    justify-content: center;
    flex-wrap: wrap;
  }

  .group {
    max-width: 100%;
  }
}

/* .container {
  max-width: 100rem;
  margin: auto;
} */

/* Footer */
.row {
  display: flex;
  flex-wrap: wrap;
}


.footer {
  background-color: #24262b;
  color: #ffffff;
  padding: 70px 0;
}

.footer-col {
  width: 25%;
  padding: 0 15px;
}

.footer-col ul {
  padding: 0%;
  list-style: none;
  margin: 0;
}

.footer-col ul {
  display: block;
}

.footer-col ul li {
  display: block;
  width: 100%;
}

.footer-col h4 {
  font-size: 18px;
  color: #ffffff;
  text-transform: capitalize;
  margin-bottom: 35px;
  font-weight: 500;
  position: relative;
}

.footer-col h4::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  background-color: #88c6d6;
  height: 2px;
  width: 50px;
  transition: width 0.3s ease;
}

.footer-col h4:hover::before {
  width: 100%;
}

.footer-col ul li:not(:last-child) {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 16px;
  color: #bbbbbb;
  text-decoration: none;
  font-weight: 300;
  display: block;
  transition: all 0.3s ease;
  text-align: left;
}

.footer-col ul li a:hover {
  color: #ffffff;
  padding-left: 8px;
}

.resaux-social a {
  display: inline-block;
  height: 50px;
  width: 50px;
  background-color: #ffffff33;
  margin: 0 10px 10px 0;
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  color: #ffffff;
  transition: all 0.5s ease;
}

.resaux-social a:hover {
  color: #24262b;
  background-color: #ffffff;
}

/* Responsive */
@media(max-width: 767px) {
  .footer-col {
    width: 50%;
    margin-bottom: 30px;
  }
}

@media(max-width: 574px) {
  .footer-col {
    width: 100%;
  }
}


/*page 1 */

.ronger-image {
  background: #fff;
  padding: 12px;
  border-radius: var(--radius);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform var(--transition),
    box-shadow var(--transition),
    opacity var(--transition)
}

.ronger-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 6px
}

.ronger-image p {
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--text);
  text-align: center
}

.ronger-image:hover,
.ronger-image:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow)
}

/* page espace livres  */

.container-espaces-livres {
  padding: 8rem;
}

.section {
  justify-content: center;
  box-shadow: 0 4px 10px #0000000a;
  margin: auto;
  padding: 4rem;
  margin-top: 1rem;
}

.btn-container {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

/* Version ordinateur */
.section-row {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.section-row.reverse {
  flex-direction: row-reverse;
}

.image-container img {
  width: 200px;
  height: 300px;
  border-radius: 12px;
  object-fit: cover;
}

/* Version de telephone */
@media (max-width: 800px) {

  .section-row,
  .section-row.reverse {
    flex-direction: column;
    text-align: center;
  }

  .image-container img {
    width: 100%;
    max-width: 350px;
  }
}

.text {
  max-width: 400px;
}

/* page de la ressource*/

/* Container principal */
.container.ressources {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =============================================
  Liste déroulante RECHERCHE EN TEMPS RÉEL
   ============================================= */

#search-results {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  /* Espace de 10px sous le champ de recherche*/
  right: 0;
  left: auto;
  width: 340px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border: 1px solid #ddd;
  z-index: 999;
}

#search-results.visible {
  display: block;
}


.result-header {
  background: #000;
  color: #88c6d6;
  padding: 8px 16px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500px;
}

.result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  color: #333;
}

.result-item:last-child {
  border-bottom: none;
}

.result-item:hover {
  background: #f0feff;
}

.result-cover {
  width: 34px;
  height: 48px;
  object-fit: cover;
  border-radius: 3px;
  background: #ddd;
  flex-shrink: 0;
}

.result-cover-placeholder {
  width: 34px;
  height: 48px;
  border-radius: 3px;
  background: #cceff5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.result-info {
  flex: 1;
  overflow: hidden;
}

.result-title {
  font-weight: bold;
  font-size: 0.86rem;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-meta {
  font-size: 0.76rem;
  color: #666;
  margin-top: 2px;
}

.result-tag {
  display: inline-block;
  background: #e0fdff;
  color: #88c6d6;
  border-radius: 10px;
  padding: 1px 8px;
  font-size: 0.7rem;
  margin-top: 3px;
}

.no-result {
  padding: 16px;
  color: #888;
  font-size: 0.86rem;
  text-align: center;
}

/* Page de livre.html */

.btn-retour {
  font-display: auto;
  margin: auto;
  color: #000000;
  font-size: 1.2rem;
  text-decoration: none;

}

/* page de recherche */

/* Le grand champ du recherche */
.search-main h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}

.search-main h1 span {
  color: #88c6d6;
  font-size: 3rem;
}

.search-main p {
  color: grey;
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

/* Champ barre de recherche principal */
.big-search-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.big-search {
  position: relative;
  width: 100%;
  max-width: 600px;
}

.big-search .search-icon {
  width: 20px;
  height: 20px;
  left: 18px;
  fill: #aaa;
  position: absolute;
  Top: 50%;
  transform: translateY(-50%);
}

.big-input {
  font-family: 'Arial', sans-serif;
  width: 100%;
  height: 56px;
  padding-left: 3rem;
  padding-right: 1.5rem;
  border: 2px solid #e0e0e0;
  border-radius: 14px;
  font-size: 1.05rem;
  color: #111;
  outline: none;
  background: #fff;
  box-shadow: 0 4px 20px #0000000f;
  transition: border-color 0.2s;
}

.big-input:focus {
  border-color: #88c6d6;
  box-shadow: 0 4px 20px #88c6d64d;
}

.big-input::placeholder {
  color: #bbb;
}

/* Les catégories de livres pour le filtrage dans la page de recherche */

.categories-wrap {
  margin-bottom: 2rem;
}

.categories-wrap h2 {
  font-family: 'Arial', serif;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* la grille du recherche pour le vue des resultats des livres */
/* Par défaut, la grille est CACHéE et ne s'affiche que lorsque des résultats sont disponibles */
#results-grid {
  display: none;
}

#results-grid.visible {
  display: block;
}

.results-count {
  font-size: 0.88rem;
  color: grey;
  margin-bottom: 1.2rem;
}

.results-count strong {
  color: black;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.book-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px #00000012;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px #00000021;
}

.book-card-cover {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #b6d4dc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.book-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-card-body {
  padding: 1rem;
  flex: 1;
}

.book-card-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: #111;
  margin-bottom: 4px;
  line-height: 1.3;
}

.book-card-author {
  font-size: 0.78rem;
  color: #888;
  margin-bottom: 8px;
}

.book-card-tag {
  display: inline-block;
  background: #bfe8f2;
  color: #6c9ca8;
  border-radius: 10px;
  padding: 2px 10px;
  font-size: 0.7rem;
}

.empty-state {
  text-align: center;
  padding: 3rem;
  color: grey;
}

.empty-state .emoji {
  font-size: 3rem;
  margin-bottom: 1rem;
}

mark {
  background: #ff0000;
  border-radius: 2px;
  padding: 0 2px;
}

/*les boutons de filtre pour les categories des livres dans la page de recherche */

.tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tag {
  padding: 6px 16px;
  border-radius: 20px;
  border: 1.5px solid #e0e0e0;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Arial', sans-serif;
  flex-wrap: wrap;
  display: flex;
  flex-direction: row;
  gap: 8px;
}

.tag:hover {
  background: #88c6d6;
  border-color: #88c6d6;
  color: #fff;
}

.tag.active {
  background: #88c6d6;
  border-color: #88c6d6;
  color: #fff;
}

/* page du livre */
/* la section principale de la pagedu livre  */
.livre-page {
  width: 100%;
  height: auto;
  background: #b6d4dc;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  max-width: 1100px;
  margin: 2rem auto 4rem;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
}

/* la fleche de retour pour revenir a la page de recherche */

.breadcrumb {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  padding: 0 2rem;
  font-size: 0.82rem;
  color: rgb(128, 128, 128);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb a {
  color: #88c6d6;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* la partie gauche de la page du livre qui contient la couverture et les informations principales du livre */
.livre-left {
  display: flex;
  flex-direction:
    column;
  gap: 1.5rem;
}

.livre-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cover-wrap {
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  background: #88c6d6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;

}

/* la couverture du livre dans la page du livre */
.dispo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  width: fit-content;
}

/* les style de la disponibilité du livre dans la page du livre */
.dispo-badge.dispo {
  background: #e8f5e9;
  color: #2e7d32;
}

.dispo-badge.indispo {
  background: #fce4ec;
  color: #c62828;
}

.dispo-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dispo-badge.dispo .dot {
  background: #43a047;
}

.dispo-badge.indispo .dot {
  background: #e53935;
}

/* la cote du livre dans la page du livre */
.cote-box {
  background: #f0f0f0;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.82rem;
  color: #aeaeae;
}

.cote-box strong {
  color: black;
  display: block;
  font-size: 1rem;
  font-family: 'Arial', monospace;
  margin-top: 4px;
}

/* la barre deroulante pour les actions possibles sur le livre dans la page du livre */
.actions-box {
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-radius: 14px;
  overflow: hidden;
}

.actions-box h3 {
  padding: 12px 16px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: #d3d3d371;
  color: #88c6d6;
}

.action-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  font-size: 0.88rem;
  color: #333;
  transition: background 0.15s;
}

.action-item:last-child {
  border-bottom: none;
}

.action-item:hover {
  background: #f0faff;
  color: #e8f5e9;
}

.action-item .icon {
  font-size: 1.1rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-item .icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
  max-width: 100%;
  display: block;
}

/* cette partie est pour la partie droite de la page du livre qui contient
les informations détaillées du livre et les avis des utilisateurs sur le livre */
.livre-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.livre-categorie {
  display: inline-block;
  background: #fff3e0;
  color: #00e5ff;
  border-radius: 10px;
  padding: 4px 14px;
  font-size: 0.78rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.livre-titre {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 0.4rem;
}

.livre-auteur {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 1rem;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.5rem;
}

.stars {
  color: #88e9ff;
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.rating-num {
  font-size: 1.3rem;
  font-weight: 600;
}

.rating-count {
  font-size: 0.82rem;
  color: rgb(184, 184, 184);
}

.synopsis-box {
  background: #fff;
  border-left: 4px solid #88c6d6;
  padding: 1.2rem 1.5rem;
  border-radius: 0 10px 10px 0;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #444;
}

.infos-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.infos-table tr {
  border-bottom: 1px solid #f0f0f0;
}

.infos-table td {
  padding: 10px 8px;
}

.infos-table td:first-child {
  color: gray;
  width: 140px;
  font-weight: 500;
}

.infos-table td:last-child {
  color: #111;
  font-weight: 400;
}


/* ce partie est pour les boutons de filtre pour les avis dans la page du livre */
.filtre-btn {
  padding: 5px 14px;
  border-radius: 16px;
  border: 1.5px solid #ddd;
  background: #fff;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: 'Arial', sans-serif;
  transition: all 0.2s;
}

.filtre-btn:hover,
.filtre-btn.active {
  background: #bfe8f2;
  border-color: #6bb3c5;
  color: #fff;
}

/* la partie de la section des avis pour les livres dans la page du livre */
.btn-retour {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #bfe8f2;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-family: 'Arial', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  margin-bottom: 1.5rem;
}

.btn-retour:hover {
  background: #bfe8f2;
  transform: translateY(-1px);
}

/* il permet de juste a dire les avis de la section */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: black;
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.88rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
  z-index: 999;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* cest pour animation */
@media (max-width: 768px) {
  .livre-page {
    grid-template-columns: 1fr;
  }

  .cover-wrap {
    max-width: 220px;
    margin: auto;
  }

  .livre-titre {
    font-size: 1.8rem;
  }
}

/* Google Fonts import */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@400;600;700&display=swap');

/* Header ameliore */
header {
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
}

/* Animation fade-in pour les sections */
@keyframes fadeInSection {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- PAGE ESPACES LIVRES ---- */

/* Titre principal */
.container>h1 {
  font-family: 'Playfair Display', serif;
  color: #222;
  position: relative;
  padding-bottom: 0.5rem;
}

.container>h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: #88c6d6;
  border-radius: 2px;
}

/* Sections en cartes */
.section {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #eaeaea;
  animation: fadeInSection 0.6s ease both;
}

.section:nth-child(2) {
  animation-delay: 0.1s;
}

.section:nth-child(3) {
  animation-delay: 0.2s;
}

.section:nth-child(4) {
  animation-delay: 0.3s;
}

.section:nth-child(5) {
  animation-delay: 0.4s;
}

.section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: #222;
  margin-bottom: 0.5rem;
  position: relative;
  padding-bottom: 0.4rem;
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #88c6d6, #b6e4ef);
  border-radius: 2px;
}

.section>p {
  color: #777;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Cartes de livres ameliorees */
.ronger-image {
  border: 1px solid #f0f0f0;
  cursor: pointer;
  overflow: hidden;
  width: 200px;
  min-width: 160px;
}

.ronger-image img {
  transition: transform 0.35s ease;
}

.ronger-image:hover img {
  transform: scale(1.05);
}

.ronger-image small {
  display: block;
  text-align: center;
  color: #999;
  font-size: 0.78rem;
  margin-top: 0.25rem;
}

/* Message de chargement */
.chargement {
  color: #aaa;
  font-size: 0.9rem;
  font-style: italic;
  padding: 2rem;
  text-align: center;
  width: 100%;
}

/* Boutons ameliores */
.btn {
  background: linear-gradient(135deg, #88c6d6, #6bb3c5);
  box-shadow: 0 4px 14px rgba(136, 198, 214, 0.3);
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.btn:hover {
  background: linear-gradient(135deg, #6bb3c5, #5aa3b5);
  box-shadow: 0 6px 20px rgba(136, 198, 214, 0.4);
  transform: translateY(-3px);
}

/* Section-row image amelioree */
.image-container {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  margin-top: 1rem;
}

.image-container img {
  transition: transform 0.4s ease;
  display: block;
}

.image-container:hover img {
  transform: scale(1.03);
}

.text h2 {
  font-family: 'Playfair Display', serif;
}

.text p {
  color: #555;
  line-height: 1.7;
  font-size: 0.95rem;
}


/* ---- PAGE RESSOURCES ---- */

/* Article card */
.container.ressources article {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #eaeaea;
  animation: fadeInSection 0.6s ease both;
}

.container.ressources h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #222;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.6rem;
}

.container.ressources h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: #88c6d6;
  border-radius: 2px;
}

.container.ressources section {
  margin-top: 1.5rem;
}

.container.ressources section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: #333;
  margin-bottom: 0.75rem;
}

.container.ressources section>span {
  display: inline-block;
  background: #e8f6fa;
  color: #5a9fb0;
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

/* Image article */
.article-image {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 12px;
  margin: 1rem 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.article-image:hover {
  transform: scale(1.01);
}

.container.ressources section p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

/* Lien acces */
.actu.link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #88c6d6, #6bb3c5);
  color: #fff;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(136, 198, 214, 0.3);
  margin-top: 0.5rem;
}

.actu.link a:hover {
  background: linear-gradient(135deg, #6bb3c5, #5aa3b5);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(136, 198, 214, 0.4);
}

/* ---- FOOTER ameliore ---- */
.footer {
  margin-top: 3rem;
  border-top: 1px solid #333;
}

.resaux-social img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: transform 0.2s ease;
}

.resaux-social a:hover img {
  filter: brightness(0);
  transform: scale(1.1);
}

/* ---- BODY fond leger ---- */
body {
  background: #f7f9fa;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* ============================================================
   PAGES RESSOURCES & ORIENTATION
   ============================================================ */

/* Supprime le padding global du main sur ces pages */
body:has(.page-bandeau) main {
  padding: 0;
}

/* --- Bandeau haut de page (partagé Ressources + Orientation) --- */
.page-bandeau {
  background-color: #1a1a1a;
  color: white;
  text-align: center;
  padding: 60px 20px;
}

.page-bandeau h1 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: white;
}

.page-bandeau p {
  font-size: 1rem;
  color: #cccccc;
  max-width: 700px;
  margin: 0 auto 20px auto;
  line-height: 1.7;
}

.page-bandeau a.btn-bandeau {
  display: inline-block;
  background-color: #88c6d6;
  color: white;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 10px;
}

.page-bandeau a.btn-bandeau:hover {
  background-color: #6bb3c5;
}

/* .filtre-btn {
  padding: 5px 14px;
  border-radius: 16px;
  border: 1.5px solid #ddd;
  background: #fff;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: 'Arial', sans-serif;
  transition: all 0.2s;
}

.filtre-btn:hover, .filtre-btn.active {
  background: #bfe8f2;
  border-color: #bfe8f2;
  color: #fff;
} */

/* Lien retour dans le bandeau (Orientation uniquement) */
.page-bandeau .retour-lien {
  display: inline-block;
  color: #88c6d6;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.page-bandeau .retour-lien:hover {
  text-decoration: underline;
}

/* --- Contenu principal --- */
.page-contenu {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

/* --- Titre de section --- */
.section-titre {
  font-size: 1.5rem;
  color: #222;
  margin-top: 40px;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 3px solid #88c6d6;
}

.section-intro {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* --- Bouton lien --- */
.btn-lien {
  display: inline-block;
  background-color: #88c6d6;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

.btn-lien:hover {
  background-color: #6bb3c5;
}

/* --- Bloc article (presse) --- */
.article-bloc {
  background: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 30px;
}

.article-bloc h2 {
  font-size: 1.4rem;
  margin-bottom: 5px;
  color: #222;
}

.article-date {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 15px;
  display: block;
}

.article-bloc img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.article-bloc p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 15px;
}

/* --- Pages Mentions Légales et RGPD pour les textes --- */
.mentions-container {
  max-width: 900px;
  margin: 60px auto;
  padding: 50px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  color: #333;
}

.mentions-container h1 {
  color: #000;
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.2rem;
  font-family: 'Playfair Display', serif;
}

.mentions-container h2 {
  color: #000;
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  font-size: 1.5rem;
}

.mentions-container h3 {
  color: #222;
  margin-top: 25px;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.mentions-container p,
.mentions-container li {
  line-height: 2;
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: #444;
}

.mentions-container ul {
  margin-left: 20px;
  margin-bottom: 20px;
  list-style-type: disc;
  margin: 0 0 20px 40px;
  padding: 0;
  overflow: visible;
  position: static;
}

.mentions-container ul li {
  float: none;
  margin-bottom: 12px;
  padding: 0;
}




/* --- Liste de sites (Ressources) ---
.sites-liste {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

 --- Carte site web (partagée Ressources + Orientation) --- 
.site-carte {
  background: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
}

.site-carte .site-emoji {
  font-size: 1.5rem;
  margin-bottom: 8px;
  display: block;
}

.site-carte h3 {
  font-size: 1rem;
  color: #222;
  margin-bottom: 8px;
  line-height: 1.3;
}

.site-carte p {
  color: #555;
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

.site-carte a {
  color: #88c6d6;
  font-weight: bold;
  text-decoration: none;
  font-size: 0.85rem;
}

.site-carte a:hover {
  text-decoration: underline;
}

--- Badge de catégorie --- 
.site-badge {
  display: inline-block;
  background-color: #e8f6fa;
  color: #5a9fb0;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.site-badge.etudes {
  background-color: #e8eefa;
  color: #5a6fb0;
}

.site-badge.orientation {
  background-color: #f0e8fa;
  color: #7a5ab0;
}

--- Grille guides Onisep (Ressources) --- 
.guides-grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.guide-carte {
  background: #f0f8fb;
  border: 1px solid #c8e6f0;
  border-radius: 10px;
  padding: 20px 15px;
  text-align: center;
}

.guide-carte .guide-emoji {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 10px;
}

.guide-carte p {
  font-size: 0.82rem;
  color: #444;
  line-height: 1.4;
  margin: 0;
}

 --- Note info (Ressources) --- 
.note-info {
  background-color: #e8f6fa;
  border-left: 4px solid #88c6d6;
  padding: 15px 20px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 30px;
  font-size: 0.92rem;
  color: #3a7a8c;
}

 --- Bloc CTA vers Orientation (Ressources) --- 
.cta-orientation {
  background-color: #1a1a1a;
  color: white;
  border-radius: 10px;
  padding: 30px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.cta-orientation h2 {
  font-size: 1.3rem;
  color: white;
  margin-bottom: 8px;
}

.cta-orientation p {
  color: #aaa;
  font-size: 0.9rem;
  line-height: 1.6;
}

.cta-orientation .btn-lien {
  white-space: nowrap;
}

/* --- Navigation rapide (Orientation) --- 
.nav-rapide {
  background-color: #f5f5f5;
  border-bottom: 1px solid #ddd;
  padding: 12px 20px;
  text-align: center;
}

.nav-rapide a {
  display: inline-block;
  margin: 5px 8px;
  color: #333;
  text-decoration: none;
  background: white;
  border: 1px solid #ddd;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
}

.nav-rapide a:hover {
  background-color: #88c6d6;
  color: white;
  border-color: #88c6d6;
}

/* --- Cartes personnes ressources (Orientation) --- 
.personnes-liste {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.personne-carte {
  background: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.personne-emoji {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.personne-carte h3 {
  font-size: 1rem;
  color: #222;
  margin-bottom: 5px;
}

.personne-carte p {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 5px;
}

.personne-carte a {
  color: #88c6d6;
  font-size: 0.85rem;
  font-weight: bold;
  text-decoration: none;
}

.personne-carte a:hover {
  text-decoration: underline;
}

/* --- Boutons filtres (Orientation) --- 
.filtres {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.filtre-btn {
  padding: 7px 18px;
  border-radius: 20px;
  border: 1.5px solid #ddd;
  background: white;
  cursor: pointer;
  font-size: 0.85rem;
  color: #555;
  font-family: 'DM Sans', sans-serif;
}

.filtre-btn:hover {
  background-color: #88c6d6;
  border-color: #88c6d6;
  color: white;
}

.filtre-btn.actif {
  background-color: #88c6d6;
  border-color: #88c6d6;
  color: white;
  font-weight: bold;
}

/* --- Grille sitothèque (Orientation) --- 
.sites-grille {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

/* --- Liens rapides pills (Orientation) --- 
.liens-rapides {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.lien-pill {
  display: inline-block;
  background: #f5f5f5;
  border: 1px solid #ddd;
  color: #333;
  padding: 8px 18px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.88rem;
}

.lien-pill:hover {
  background-color: #88c6d6;
  border-color: #88c6d6;
  color: white;
}

/* --- Responsive Ressources & Orientation --- 
@media (max-width: 600px) {
  .guides-grille {
    grid-template-columns: repeat(2, 1fr);
  }
  .cta-orientation {
    flex-direction: column;
    text-align: center;
  }
  .sites-grille {
    grid-template-columns: 1fr;
  }
  .personne-carte {
    flex-direction: column;
    gap: 8px;
  }
} 
*/