@charset "UTF-8";
:root {
  --color-primary: #00AC66;
  --color-primary-hover: #006D41;
  --color-title: #000000;
  --color-text: #292929;
  --color-min: #A6A6A6;
  --color-menu: #F5F3EF;
  --color-footer: #FFFFFF;
  --color-background: #FAF9F7;
  --color-input-background: #EDF2F6;
  --color-input-border: #F0F0F0;
  --font-title: "Playfair Display", serif;
  --font-body: "Inter", sans-serif;
  --color-red: #CB2D2D;
  --color-block-background: #FFFFFF;
}

/* Reset simple */
body {
  margin: 0;
  background-color: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  height: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  display: flex;
  flex: 1; /* prend tout l’espace disponible */
}

/* Titres */
h1, h2, h3 {
  color: var(--color-title);
  font-family: var(--font-title);
}

.active {
  font-weight: bold;
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}

/* Header plein écran */
.site-header {
  width: 100%;
  height: 80px;
  background-color: var(--color-menu);
  display: flex;
  justify-content: center; /* centre le container interne */
}

/* Container interne limité à 1140px */
.header-container {
  width: 100%;
  max-width: 1140px;
  height: 100%;
  display: flex;
  justify-content: space-between; /* logo à gauche / nav à droite */
  align-items: center;
  padding: 0 1rem;
}

/* Bloc gauche */
.left-block {
  display: flex;
  align-items: center;
  gap: 6rem;
}

/* Logo */
.logo {
  background-image: url("/assets/img/logo.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  width: 155px;
  height: 51px;
}

/* Navigation */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 0;
}

.user-nav ul {
  list-style: none;
  display: flex;
  gap: 50px;
  margin: 0;
  padding: 0;
}

header nav a {
  color: var(--color-text);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 14px;
}

header nav a:hover {
  color: var(--color-title);
  font-weight: lighter;
}

/* Footer plein écran */
.site-footer {
  width: 100%;
  height: 61px;
  background-color: var(--color-footer);
  display: flex;
  justify-content: center;
}

/* Container interne limité à 1140px */
.footer-container {
  width: 100%;
  display: flex;
  justify-content: right;
  padding: 0 3rem;
}

/* Liens */
.footer-links {
  display: flex;
  align-items: center;
  gap: 45px;
}

.footer-links a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 300;
}

.footer-links a:hover {
  color: var(--color-title);
}

/* Logo */
.footer-logo img {
  width: auto;
  display: block;
}

/* Boutons */
.btn, .btn-primary {
  display: inline-block;
  background-color: var(--color-primary);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-family: var(--font-body);
  transition: background 0.2s;
}

.btn:hover, .btn-primary:hover {
  background-color: var(--color-primary-hover);
  color: #fff;
}

.messages-menu__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.messages-menu__icon {
  font-size: 1rem;
  line-height: 1;
}

.messages-menu__badge {
  background-color: #000000;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0 6px;
  border-radius: 12px;
  line-height: 1.2;
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
}

.account-add-book {
  margin-top: 15px;
  text-align: center;
}

.btn-add-book {
  display: inline-block;
  padding: 10px 18px;
  background-color: var(--color-primary);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.btn-add-book:hover {
  background-color: var(--color-primary-hover);
}

/* ----------------------------- */
/*  GLOBAL CONTAINER 1140px     */
/* ----------------------------- */
.home {
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ----------------------------- */
/*  SECTION 1 : HERO             */
/* ----------------------------- */
.home-hero {
  padding: 80px 0;
  background-color: var(--color-menu);
}

.home-hero-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
}

.home-hero-text {
  max-width: 380px;
}

.home-hero-text h1 {
  font-size: 48px;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.home-hero-text p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Bouton Découvrir : 152x63 */
.btn-hero {
  width: 152px;
  height: 63px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Image + crédit Hamza */
.home-hero-image img {
  display: block;
}

.hero-credit {
  margin-top: 0.5rem;
  font-size: 12px;
  color: #b3b3b3;
  text-align: right;
}

/* ----------------------------- */
/*  SECTION 2 : DERNIERS LIVRES  */
/* ----------------------------- */
.home-latest-books {
  padding: 50px 0;
  background-color: #FAF9F7;
}

.home-latest-books h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 400;
  margin-bottom: 5rem;
}

/* Bouton Voir tous les livres : 218x63 */
.btn-large {
  width: 218px;
  height: 63px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-books-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

/* ----------------------------- */
/*  SECTION 3 : COMMENT ÇA MARCHE */
/* ----------------------------- */
.home-how-it-works {
  padding: 50px 0;
  background-color: var(--color-menu);
  text-align: center;
}

.home-how-it-works h2 {
  font-size: 36px;
  font-weight: 400;
  margin-bottom: 1rem;
}

.home-how-description {
  font-size: 16px;
  font-weight: 300;
  max-width: 400px;
  margin: 1.5rem auto 3rem auto;
}

/* Grille 4 colonnes */
.home-how-steps {
  display: grid;
  grid-template-columns: repeat(4, 250px);
  justify-content: center;
}

/* Blocs 215x139 */
.home-how-step {
  background-color: #fff;
  width: 215px;
  height: 139px;
  margin: 0 auto;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-how-step p {
  font-size: 14px;
  width: 80%;
}

/* Bouton transparent bordure verte */
.btn-outline {
  width: 218px;
  height: 63px;
  border: 1px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
}

/* ----------------------------- */
/*  SECTION 4 : BANDEAU          */
/* ----------------------------- */
.home-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* ----------------------------- */
/*  SECTION 5 : NOS VALEURS      */
/* ----------------------------- */
.home-values {
  padding-top: 50px;
  padding-bottom: 90px;
  background-color: var(--color-menu);
}

/* Container interne 1140px */
.home-values .container {
  max-width: 392px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: left; /* texte aligné à gauche */
}

/* Titre */
.home-values h2 {
  font-size: 36px;
  font-weight: 400;
  margin-bottom: 2rem;
  text-align: left; /* important */
}

/* Paragraphes */
.home-values-content {
  max-width: 800px; /* largeur du bloc texte */
}

.home-values-content p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 1.2rem;
  text-align: left;
}

/* L’équipe + cœur */
.home-equipe-text p {
  margin: 0;
  margin-top: 40px;
  padding: 0;
  font-size: 12px;
  font-style: italic;
  color: #A6A6A6;
}

.home-equipe-icon {
  max-width: 392px;
  margin: auto;
}

.equipe-heart {
  width: 120px;
  height: auto;
  display: block;
  margin: -20px auto 0 336px;
}

/* Livres à  */
.page-container {
  max-width: 1440px; /* limite la largeur max */
  width: 100%;
  margin: 120px auto 0 auto;
  background-color: var(--color-background);
  padding-bottom: 5rem;
}

/* Header de la page */
.page-header-content {
  display: flex;
  justify-content: space-between; /* titre à gauche, search à droite */
  align-items: center;
  width: 920px; /* largeur des 4 cards + 3 gaps */
  margin: 0 auto 4rem auto; /* centré comme la grille */
}

/* Titre */
.page-header-content h1 {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 36px;
  margin: 0;
}

.search-bar {
  position: relative;
  width: 322px;
  height: 50px;
}

.search-bar input {
  width: 100%;
  height: 100%;
  border: none;
  font-family: var(--font-body);
}

.search-bar input::-moz-placeholder {
  color: var(--color-min); /* ou une autre couleur */
  padding-left: 40px;
}

.search-bar input::placeholder {
  color: var(--color-min); /* ou une autre couleur */
  padding-left: 40px;
}

.search-bar .search-btn {
  position: absolute;
  left: 5px;
  top: 55%;
  transform: translateY(-50%);
  border: none;
  background: none;
  cursor: pointer;
  font-size: 18px; /* taille de la loupe */
  color: var(--color-primary);
}

.search-icon {
  width: 16px;
  height: auto;
}

.no-results {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  text-align: center;
}

/* Grille des livres */
.books-grid {
  display: grid;
  grid-template-columns: repeat(4, 200px);
  gap: 50px 40px;
  width: -moz-fit-content;
  width: fit-content;
  margin: 0 auto;
}

/* Carte livre */
.book-card {
  width: 200px;
  height: auto; /* hauteur auto pour s’adapter au contenu */
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

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

/* Image au-dessus du texte */
.book-card img.book-cover {
  width: 200px;
  height: 200px;
  -o-object-fit: cover;
     object-fit: cover;
  margin-bottom: 10px; /* espace entre image et texte */
}

/* Texte */
.book-title {
  font-size: 16px;
  font-family: var(--font-title);
  margin-left: 15px;
  text-align: left;
  margin-bottom: 10px;
}

.book-author {
  font-size: 14px;
  color: var(--color-min);
  margin-left: 15px;
  margin-top: 0;
  text-align: left;
}

.book-seller {
  font-size: 10px;
  font-style: italic;
  color: var(--color-min);
  margin-left: 15px;
  text-align: left;
  margin-bottom: 25px;
}

/* Page Livre détaillé */
.book-show-body {
  display: flex;
  flex-direction: column;
}

.book-back {
  width: 1140px;
  margin: auto;
  display: inline-block;
  font-size: 14px;
  color: var(--color-min);
  text-decoration: none;
  margin-bottom: 1rem;
  margin-top: 40px;
}

.book-back:hover {
  text-decoration: underline;
}

.book-detail {
  display: flex;
  align-items: stretch;
  gap: 5rem;
  width: 1140px;
  background: var(--color-background);
  margin: 0 auto;
}

.book-cover-detail {
  width: 720px;
  height: auto;
}

.book-info {
  display: flex;
  flex-direction: column; /* contenu vertical */
  max-width: 485px;
}

.book-info h1 {
  margin-top: 50px;
  font-size: 36px;
  color: var(--color-title);
  font-family: var(--font-title);
  margin-bottom: 0;
}

.book-info .author {
  color: #A6A6A6;
  font-size: 16px;
  margin: 1rem 0;
}

.separator {
  border: none;
  border-top: 1px solid #ddd;
  margin: 10px 0; /* ligne de séparation de 50px */
  width: 50px;
}

.description-label {
  text-transform: uppercase;
  font-size: 8px;
  font-weight: bold;
  margin-bottom: 0;
  margin-top: 20px;
}

.description-text {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.status {
  font-size: 14px;
  margin: 1rem 0;
}

.owner p {
  text-transform: uppercase;
  font-size: 8px;
  font-weight: bold;
  margin-bottom: 0.3rem;
}

.owner-info {
  display: flex;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 20px;
  gap: 1rem;
  height: auto;
}

.owner-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%; /* ✅ photo ronde */
  -o-object-fit: cover;
     object-fit: cover;
}

.owner-name {
  font-size: 14px;
  text-decoration: none;
  color: var(--color-text);
}

.book-detail .btn {
  align-self: center;
  width: 485px;
  height: 63px;
  margin-top: auto;
  margin-bottom: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Page profil */
.profil-main {
  margin: auto;
  width: 100%;
  max-width: 1140px;
  padding: 2rem;
  background: var(--color-background);
}

/* Conteneur principal */
.profil-container {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

/* Blocs génériques */
.profil-block {
  display: flex;
  flex-direction: column;
  background: var(--color-block-background);
  border-radius: 20px;
  overflow: hidden;
}

/* Bloc gauche (profil) */
.profil-left {
  align-items: center;
  width: 341px;
  height: 579px;
}

.profil-info {
  display: flex;
  flex-direction: column;
  width: 135px;
  height: 367px;
  margin-top: auto;
}

.profil-photo {
  width: 135px;
  height: 135px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
  margin-bottom: 0;
}

.profil-details {
  text-align: center;
  margin-top: auto;
}

.profil-username {
  font-size: 24px;
  margin-bottom: 1rem;
  font-family: var(--font-title);
  color: var(--color-text);
}

.profil-member-since {
  font-size: 14px;
  color: var(--color-min);
  margin-bottom: 1.5rem;
}

.profil-section-title {
  text-transform: uppercase;
  font-size: 8px;
  font-weight: 600;
}

.profil-info p {
  font-size: 14px;
  margin: 0.3rem 0;
}

.profil-cta {
  width: 215px;
  height: 63px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-top: 1.5rem;
  background: var(--color-menu);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: 10px;
  cursor: pointer;
  margin: auto;
}

.profil-cta:hover {
  background-color: #008c52;
  color: #fff;
}

/* Bloc droit (tableau des livres) */
.profil-right {
  width: 771px;
}

.profil-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  table-layout: fixed;
}

.profil-table th,
.profil-table td {
  padding: 12px;
  text-align: left;
  word-wrap: break-word; /* évite les débordements */
  overflow-wrap: break-word; /* coupe proprement */
}

.profil-table td:first-child,
.profil-table th:first-child {
  padding-left: 40px;
}

.profil-table td:last-child,
.profil-table th:last-child {
  padding-right: 40px;
}

.profil-table td {
  font-size: 12px;
  color: var(--color-text);
}

.profil-table th {
  text-transform: uppercase;
  font-size: 8px;
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 2px solid var(--color-background);
}

.profil-table td:nth-child(4) {
  font-style: italic;
}

.profil-table tr {
  cursor: pointer;
}

.profil-table tr:nth-child(even) {
  background: var(--color-input-background);
}

.profil-book-pic {
  width: 78px;
  height: 100px;
}

.messagerie-main {
  background: var(--color-menu);
}

/* messagerie */
.messagerie-container {
  display: flex;
  gap: 20px;
  width: 1140px;
  margin: 0 auto;
  background: var(--color-menu);
}

/* Bloc gauche */
.messagerie-left {
  width: 308px;
  background: var(--color-background);
}

.messagerie-left h1 {
  font-size: 26px;
  font-weight: 400;
  margin-top: 60px;
  margin-left: 30px;
}

.conversation-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-block-background);
  cursor: pointer;
  height: 84px;
}

.conversation-card:hover {
  background: #f9f9f9;
}

.conversation-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
}

.conversation-info {
  margin-left: 15px;
}

.conversation-header {
  color: var(--color-text);
}

.conversation-date {
  font-size: 12px;
  color: var(--color-text);
}

.conversation-preview {
  color: var(--color-min);
  font-size: 12px;
  margin-top: 5px;
  margin-bottom: 0;
}

/* Bloc droit */
.messagerie-right {
  width: 70%;
  display: flex;
  flex-direction: column;
  background: var(--color-menu);
  margin-left: 30px;
}

/* Header en haut de la colonne droite */
.discussion-top-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  margin-top: 40px;
}

.discussion-top-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
}

.discussion-top-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.discussion-thread {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 15px;
}

/* Conteneur du message */
.discussion-message {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 15px;
  background: transparent; /* important : pas de fond ici */
}

/* HEADER : photo + date + heure sur la même ligne */
.message-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Photo */
.discussion-profile {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
}

/* Date + heure sur une colonne */
.discussion-meta {
  display: flex;
  flex-direction: row;
  align-items: first baseline;
  font-size: 12px;
  color: var(--color-min);
  gap: 5px;
}

/* MESSAGE : bande blanche uniquement ici */
.discussion-content {
  padding: 10px 15px;
  border-radius: 6px;
  color: var(--color-text);
  font-size: 12px;
  line-height: 1.4;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  max-width: -moz-fit-content;
  max-width: fit-content;
  margin: 0;
}

.discussion-message.sent {
  color: var(--color-text);
  font-size: 12px;
  align-items: flex-end;
  padding-left: 20px;
}

.discussion-message.sent .discussion-content {
  background: var(--color-input-background);
}

.discussion-message.received {
  color: var(--color-text);
  margin-right: auto;
}

.discussion-message.received .discussion-content {
  background: white;
}

.discussion-date {
  display: block;
  font-size: 12px;
}

.discussion-form {
  display: flex;
  gap: 20px;
  margin-bottom: 100px;
}

.discussion-form input {
  flex: 1;
  border-radius: 6px;
  border: none;
  padding-left: 20px;
}

.discussion-form input::-moz-placeholder {
  padding-left: 20px;
  padding-top: 15px;
  color: var(--color-min);
  font-size: 14px;
  font-family: var(--font-body);
}

.discussion-form input::placeholder {
  padding-left: 20px;
  padding-top: 15px;
  color: var(--color-min);
  font-size: 14px;
  font-family: var(--font-body);
}

.discussion-form button {
  width: 132px;
  height: 49px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
}

.discussion-form button:hover {
  background: var(--color-primary);
}

.visually-hidden {
  display: none;
}

/* Mobile */
@media (max-width: 768px) {
  .messagerie-container {
    flex-direction: column;
  }
  .messagerie-left, .messagerie-right {
    width: 100%;
  }
}
/* Page de connexion / inscription */
.auth-container {
  display: flex;
  margin: 0 auto;
}

.auth-left,
.auth-right {
  flex: 1;
  padding: 0 3rem;
}

.auth-left {
  background-color: #f9f9f9;
}

.auth-left h1 {
  margin-top: 210px;
  margin-bottom: 4rem;
  font-weight: 400;
  font-size: 36px;
  color: var(--color-title);
}

/* Formulaire */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 1rem;
  color: var(--color-min);
  font-size: 14px;
}

.form-group input {
  width: 322px;
  height: 50px;
  border: none;
}

/* Bouton CTA */
.cta {
  width: 322px;
  height: 63px;
  margin-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  cursor: pointer;
}

/* Liens sous le formulaire */
.auth-register,
.switch-auth {
  margin-top: 2rem;
  font-size: 14px;
  color: var(--color-text);
}

/* Liens cliquables */
.auth-register a,
.switch-auth-link {
  color: var(--color-text);
  font-weight: 500;
  transition: color 0.2s ease;
}

/* Page d'édition de livre */
.edit-body {
  width: 1140px;
  margin: auto;
  display: flex;
  flex-direction: column;
}

.edit-back {
  display: inline-block;
  font-size: 14px;
  color: var(--color-min);
  text-decoration: none;
  margin-bottom: 1rem;
  margin-top: 40px;
}

.edit-back:hover {
  text-decoration: underline;
}

.edit-title {
  font-size: 26px;
  color: var(--color-title);
  font-weight: 400;
  font-family: var(--font-title);
  margin-bottom: 20px;
}

.edit-container {
  display: flex;
  justify-content: space-between;
  background: var(--color-block-background);
  border-radius: 20px;
  padding: 30px;
}

.edit-block {
  padding: 20px;
}

.edit-left {
  padding: 10px;
}

.edit-right {
  padding: 10px;
}

.edit-block p {
  font-size: 14px;
  color: var(--color-min);
  margin-bottom: 10px;
}

.edit-cover-detail {
  width: 488px;
  height: auto;
  border-radius: 6px;
}

.edit-book-pic {
  max-width: 100%;
}

.edit-photo-link {
  margin-top: 1rem;
  font-size: 14px;
  color: var(--color-min);
  text-decoration: underline;
  display: flex;
  justify-content: end;
  cursor: pointer;
}

.edit-form label {
  display: block;
  margin-top: 15px;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-min);
}

.edit-form input,
.edit-form textarea,
.edit-form select {
  width: 435px;
  height: 50px;
  padding: 10px;
  background-color: var(--color-input-background);
  border: 1px solid var(--color-input-border);
  border-radius: 6px;
}

.edit-form textarea {
  min-height: 100px;
}

.edit-form {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.edit-submit {
  align-self: auto;
  width: 322px;
  height: 63px;
  margin-top: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  margin-top: 40px;
}

/* account */
.account-body {
  display: flex;
  flex-direction: column;
  margin: auto;
  width: 100%;
  max-width: 1140px;
  padding: 2rem;
  background: var(--color-background);
}

.account-title {
  font-size: 26px;
  font-weight: 400;
}

.account-container {
  display: flex;
  gap: 2rem;
}

.account-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--color-block-background);
  padding: 2rem;
  border-radius: 20px;
}

.account-left {
  width: 136px;
}

/* Bloc 1 : photo + lien */
.account-top {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.account-profile-pic {
  width: 135px;
  height: 135px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
  margin-bottom: 0;
}

.account-edit-link {
  color: var(--color-min);
  text-decoration: underline;
  font-size: 14px;
  margin-bottom: 1rem;
  display: inline-block;
}

.hidden {
  display: none !important;
}

/* Bloc 2 : infos */
.account-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 50px;
}

.account-username {
  font-size: 24px;
  margin-bottom: 1rem;
  font-family: var(--font-title);
  color: var(--color-text);
}

.account-member-since {
  font-size: 14px;
  color: var(--color-min);
  margin-bottom: 1.5rem;
}

.account-section-title {
  text-transform: uppercase;
  font-size: 8px;
  font-weight: 600;
}

.account-info p {
  font-size: 14px;
  margin: 0.3rem 0;
}

/* Formulaire */
.account-right {
  width: 100%;
}

.account-form-title {
  font-size: 16px;
  margin-bottom: 1rem;
}

.account-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* important pour éviter le centrage */
  margin: auto;
}

.account-form label {
  display: block;
  font-size: 14px;
  color: var(--color-min);
  margin-top: 1rem;
  font-weight: bold;
}

.account-form input {
  width: 322px;
  height: 50px;
  margin-top: 0.3rem;
  background-color: var(--color-input-background);
  border: 1px solid var(--color-input-border);
  border-radius: 6px;
}

.account-form button {
  width: 150px;
  height: 63px;
  margin-top: 1.5rem;
  background: var(--color-menu);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: 10px;
  cursor: pointer;
}

/* Tableau bibliothèque */
.account-block-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--color-block-background);
  border-radius: 20px;
  margin-top: 35px;
  overflow: hidden;
}

.account-table {
  width: 1140px;
  border-collapse: collapse;
  margin-top: 2rem;
  table-layout: fixed;
}

.account-table th, .account-table td {
  padding: 0.8rem;
  text-align: left;
}

.account-table td:first-child,
.account-table th:first-child {
  padding-left: 40px;
}

.account-table td {
  font-size: 12px;
  color: var(--color-text);
}

.account-table th {
  text-transform: uppercase;
  font-size: 8px;
  font-weight: 600;
  color: var(--color-text);
}

.account-table tr:nth-child(even) {
  background: var(--color-input-background);
}

.account-table td:nth-child(4) {
  font-style: italic;
  padding-right: 30px;
}

.account-book-pic {
  width: 78px;
  height: 100px;
}

.account-status {
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  display: inline-block;
}

.account-available {
  background: #6DC5A1;
  color: white;
  border: 1px solid #6DC5A1;
  border-radius: 20px;
}

.account-unavailable {
  background: #C56D6D;
  color: white;
  border: 1px solid #C56D6D;
  border-radius: 20px;
}

.account-action-links .edit {
  margin-right: 1rem;
  text-decoration: underline;
  color: var(--color-text);
  font-size: 12px;
}

.account-action-links .supprimer {
  margin-right: 1rem;
  text-decoration: underline;
  color: var(--color-red);
  font-size: 12px;
}

/* --- Pages statiques --- */
.static-page {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem 1.5rem;
  line-height: 1.7;
  font-size: 1.05rem;
  color: #333;
  display: block;
}

.static-page h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.static-page h2 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
}

.static-page p {
  margin-bottom: 1rem;
}

.static-page ul {
  margin: 0 0 1.5rem 1.2rem;
  padding-left: 1rem;
}

.static-page li {
  margin-bottom: 0.5rem;
}

/* Accessibilité : contraste + lisibilité */
.static-page strong {
  font-weight: 600;
}

.error-page {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem 1.5rem;
  line-height: 1.7;
  font-size: 1.05rem;
  display: block;
}

/* Page de création de livre */
.create-body {
  width: 1140px;
  margin: auto;
  display: flex;
  flex-direction: column;
}

.create-back {
  display: inline-block;
  font-size: 14px;
  color: var(--color-min);
  text-decoration: none;
  margin-bottom: 1rem;
  margin-top: 40px;
}

.create-back:hover {
  text-decoration: underline;
}

.create-title {
  font-size: 26px;
  color: var(--color-title);
  font-weight: 400;
  font-family: var(--font-title);
  margin-bottom: 20px;
}

.create-container {
  display: flex;
  justify-content: space-between;
  background: var(--color-block-background);
  border-radius: 20px;
  padding: 30px;
}

/* Bloc gauche */
.create-left {
  flex: 0 0 720px; /* largeur fixe pour l'image */
}

.create-left p {
  font-size: 14px;
  color: var(--color-min);
}

/* Image + placeholder */
.create-cover-detail {
  width: 720px;
  height: auto; /* ratio vertical (modifiable) */
  border-radius: 6px;
  -o-object-fit: cover;
     object-fit: cover;
  background: var(--color-input-background);
  border: 1px solid var(--color-input-border);
}

/* Placeholder avant upload */
.empty-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-min);
  font-size: 14px;
}

/* Bouton "Ajouter une photo" */
.create-photo-link {
  margin-top: 1rem;
  font-size: 14px;
  color: var(--color-min);
  text-decoration: underline;
  display: flex;
  justify-content: end;
  cursor: pointer;
}

/* Bloc droit */
.create-right {
  padding: 10px;
  flex: 1;
  max-width: calc(100% - 760px); /* 720px + padding */
}

/* Formulaire */
.create-form {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.create-form label {
  display: block;
  margin-top: 15px;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-min);
}

.create-form input,
.create-form textarea,
.create-form select {
  width: 100%;
  max-width: 435px;
  height: 50px;
  padding: 10px;
  margin-top: 5px;
  background-color: var(--color-input-background);
  border: 1px solid var(--color-input-border);
  border-radius: 6px;
}

.create-form textarea {
  min-height: 100px;
}

/* Bouton submit */
.create-submit {
  width: 322px;
  height: 63px;
  margin-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
}/*# sourceMappingURL=main.css.map */