*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root{

    --beige: #f1e4cf;
    --blue: #0d1b2a;
    --white: #ffffff;
    --gold: #c8a96b;

}

body{

    font-family: 'Poppins', sans-serif;
    background: var(--white);
    color: #222;

}



/* ========================= */
/* HEADER PREMIUM */
/* ========================= */

body{
    margin:0;
    font-family: 'Poppins', sans-serif;
    background:#f5f5f5;
}

.premium-header {
    background: #FFFFFF;
    max-width: 1700px;   /* largeur horizontale */
    margin: 0 auto;      /* centré */
    padding: -3000px -6000px;  /* réduit la hauteur (verticalement) */
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
/* TOP */

.header-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:50px;
    flex-wrap:wrap;
}

/* LOGO */

.logo-side{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
	   text-align: center;      /* centre le texte du slogan */
}

.logo{
    width:250px;
    max-width:100%;
	    margin-top: -40px; /* fait monter le logo */
    margin-left: 60px; /* décale le logo vers la droite */
}

.slogan{
    font-size:15px;
    color:#0b1d4d;
    margin-top:-80px;
    font-weight:500;
    margin-left: 30px; /* décale le logo vers la droite */
}

.gold-line{
    width:300px;
    height:2px;
    background:#d4b483;
    margin-top:20px;
	    margin-left: 30px; /* décale le logo vers la droite */
}

/* RECHERCHE */

.search-container {
    width: 400px;       /* élargit horizontalement le rectangle */
    max-width: 100%;    /* garde la compatibilité responsive */
    padding: 10px 25px; /* ajuste la hauteur et l’espace interne */
	
    background:white;

    border-radius:60px;

    padding:-100px -200px;

    display:flex;
    align-items:center;

    gap:12px;

    box-shadow:0 5px 10px rgba(0,0,0,0.08);
}

.search-container i{
    color:#888;
    font-size:22px;
}

.search-container input{
    flex:1;
    border:none;
    outline:none;
    font-size:12px;
    font-family:'Poppins', sans-serif;
    background:transparent;
}

.search-container button{
    width:40px;
    height:40px;

    border:none;

    border-radius:50%;

    background:#031b49;

    color:white;

    font-size:28px;

    cursor:pointer;

    transition:0.3s;
}

.search-container button:hover{
    transform:scale(1.05);
}

/* MENU */

.premium-nav{
    width: 700px;       /* élargit horizontalement le rectangle */
	   margin: 0 auto;            /* centre horizontalement */
    margin-top:5px;

    background:linear-gradient(to right,#021634,#04285c);

    border-radius:25px;

    padding:-7000px;

    display:flex;

    justify-content:space-around;

    align-items:center;

    flex-wrap:wrap;

    box-shadow:0 10px 25px rgba(0,0,0,0.2);

    border-top:4px solid #d4b483;
}

.premium-nav a{

    color:white;

    text-decoration:none;

    font-size:15px;

    display:flex;

    align-items:center;

    gap:15px;

    transition:0.3s;

    padding:15px 25px;

    border-radius:15px;
}

.premium-nav a:hover{

    background:rgba(255,255,255,0.1);

    color:#f1d19c;
}

.premium-nav a.active{

    color:#f1d19c;
}
.premium-nav {
    justify-content: center; /* ou space-evenly / space-around selon ton besoin */
}

.premium-nav a {
    padding: 10px 15px; /* réduit l’espace horizontal entre les liens */
    margin: 0 5px;      /* ajoute un léger contrôle de distance entre les mots */
}

/* RESPONSIVE */

@media(max-width:900px){

    .premium-header{
        padding:30px;
    }

    .header-top{
        flex-direction:column;
        align-items:center;
        text-align:center;
    }

    .logo-side{
        align-items:center;
    }

    .logo{
        width:280px;
    }

    .search-container{
        width:100%;
    }

    .search-container input{
        font-size:16px;
    }

    .premium-nav{
        gap:20px;
    }

    .premium-nav a{
        font-size:18px;
    }
}

/* RESPONSIVE */

@media(max-width:900px){

    .premium-header{
        padding:30px;
    }

    .header-top{
        flex-direction:column;
        align-items:center;
        text-align:center;
    }

    .logo-side{
        align-items:center;
    }

    .logo{
        width:280px;
    }

    .search-container{
        width:100%;
    }

    .search-container input{
        font-size:16px;
    }

    .premium-nav{
        gap:20px;
    }

    .premium-nav a{
        font-size:18px;
    }
}

/* RESPONSIVE */

@media(max-width:768px){

    .topbar{
        flex-direction: column;
        text-align: center;
    }

    .logo-container{
        flex-direction: column;
    }

    .brand{
        font-size: 34px;
    }

    .search-box{
        width: 100%;
    }

    .menu ul{
        gap: 15px;
    }

    .menu a{
        padding: 12px 20px;
    }
}


/* HERO */

.hero{

    height: 100vh;

    background:
    linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
    url('https://images.unsplash.com/photo-1521587760476-6c12a4b040da?q=80&w=1200&auto=format&fit=crop');

    background-size: cover;
    background-position: center;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;

    padding: 20px;

}

.hero-content{

    max-width: 700px;
    color: white;

}

.hero h1{

    font-size: 60px;
    margin-bottom: 20px;

}

.hero p{

    margin-bottom: 30px;
    font-size: 18px;

}

.btn{

    background: var(--beige);

    padding: 15px 35px;

    color: var(--blue);

    text-decoration: none;

    border-radius: 40px;

    font-weight: bold;

}


/* BOOKS */

.books{

    padding: 100px 8%;

}

.books h2{

    text-align: center;
    margin-bottom: 50px;

    font-size: 40px;
    color: var(--blue);

}

.books-container{

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(280px,1fr));

    gap: 218px;

}

.card img {
    width: 8%;
    height: 300px;   /* diminue la hauteur de l’image */
    object-fit: cover;
    object-position: top; /* garde le haut visible (titres sur les couvertures) */
}

.card:hover{

    transform: translateY(-10px);

}

.card img {
    width: 8%;
    height: 420px;   /* augmente la hauteur pour mieux voir la couverture */
    object-fit: cover;
    margin-top: 0px; /* descend un peu l’image si besoin */
}
.card h3{

    padding: 15px;
    color: var(--blue);

}

.card p{

    padding: 0 15px;

}

.card span{

    display: block;

    padding: 15px;

    font-weight: bold;

    color: var(--gold);

}

.card button{

    width: 90%;

    margin: 15px;

    padding: 12px;

    border: none;

    background: var(--blue);

    color: white;

    border-radius: 10px;

    cursor: pointer;

}
.card:hover {
    transform: translateY(-10px);
}

.card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.card h3 {
    padding: 20px 15px;       /* plus d’espace autour du titre */
    color: var(--blue);       /* bleu marine */
    font-family: "Libre Baskerville", serif;
    font-size: 1.4rem;        /* agrandir la taille */
    font-weight: bold;        /* mettre en gras */
    text-align: center;       /* centrer le titre */
}

.card p {
    padding: 0 15px;
}

.card span {
    display: block;
    padding: 15px;
    font-weight: bold;
    color: var(--gold);
}

.card button {
    width: 90%;
    margin: 15px;
    padding: 12px;
    border: none;
    background: var(--blue);
    color: white;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.card button:hover {
    background: var(--gold);
    color: var(--blue);
}


/* ABOUT */

.about{

    background: var(--beige);

    padding: 100px 8%;

    text-align: center;

}

.about h2{

    font-size: 40px;

    color: var(--blue);

    margin-bottom: 20px;

}


/* CONTACT */

.contact{

    padding: 100px 8%;

}

.contact h2{

    text-align: center;

    margin-bottom: 40px;

    color: var(--blue);

}

form{

    max-width: 600px;

    margin: auto;

    display: flex;

    flex-direction: column;

    gap: 20px;

}

input,
textarea{

    padding: 15px;

    border: 1px solid #ccc;

    border-radius: 10px;

}

textarea{

    height: 150px;

}

form button{

    padding: 15px;

    border: none;

    background: var(--blue);

    color: white;

    border-radius: 10px;

    cursor: pointer;

}


/* FOOTER */

footer{

    background: var(--blue);

    color: white;

    text-align: center;

    padding: 25px;

}


/* RESPONSIVE */

@media(max-width:768px){

    header{

        flex-direction: column;

        gap: 15px;

    }

    .hero h1{

        font-size: 40px;

    }

}
/* ===== PAGE GENRES ===== */
.page-header {
    text-align: center;
    padding: 40px 0;
    background: var(--beige); /* fond beige */
}

.page-header h1 {
    font-size: 50px;
    color: var(--blue); /* bleu marine */
    margin-bottom: 10px;
    font-family: "Libre Baskerville", serif;
}

.page-description {
    font-size: 1.2rem;
    font-family: "Libre Baskerville", serif;
    color: var(--blue); /* bleu marine */
    margin-top: 10px;
}

/* Grille des genres */
.genres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 40px;
    padding: 50px 8%;
    align-items: start;
}

.genre-column h2 {
    text-align: center;
    color: var(--blue);
    margin-bottom: 20px;
}
.social-contact {
    text-align: center;
    padding: 50px 0;
    background: var(--beige);
}

.social-contact h2 {
    color: var(--blue);
    margin-bottom: 25px;
    font-family: "Libre Baskerville", serif;
    font-size: 2rem;
}

.social-contact .icons {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.social-contact .icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: var(--blue);
    color: var(--beige);
    border-radius: 50%;
    font-size: 1.5rem;
    transition: 0.3s;
    text-decoration: none;
}

.social-contact .icons a:hover {
    background: var(--gold);
    color: var(--blue);
    transform: scale(1.1);
}
