@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
     outline: none;border: none;
    text-decoration: none;
    text-transform: capitalize;
    transition: .2s linear;
}
/* ==================== RESPONSIVE PROPRE ET SIMPLE ==================== */

/* Empêcher débordement horizontal global */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

main {
    width: 100%;
    overflow-x: hidden;
}

/* ===== TABLETTES (992px - 768px) ===== */
@media (max-width: 992px) {
    html { font-size: 55%; }
    
    /* Slider principal */
    .accuille .container .wrapper {
        min-height: 60vh;
    }
    
    #wrapperholder, #slidesContainer {
        height: 60vh;
    }
    
    #slidesContainer .slide,
    #slidesContainer .slide img {
        height: 60vh;
    }
    
    /* Contenu sur slider */
    .content {
        width: 65%;
        left: 5%;
    }
    
    .content h1 { font-size: 2.5rem; }
    
    /* Boutons */
    .button-container {
        bottom: 20px;
        left: 5%;
    }
    
    .btn-primary, .btn-secondary {
        width: 160px;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    /* Sections */
    .decorated-title {
        font-size: 28px;
        padding: 0 100px;
    }
    
    .decorated-title::before,
    .decorated-title::after {
        width: 80px;
    }
    
    /* Livres - 3 cartes */
    .book-card {
        min-width: calc((100% - 40px) / 3);
    }
    
    /* About us */
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== TABLETTES PORTRAIT (768px - 564px) ===== */
@media (max-width: 768px) {
    html { font-size: 50%; }
    
    /* Slider */
    .accuille .container .wrapper {
        min-height: 55vh;
    }
    
    #wrapperholder, #slidesContainer {
        height: 55vh;
    }
    
    #slidesContainer .slide,
    #slidesContainer .slide img {
        height: 55vh;
    }
    
    /* Contenu centré */
    .content {
        width: 75%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
    }
    
    .content h1 { font-size: 2rem; }
    .content .subtitle { font-size: 16px; }
    .content .description { font-size: 14px; }
    
    /* Boutons */
    .button-container {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 20px;
        justify-content: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 150px;
    }
    
    /* Titres */
    .decorated-title {
        font-size: 24px;
        padding: 0 50px;
    }
    
    .decorated-title::before,
    .decorated-title::after {
        width: 35px;
    }
    
    /* Catégories */
    .cat {
        min-width: 100%;
        max-width: 100%;
    }
    
    /* Livres - 2 cartes */
    .book-card {
        min-width: calc((100% - 20px) / 2);
    }
}

/* ===== MOBILES (564px et moins) ===== */
@media (max-width: 564px) {
    html { font-size: 50%; }
    
    /* === SLIDER PRINCIPAL === */
    .accuille {
        margin-top: 0 !important;
    }
    
    .accuille .container .wrapper {
        min-height: 50vh;
    }
    
    #wrapperholder, #slidesContainer {
        height: 50vh;
    }
    
    #slidesContainer .slide {
        height: 50vh;
        width: 100%;
    }
    
    #slidesContainer .slide img {
        height: 50vh;
        width: 100%;
        object-fit: cover;
    }
    
    /* Flèches */
    .slider-btn {
        width: 30px;
        height: 30px;
        font-size: 1.4rem;
    }
    
    .slider-btn.prev { left: 8px; }
    .slider-btn.next { right: 8px; }
    
    /* Contenu */
    .content {
        width: 88%;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        padding: 1rem;
    }
    
    .content h1 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }
    
    .content .subtitle {
        font-size: 13px;
        margin-bottom: 5px;
    }
    
    .content .description {
        font-size: 12px;
        line-height: 1.4;
        margin: 8px 0;
    }
    
    /* Boutons */
    .button-container {
        position: static;
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 10px;
        align-items: center;
    }
    
    .btn-primary, .btn-secondary {
        width: 180px;
        padding: 10px 20px;
        font-size: 13px;
        margin: 0;
    }
    
    /* === SECTIONS === */
    .mostcontent {
        padding-top: 30px;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .title-container {
        width: 100%;
        padding: 30px 5%;
        text-align: center;
        box-sizing: border-box;
    }
    
    /* TITRES SANS TRAITS SUR MOBILE - BIEN CENTRÉS */
    .decorated-title {
        font-size: 20px;
        padding: 0;
        position: relative;
        text-align: center;
        display: block;
        width: 100%;
        margin: 0 auto;
    }
    
    .decorated-title::before,
    .decorated-title::after {
        display: none;
    }
    
    .des {
        font-size: 13px;
        padding: 0 5%;
    }
    
    /* === CATÉGORIES === */
    .categorie {
        padding: 0 5%;
        gap: 15px;
    }
    
    .cat {
        min-width: 100%;
        max-width: 100%;
    }
    
    .category-image {
        height: 200px;
    }
    
    .info {
        padding: 15px;
    }
    
    /* === SLIDER LIVRES - 1.5 CARTE VISIBLE === */
    .slider-container {
        width: 100%;
        margin: 30px 0;
        padding: 0 3%;
    }
    
    .slider {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        padding: 10px 0;
    }
    
    .slider::-webkit-scrollbar {
        display: none;
    }
    
    /* 1 carte + moitié de la suivante = 1.5 carte */
    .book-card {
        flex: 0 0 65%;
        min-width: 65%;
        scroll-snap-align: start;
    }
    
    /* Dimensions book-card ajustées */
    .book-image {
        height: 280px;
    }
    
    .book-image img {
        width: 160px;
        height: 250px;
    }
    
    .book-info {
        padding: 12px;
    }
    
    .book-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .book-author {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }
    
    .book-prices-status {
        flex-wrap: nowrap;
        gap: 8px;
    }
    
    .book-prices {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }
    
    .price-paper, .price-digital {
        font-size: 0.95rem;
    }
    
    .book-status .badge {
        font-size: 0.75rem;
        padding: 4px 8px;
        white-space: nowrap;
    }
    
    /* Cacher les flèches */
    .scroll-btn {
        display: none;
    }
    
    /* Ribbon */
    .ribbon {
        width: 80px;
        height: 80px;
    }
    
    .ribbon span {
        width: 140px;
        padding: 4px 0;
        font-size: 10px;
        top: 15px;
        right: -40px;
    }
    
    /* Rating */
    .review-wrapper {
        top: 8px;
        right: 8px;
    }
    
    .book-rating {
        font-size: 0.8rem;
    }
    
    /* === ABOUT US === */
    .aboutus {
        padding: 30px 0;
    }
    
    .container1 {
        padding: 0 5%;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .content-text h3 {
        font-size: 2rem;
        text-align: center;
    }
    
    .content-text p {
        font-size: 13px;
    }
    
    .content-image {
        height: 250px;
    }
    
    .play-button {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    /* Stats */
    .stats-section {
        padding: 25px 5%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    /* Timeline */
    .timeline-section {
        padding: 0 5%;
    }
    
    .timeline-title {
        font-size: 1.8rem;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-item {
        margin-left: 40px;
    }
    
    .timeline-dot {
        left: 15px;
    }
    
    .timeline-content {
        padding: 15px;
    }
    
    /* === FOOTER === */
    .footer-container {
        padding: 0 5%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info h3 {
        font-size: 1.4rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* ===== TRÈS PETITS ÉCRANS (<400px) ===== */
@media (max-width: 400px) {
    .content h1 {
        font-size: 1.6rem;
    }
    
    .decorated-title {
        font-size: 18px;
    }
    
    /* Slider livres - un peu plus large sur très petits écrans */
    .book-card {
        flex: 0 0 70%;
        min-width: 70%;
    }
}

/* ===== ORIENTATION PAYSAGE ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .accuille .container .wrapper,
    #wrapperholder, #slidesContainer,
    #slidesContainer .slide,
    #slidesContainer .slide img {
        height: 85vh;
    }
    
    .content {
        width: 70%;
    }
    
    .content h1 {
        font-size: 1.5rem;
    }
    
    .button-container {
        flex-direction: row;
        gap: 8px;
    }
    
    .btn-primary, .btn-secondary {
        width: 130px;
        padding: 8px 15px;
    }
}
body {
    font-family: 'Montserrat', sans-serif;
background-image:url("../images/White\ Ripped\ paper\ Quote\ Instagram\ Story.png");
     position: relative;
    line-height: 1.6;
    
}
body.dark{
    background-image:url("../images/dark.jpg");
     position: relative;
}

/* sombre */
body.dark .decorated-title,
body.dark .content-text
 p {
  color: #f9fafb;
}
body.dark .decorated-title::after,
body.dark .decorated-title::before{
    background: #f9fafb;
}
main{
    padding-top: 90px; /* hauteur exacte de ton header */
  min-height: 100vh; /* pour éviter le footer collé */
  display: flex;
  flex-direction: column;
}


.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    z-index: 100;
    background-color: #dbdbda; 
    padding: 20px 5%;
    box-shadow: 0 .5rem 1rem rgb(0, 0, 0,.1);
    
}
.logo {
    display: flex;
    align-items: center;
    height: 40px;
    margin-left: 20px;
}
.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

html{
  font-size: 62.5%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  overflow-x: hidden;

}
header{
    position: fixed;
    top: 0;left: 0;right: 0;
      height: 80px;
    background: #fff;
    padding: 0 2rem;  
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    box-shadow: 0 .5rem 1rem rgb(0, 0, 0,.1);
    font-style: no;
    text-decoration: none !important;

}
header .navbar a,
header .navbar a:hover,
header .navbar a:focus,
header .icons a,
header .icons a:hover,
header .icons a:focus {
  text-decoration: none !important;
  outline: none !important; /* pour éviter le souligné/box bleu quand on clique */
}
header .navbar{
    margin-left: 30px;
}
header .navbar a{
    
    font-size: 2rem;
    font-weight: 600;
    padding: 0 1.5rem;
    color: #374151;
     font-family: 'Montserrat', sans-serif;
}
header .navbar a:hover{
    color: #0033ff;
}
header .icons {
    margin-right: 10px;
}
header .icons a {
    
 /* font-size: 2.5rem;
    color: #333;
    margin-left: 1.5rem;*/
    font-size: 18px;
  padding: 10px;
  border-radius: 50%;
  background: #f3f4f6;   /* gris clair */
  margin: 0 5px;
  transition: 0.3s;
   color: #052ed2;
    
}
header .icons a:hover{
     background: #1e40af;   /* bleu hover */
  color: white;
 
}
header #toggler{
    display: none;
}
/* cacher toggler & hamburger par défaut */
header #toggler,
header label,
header .overlay {
  display: none;
}
/* par défaut cacher le hamburger */
header label.fas.fa-bars {
  display: none !important; /* priorité max */
}
    /* Container du dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Sous-menu caché par défaut */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%; /* juste sous le bouton */
  left: 0;
  background-color: #fff;
  min-width: 200px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 6px;
  overflow: hidden;
  z-index: 2000;
}

/* Les liens du sous-menu */
.dropdown-content a {
  display: block;
  padding: 12px 15px;
  text-decoration: none;
  color: #374151;
  font-size: 1rem;
  transition: 0.2s;
}

.dropdown-content a:hover {
/*background: #1e40af;*/
  color: #fff;
}

/* Afficher le sous-menu quand hover */
.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  display: block;
}
.hide-mobile { display: inline-flex; }
.show-mobile { display: none; }

/* ===== RESPONSIVE LARGE 1200–992 ===== */
@media (max-width: 1200px) and (min-width: 992px) {
  header {
    padding: 1rem 3%;
  }
  header .navbar a {
    font-size: 1.4rem;
    padding: 0 0.8rem;
  }
  header .icons a {
    font-size: 1.6rem;
    margin-left: 0.8rem;
    padding: 6px;
  }
}

/* ===== SIDEBAR <992px ===== */
@media (max-width: 992px) {
  /* hamburger visible */
  header label.fas.fa-bars {
    display: block !important;
    font-size: 2.6rem;
    color: #333;
    cursor: pointer;
    z-index: 1100;
  }

  /* cacher profil/logout icônes en mobile */
  .hide-mobile { display: none !important; }
  .show-mobile { display: block !important; }

  /* sidebar bien hors écran */
  header .navbar {
    position: fixed;
    top: 0;
    left: -100%;   /* bien caché */
    height: 100%;
    width: 250px;
    background: #fff;
    display: flex;
    flex-direction: column;
    padding-top: 6rem;
    transition: left 0.3s ease;
    box-shadow: 2px 0 8px rgba(0,0,0,0.2);
    z-index: 1000;
    align-items: center;
    
  }

  header .navbar a {
    font-size: 2rem;
    padding: 2rem;
    border-bottom: 1px solid #eee;
    text-align: center;
    
  }

  /* overlay */
  header .overlay {
    display: block;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 900;
  }

  /* quand toggler actif */
  #toggler:checked ~ .navbar {
    left: 0;
  }
  #toggler:checked ~ .overlay {
    opacity: 1;
    visibility: visible;
  }
}

/* ===== MOBILE PUR <564px ===== */
@media (max-width: 564px) {
  header .navbar {
    width: 100vw; 
    transform: translateX(-100%); /* hors écran total */
    padding-top: 8rem;
    align-items: center;
    transition: transform 0.3s ease;
    box-shadow: none; /* pas d'ombre quand fermé */
  }
  header .navbar a {
    font-size: 2rem;
    text-align: center;
    padding: 1.8rem;
  }

  /* quand le toggler est activé */
  #toggler:checked ~ .navbar {
    transform: translateX(0); /* entre dans l’écran */
    box-shadow: 2px 0 8px rgba(0,0,0,0.2); /* ombre seulement ouvert */
  }
}


.acceuil{
     display: flex;
    align-items: center;
    min-height: 100vh;
    background:url(images/Design\ sans\ titre\ \(5\).png) no-repeat ;
    background-size: cover;
background-position: center;
}
/* Conteneur général */
.accuille {
    position: relative;
    overflow: hidden;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.1);
   margin-top: -90px;
}

.accuille .container .wrapper {
    width: 100%;  
    min-height: 100vh; /* Gardé */
    box-shadow: 10px 10px 10px rgba(0,0,0,.6);
  /*  padding-top: 5rem;*/
    overflow: hidden;
    position: relative;

}

/* Conteneur des slides */

#wrapperholder, #slidesContainer {
    
    display: flex;
    overflow: hidden;
    width: 100%;
    height: 100vh; /* Taille plus grande pour l’admin */
    position: relative;
   /* border-radius: 12px;*/
}

/* Slide individuel */
#slidesContainer .slide {
    min-width: 100%;
    height: 100%;
    display: none; /* Caché par défaut */
    transition: transform 0.6s ease-in-out;
}

#slidesContainer .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  /*  border-radius: 12px;*/
}

/* Flèches */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    transition: background 0.3s ease;
}

.slider-btn:hover {
    background: rgba(0,0,0,0.6);
    color: #ffcc00;
}

.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }

.content {
       font-family: 'Montserrat', sans-serif;
    position: absolute;
    width: 40%; /* Réduit pour ne pas rentrer dans l'image */
    top: 50%;
    left: 5%; /* Plus près du bord */
    transform: translateY(-50%);
    text-align: left;
    color: #fff;
    z-index: 15;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    min-height: auto; 
    /*new*/
     display: flex;
    flex-direction: column;
    justify-content: space-between; /* Répartit l'espace verticalement */
    min-height: 300px;
    
   
}
.content h1{
  font-size: 3.5rem;
            font-weight: 700;
            color: white;
            margin-bottom: 1rem;
            line-height: 1.2;
}
.content p {
    margin-bottom: 10x; /* Espacement entre les paragraphes */
}
.content .subtitle {
    font-size: 22px;
    margin-bottom: 2px;
    font-weight: 500;
    opacity: 0.9;
}

.content .description {
    font-size: 18px;
    line-height: 1.6;
    font-weight: 400;
    max-width: 100%; /* Utilise toute la largeur disponible */
    margin: 20px 0; /* Enlève le margin auto */
    margin-bottom: 20px;
}
/*.button-container {
    align-self: flex-end; 
    margin-top: 0; 
    position: absolute;
    bottom: -150px; 
    right: 0;
    margin-left: -85px;   
}*/
.button-container {
    position: absolute;
    bottom: 30px; /* distance depuis le bas */
    left: 30px;   /* distance depuis la gauche, change en 'right: 30px;' si tu veux droite */
    display: flex;
    gap: 15px;    /* espace entre les boutons */
    z-index: 10;  /* pour être au-dessus des slides */
}
.btn-primary, .btn-secondary {
    /* Styles communs */
    padding: 15px 30px; /* Augmenté */
    text-align: center;
    border-radius: 30px; /* Arrondi augmenté */
    font-weight: bold;
    font-size: 16px; /* Taille augmentée */
    cursor: pointer;
    transition: all 0.3s ease;
    width: 180px; /* Largeur augmentée */
    display: inline-block; /* Pour meilleur alignement */
     flex-shrink: 0;
}

.btn-primary {
   background: #f59e0b; /* Orange Pages Bleues */
    border: 2px solid #f59e0b;
    color: #1e3a8a; /* Bleu Pages Bleues */
    margin-bottom: 10px;
}

.btn-primary:hover {
    background: transparent;
    color: #0033ff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,51,255,0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-secondary:hover {
    background: white;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,255,255,0.3);
}
button{
  
width: 200px;
padding: 15px 0;
text-align: center;
margin: 0 10px;
border-radius: 25px;
font-weight: bold;
  background: transparent;
    border: 2px solid #0033ff;
    color: #0033ff;
}
.mostcontent{
  margin-top: 0;
  padding: 0;
/*  background-image:url("../images/White\ Ripped\ paper\ Quote\ Instagram\ Story.png");*/
     position: relative;
}

.title-container {

    width: 80%;
    text-align: center;
    padding-top: 100px; 
    margin: auto;
}

.decorated-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 600;
   color: #1e3a8a;
    display: inline-block; /* Permet le centrage et les pseudo-éléments */
    position: relative;
    padding: 0 250px; /* Espace pour les traits */
}

.decorated-title::before,
.decorated-title::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 230px; /* Longueur des petits traits */
    height: 2px;
    background: #1e3a8a;
    transform: translateY(-50%); /* Centrage vertical parfait */
}

.decorated-title::before {
    left: 0;
}

.decorated-title::after {
    right: 0;
}
.des{
     
            line-height: 1.8;
            color: #1c1c1c;
            max-width: 800px;
            margin: 0 auto;
              font-size: 18px;
    font-weight: 400;
}
.categorie{
      display: flex;
            gap: 30px;
            margin-top: 50px;
            justify-content: center;
            flex-wrap: wrap;
}
.cat{
              flex: 1;
            min-width: 300px;
            max-width: 350px;
            background: white;
            border-radius: 15px;
            box-shadow: 0 8px 25px rgba(0,0,0,0.1);
            overflow: hidden;
            transition: all 0.3s ease;
            position: relative;
            display: flex;
            flex-direction: column;
}
.cat:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 35px rgba(0,0,0,0.15);
        }
.category-image {
            width: 100%;
            height: 200px;
            background-size: cover;
            background-position: center;
            position: relative;
        }
.category-title {
    font-size: 1.5rem;
    color: #1e3a8a;
    margin-bottom: 10px;
    font-weight: 700;
}

  .category-description {
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
    margin-bottom: 20px;
}
 .info {
            padding: 25px;
            text-align: center;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        .category-btn {
            width: 100px;
              margin-left: auto;
            margin-right: auto;
            background:linear-gradient(135deg, #1e3a8a, #322ff5);
            color: white;
            padding: 12px 25px;
            border: none;
            border-radius: 25px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
        }

        .category-btn:hover {
            background: linear-gradient(135deg, #0400CC, #1e3a8a);
            transform: scale(1.05);
        }
        /*----------------------------best sellers ---------------------*/
        
 .bestsellers-section {
            max-width: 960px;
            margin: 0 auto;
            padding: 60px 20px;
        }

.books-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 25px;
            margin-bottom: 30px;
        }

        .book-card {
            background: white;
            border-radius: 15px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
            overflow: hidden;
            transition: all 0.3s ease;
            position: relative;
            min-height: 400px;
            display: flex;
            flex-direction: column;
        }

        .book-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        }

        
        .book-image {
            width: 100%;
            height: 300px;
            background: white;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }

        .book-image img {
            width: 190px;
            height: 280px;
            object-fit: cover;
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        }

        .book-info {
            padding: 20px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }

        .book-title {
            font-size: 1.1rem;
            font-weight: 600;
            color: #333;
            margin-bottom: 15px;
            line-height: 1.4;
            text-align: center;
            flex-grow: 1;
            margin: 0 auto;
        }
.book-author{
   font-size: 0.9rem; 
  color: #555;        
  line-height: 1.2;
  text-align: center;
  margin: 4px 0 0 0; 
  font-weight: 500;
}
       .book-prices-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.book-prices {
    display: flex;
    flex-direction: column;
    gap: 4px;
}


       .price-paper { font-size: 1.2rem; font-weight: 700; color: #333;
 }
.price-digital { font-size: 1.1rem; font-weight: 700; color: #333;
 }

.book-status .badge { text-align: center; font-size: 0.85rem; font-weight: 600; padding: 6px 12px; border-radius: 16px; }
.badge.available { background: #28a745; color: white; }
.badge.out_of_stock { background: #ef4444; color: white; }
.badge.suspended { background: #d89726; color: white; }
        .cart-icon {
            background:  #1e3a8a;
            color: white;
            border: none;
            border-radius: 8px;
            width: 35px;
            height: 35px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .cart-icon:hover {
            background: #d89726;
            transform: scale(1.1);
        }
        /******************************************************************slider*/
        
.ribbon {
    position: absolute;
    top: 0;
    right: 0;
   
    overflow: visible; /* Très important */
    z-index: 999; /* pour qu’il soit au-dessus de tout */
    width: 150px;
    height: 150px;
}
.ribbon span {
    position: absolute;
    display: block;
    width: 250px;
    padding: 8px 0;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.9), rgba(102, 184, 106, 0.9));
    color: #fff;
    font-weight: bold;
    text-align: center;
    font-size: 14px;
    letter-spacing: 1px;
    transform: rotate(45deg);
    top: 25px; 
    right: -65px; 
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
    z-index: 999;
    pointer-events: none;
}

    .slider-container {
    position: relative;
   margin: 50px auto; 
   margin-bottom: 0px !important;
    max-width: 1300px; 
    padding: 0 20px;
     justify-content: center; /* centre les cartes si moins de 4 */
    scroll-snap-type: x mandatory; /* pour snap par carte */
}
.book-card {
    min-width: calc((100% - 60px) / 4); /* 4 cartes visibles avec gap de 20px */
    scroll-snap-align: start; /* snap sur chaque carte */
}

.slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px;
    padding-bottom: 10px;
}

.slider::-webkit-scrollbar {
    display: none;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.95);
    border: 1px solid #e0e6ed;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #1e3a8a;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
}

.scroll-btn:hover {
    background: #1e3a8a;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.scroll-btn-left { left: -25px; }
.scroll-btn-right { right: -25px; }
        /******************************************aboutus**********************/
   .aboutus .title-container {
     padding-top: 10px;
    margin-top: 0;
   
  
}
.aboutus .decorated-title {
    margin-bottom: 30px;
}
.aboutus .title-container .des {
    max-width: 1200px;
}
.aboutus {
          margin-top: 0;
  padding: 0;
    background-image:url(images/White\ Ripped\ paper\ Quote\ Instagram\ Story.png);
     position: relative;
            padding: 80px 0;
        }

        .container1 {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .main-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: center; 
            margin-bottom: 80px;
        }

        .content-text {
            padding: 20px;
        }

        .content-text h3 {
            font-size: 3.5rem;
            color: #1c1c1c;
            margin-bottom: 20px;
            font-weight: bold;
        }
body.dark .content-text h3{
    color: white;
}

        .content-text p {
            font-size: 14px;
            color: #1c1c1c;
            margin-bottom: 20px;
            text-align: justify;
            font-weight: 200;
        }

        .highlight {
            color: #1e3a8a;
            font-weight: bold;
        }

        .italic {
            font-style: italic;
        }

        .content-image {
            position: relative;
            border-radius: 15px;
            overflow: hidden;
            background:black;
            height: 400px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 4rem;
        }
.content-image video {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Garde les proportions, montre tout */
}
/*.button-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
      z-index: 10;
    opacity: 0.8;
    transition: opacity 0.3s ease; 
}*/
/* Conteneur de la vidéo - Doit être en position:relative */
.content-image {
    position: relative;
     display: inline-block;
}

/* Style de base de la vidéo */
#myVideo {
    width: 100%;
    height: auto;
    display: block;
}

/*onteneur des boutons  */
.button-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
     pointer-events: none;
}
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.play-button:hover {
    background-color: rgba(0, 0, 0, 0.7);
}


        .stats-section {
            background: white;
            padding: 60px 0;
            margin: 40px 0;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 40px;
            text-align: center;
        }

        .stat-item {
            padding: 20px;
        }

        .stat-number {
            font-size: 3rem;
            font-weight: bold;
            color: #1e3a8a;
            margin-bottom: 10px;
        }

        .stat-label {
            font-size: 1.7rem;
            color: #1c1c1c;
            font-weight: 500;
        }

        .timeline-section {
            margin: 80px 0;
        }

        .timeline-title {
            text-align: center;
            font-size: 2.5rem;
            color: #1c1c1c;
            margin-bottom: 50px;
            font-weight: bold;
        }
body.dark .timeline-title{
    color: white;
}
        .timeline {
            position: relative;
            max-width: 1000px;
            margin: 0 auto;
        }

        .timeline::before {
            content: '';
            position: absolute;
            left: 50%;
            top: 0;
            bottom: 0;
            width: 3px;
            background: #1e3a8a;
            transform: translateX(-50%);
        }

        .timeline-item {
            position: relative;
            margin: 40px 0;
            display: flex;
            align-items: center;
        }

        .timeline-item:nth-child(odd) {
            flex-direction: row;
        }

        .timeline-item:nth-child(even) {
            flex-direction: row-reverse;
        }

        .timeline-content {
            background: white;
            padding: 30px;
            border-radius: 15px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
            width: 45%;
            position: relative;
        }

        .timeline-year {
            font-size: 1.5rem;
            font-weight: bold;
            color: #f59e0b;
            margin-bottom: 10px;
        }

        .timeline-text {
            color: #1c1c1c;
            line-height: 1.6;
        }

        .timeline-dot {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            width: 20px;
            height: 20px;
            background: #1e3a8a;
            border: 4px solid white;
            border-radius: 50%;
            box-shadow: 0 0 0 3px #f59e0b;
        }

       footer {
    background-color: #1e3a8a;
    color: white;
    padding: 40px 0;
    font-family: 'Montserrat', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info h3 {
    color: #f59e0b;
    font-size: 2rem;
    margin-top: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid #f59e0b;
    padding-bottom: 10px;
    display: inline-block;
}

.contact-item {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-icon {
    color: #f59e0b;
    margin-right: 15px;
    font-size: 12px;
    min-width: 40px;
}

.contact-item strong {
    display: block;
    margin-bottom: 5px;
    font-weight: 400;
    font-style: bold;
    font-size:13px ;
}

.contact-item small {
    font-size: 12px;
    opacity: 0.9;
    display: block;
    margin-top: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    background-color: #f59e0b;
    color: #1e3a8a;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: bold;
}
.social-link:hover{
background-color: #1e3a8a;
color: #f59e0b;
}
.map-container {
    background-color: rgba(255,255,255,0.1);
    border: 2px solid #f59e0b;
    border-radius: 8px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.map-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: center;
}

.map-container h3 {
    color: #f59e0b;
    margin-bottom: 10px;
    text-align: center;
}

.map-container p {
    text-align: center;
    opacity: 0.8;
    margin-bottom: 20px;
}

.map-placeholder {
    width: 100%;
    height: auto;
    margin-top: 15px;
    overflow: hidden;
    border-radius: 5px;
}

.map-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.copyright {
    margin-top: 40px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    opacity: 0.8;
}
.map-container .map1 {
    color: white;
}

/****************************modal**************************************/

/* Overlay du modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
}

/* Modal container */
.modal-container {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    padding: 0;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transform: scale(0.7);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

/* Header du modal */
.modal-header {
    background: linear-gradient(135deg, #1e3a8a);
    color: white;
    padding: 25px;
    border-radius: 20px 20px 0 0;
    text-align: center;
    position: relative;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255,255,255,0.2);
}

/* Corps du modal */
.modal-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(0,51,255,0.1);
}

.optional {
    color: #888;
    font-size: 12px;
}

/* Boutons */
.btn-login {
    width: 100%;
    padding: 12px;
    background: #1e3a8a;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    margin-left: -5px;
}
#loginModal .remember-forgot {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
    font-size: 14px;
    margin-bottom: 10px;
}
#loginModal .remember-forgot,
#loginModal .remember-forgot label,
#loginModal .remember-forgot a {
    display: flex !important;
    visibility: visible !important;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

.forgot-link {
    text-decoration: none;
    color: #007bff;
}

.forgot-link:hover {
    text-decoration: underline;
}

.btn-login:hover {
    background: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,51,255,0.3);
}

.signup-link {
    text-align: center;
    color: #666;
    font-size: 14px;
}

.signup-link a {
    color: #f59e0b;
    text-decoration: none;
    font-weight: 600;
}

.signup-link a:hover {
    text-decoration: underline;
}
        /* Responsive Design */
        @media (max-width: 768px) {
            .main-content {
                grid-template-columns: 1fr;
                gap: 40px;
            }

            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 30px;
            }

            .contact-grid {
                grid-template-columns: 1fr;
                gap: 40px;
            }

            .timeline::before {
                left: 30px;
            }

            .timeline-item {
                flex-direction: row !important;
                margin-left: 60px;
            }

            .timeline-content {
                width: 100%;
            }

            .timeline-dot {
                left: 30px;
            }

            .section-title h2 {
                font-size: 2rem;
            }

            .content-text h3 {
                font-size: 2rem;
            }
             .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .map-placeholder {
        height: 200px;
    }
    
     .content {
        width: 80%;
        top: 40%; /* Remonte légèrement */
    }
    
    .button-container {
        flex-direction: row; /* Garde les boutons côte à côte */
        flex-wrap: wrap;
        margin-top: 30px;
    }
    .btn-primary, .btn-secondary {
        width: 100%;
    }
        }
    