/* MINI GRID SYSTEM (replaces Bootstrap) */
.container-fluid {
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: 0;
  margin-right: 0;
}

[class^="col-"] {
  padding-left: 15px;
  padding-right: 15px;
  width: 100%;
}

.col-6 {
  width: 50%;
}

@media (min-width: 768px) {
  .col-md-3 { width: 25%; }
  .col-md-4 { width: 33.3333%; }
  .col-md-6 { width: 50%; }
  .col-md-12 { width: 100%; }
}

a {
  color: #222222;
  text-decoration: none;
}

a:hover {
  color: #666666;
  text-decoration: none;
}

* { box-sizing: border-box;}

html {
  padding-top: 15px;
  padding-left: 5%;
  padding-right: 5%; 
}

body {
  /*padding: 1rem;*/
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
}

.border {
  /*border: 1px #333333 dotted; */
}

/* MENU */
.titre {
  text-align: center;
}

.menu {
  list-style-type : none;
  list-style: none; /* ie7 */
  text-transform : uppercase;
  text-align: center;
  padding:0;
}

.menu li {
  display: inline;
  padding-right: 5px; /* between each picture */
}

.menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-left: 3%;
  padding-right: 3%;
}

.menu-row .titre {
  text-align: left;
}

.menu-wrapper {
  margin-left: auto;
}

.menu-wrapper .menu {
  text-align: right;
}

.social {
  list-style-type : none;
  list-style: none; /* ie7 */
  text-align: center;
}

.social li {
  display: inline;
  padding-right: 5px;
}

.img-social {
  width: 20px;
  height: 20px;
}

.img-todo {
  width: 40px;
  height: 40px;
}

/* PORTFOLIO */
.gallery-grid {
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(600px, 5fr));
  /* grid-gap: 1.5rem; */
  grid-gap: 0.1rem;
  justify-items: center;
  margin: 0;
  padding: 0;
}

/* Images */
.gallery-item {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.gallery-img {
  width: 100%;
  height: 450px;
  margin: 0;
  padding: 0;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease-in-out;
}

.gallery-item:hover .gallery-img {
  opacity: .85;
}

.gallery-bubble {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  background-color: rgba(255, 255, 255, 0.92);
  color: #222222;
  padding: 0.6rem 0.9rem;
  font-size: 1rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
  pointer-events: none;
}

.gallery-item:hover .gallery-bubble {
  opacity: 1;
  transform: translateY(0);
}

/* BOOKS */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 280px));
  gap: 2rem;
  padding: 2rem 0;
}

.book-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease-in-out;
}

.book-card:hover {
  opacity: .8;
  text-decoration: none;
  color: inherit;
}

.book-cover {
  width: 100%;
  height: 320px;
  object-fit: cover;
  margin-bottom: 0.75rem;
}

.book-title {
  margin: 0 0 0.25rem 0;
  font-size: 1.1rem;
}

.book-theme {
  display: block;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: #666666;
  margin-bottom: 0.5rem;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-free {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.badge-paid {
  background-color: #f5f5f5;
  color: #444444;
}

/* BOOK DETAIL */
.book-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding: 2rem 0;
}

.book-detail-cover {
  width: 100%;
  max-width: 320px;
  height: auto;
  object-fit: cover;
}

.book-detail-infos {
  flex: 1;
  min-width: 260px;
}

.book-detail-meta {
  color: #666666;
  margin: 0.25rem 0;
}

.book-detail-description {
  margin-top: 1rem;
  line-height: 1.6;
  max-width: 60ch;
}

.book-detail-links {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-book {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border: 1px solid #222222;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: #222222;
}

.btn-book:hover {
  background-color: #222222;
  color: #ffffff;
}

/* PROJECTS */
.projects-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.project-item {
  padding: 1rem 0;
  border-bottom: 1px solid #eeeeee;
}

.project-status {
  display: inline-block;
  width: 90px;
  text-align: center;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  margin-right: 0.75rem;
}

.project-done .project-status {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.project-in_progress .project-status {
  background-color: #fff3e0;
  color: #e65100;
}

.project-planned .project-status {
  background-color: #f5f5f5;
  color: #444444;
}

.project-title {
  font-weight: bold;
}

.project-description {
  margin: 0.4rem 0 0 0;
  color: #555555;
}

.project-link {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.9rem;
}

/* BIO */
.bio-text {
  max-width: 70ch;
  font-size: 1.05rem;
  line-height: 1.7;
}

.bio-text p {
  margin: 0 0 1.2rem 0;
}

.bio-text p:last-child {
  margin-bottom: 0;
}