/* ===== RESET / BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { height: 100%; font-size: 14px; }
body  { height: 100%; font-family: "Cera Pro Regular", sans-serif; background: #fff; color: #212529; }
h1,h2,h3,h4,h5,h6,p { font-family: "Cera Pro Regular", sans-serif; }
img   { max-width: 100%; display: inline-block; }
a     { color: inherit; text-decoration: none; }
small { font-size: 0.875em; }

@font-face {
  font-family: 'Cera Pro Regular';
  src: url('https://www.fbouju.net/fonts/CeraPro-Regular.eot');
  src: url('https://www.fbouju.net/fonts/CeraPro-Regular.eot?#iefix') format('embedded-opentype'),
       url('https://www.fbouju.net/fonts/CeraPro-Regular.woff') format('woff'),
       url('https://www.fbouju.net/fonts/CeraPro-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* ===== UTILITAIRES ===== */
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-secondary { color: #6c757d; }
.text-wrap    { overflow-wrap: break-word; }
.pb-0         { padding-bottom: 0 !important; }
.mr-auto      { margin-right: auto; }
.blockquote   { font-size: 1.1em; }
.shadow-sm    { box-shadow: 0 .125rem .25rem rgba(0,0,0,.075); }
.img-fluid    { max-width: 100%; height: auto; }
.copy         { color: rgba(0,0,0,.15); }
.title-shadow { text-shadow: 1px 1px 2px #DDDDDD; }

/* ===== BADGE ===== */
.badge {
  display: inline-block;
  padding: .25em .4em;
  font-size: 75%;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: .25rem;
}
.badge-secondary { color: #fff; background-color: #6c757d; }

/* ===== GRID ===== */
.container-fluid { width: 100%; padding-right: 15px; padding-left: 15px; }
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
  align-items: center;
}
[class^="col-"] { padding-right: 15px; padding-left: 15px; width: 100%; }

.col-1  { flex: 0 0 8.3333%;  max-width: 8.3333%; }
.col-2  { flex: 0 0 16.6667%; max-width: 16.6667%; }
.col-3  { flex: 0 0 25%;      max-width: 25%; }
.col-6  { flex: 0 0 50%;      max-width: 50%; }
.col-8  { flex: 0 0 66.6667%; max-width: 66.6667%; }
.col-10 { flex: 0 0 83.3333%; max-width: 83.3333%; }
.col-12 { flex: 0 0 100%;     max-width: 100%; }

@media (min-width: 768px) {
  .col-md-1  { flex: 0 0 8.3333%;  max-width: 8.3333%; }
  .col-md-2  { flex: 0 0 16.6667%; max-width: 16.6667%; }
  .col-md-10 { flex: 0 0 83.3333%; max-width: 83.3333%; }
  .col-md-12 { flex: 0 0 100%;     max-width: 100%; }
  .d-md-block { display: block !important; }
  .d-none     { display: none; }
  .d-md-none  { display: none !important; }
}
.d-block { display: block; }

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: .5rem 1rem;
  background: #fff;
  border-bottom: 1px solid #dee2e6;
  margin-bottom: 1.5rem;
}
.navbar-brand img { height: 25px; }

.navbar-toggler {
  display: none;
  background: transparent;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: .25rem;
  padding: .25rem .75rem;
  cursor: pointer;
}
.navbar-toggler-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0,0,0,0.5)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-size: 100%;
}

@media (max-width: 767px) {
  .navbar-toggler   { display: block; }
  .navbar-collapse  { display: none; width: 100%; flex-basis: 100%; }
  .navbar-collapse.show { display: flex; flex-direction: column; }
  .navbar-nav       { flex-direction: column; }
}
@media (min-width: 768px) {
  .navbar-collapse  { display: flex !important; align-items: center; flex-grow: 1; }
}

.navbar-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.navbar-nav .nav-link {
  display: block;
  padding: .5rem 1.25rem;
  color: rgba(0,0,0,.5);
  font-size: 1em;
}
.navbar-nav .nav-link.active { font-weight: bold; color: rgba(0,0,0,.9); }
.navbar-nav .nav-item:hover .nav-link {
  color: #007bff;
  text-decoration: underline;
  text-decoration-thickness: 3px;
}

.a_propos { color: rgba(0,0,0,.5); }
.a_propos:hover {
  color: #007bff;
  text-decoration: underline;
  text-decoration-thickness: 3px;
}

/* ===== CHEVRONS ===== */
.chevron { filter: invert(99%) sepia(4%) saturate(735%) hue-rotate(328deg) brightness(116%) contrast(76%); }
.chevron:hover { filter: invert(100%) sepia(100%) saturate(1%) hue-rotate(7deg) brightness(103%) contrast(101%); }
.cursor-left:hover  { cursor: url('https://www.fbouju.net/imgs/rsc/chevron-left.svg'), auto; }
.cursor-right:hover { cursor: url('https://www.fbouju.net/imgs/rsc/chevron-right.svg'), auto; }

/* ===== CADRE PHOTO ===== */
.cadre {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
}
.cadre:hover { cursor: url('https://www.fbouju.net/imgs/rsc/grid-3x3-gap.svg'), auto; }

/* ===== VIGNETTES ===== */
.small-vign {
  color: white;
  filter: opacity(100%);
  border: 0;
  transition: all 1s ease;
}
.small-vign:hover { color: black; filter: opacity(75%); }

.border-hover { border: 1px solid #fff; }
.border-hover:hover { border: 1px solid #ddd; transition: all 1s ease; }

/* ===== CARD COLUMNS (masonry) ===== */
.card-columns { column-count: 2; column-gap: 1rem; margin-bottom: 1.5rem; }
@media (min-width: 768px)  { .card-columns { column-count: 3; } }
@media (min-width: 1200px) { .card-columns { column-count: 4; } }

.card { display: inline-block; width: 100%; margin-bottom: 1rem; break-inside: avoid; }
.card-img-top { width: 100%; display: block; }

/* ===== POPOVER VANILLA (page photo detail uniquement) ===== */
.popover-trigger { position: relative; display: inline-block; }
.popover-box {
  display: none;
  position: absolute;
  z-index: 1000;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid rgba(0,0,0,.2);
  border-radius: .3rem;
  box-shadow: 0 .25rem .5rem rgba(0,0,0,.2);
  max-width: 300px;
  min-width: 200px;
  font-size: 12px;
}
.popover-right .popover-box { left: 110%; }
.popover-left  .popover-box { right: 110%; }
.popover-trigger:hover .popover-box { display: block; }
.popover-header {
  color: black;
  font-size: 11px;
  font-weight: bold;
  background-color: #fcfcfc;
  padding: .5rem .75rem;
  border-bottom: 1px solid #ebebeb;
  border-radius: .3rem .3rem 0 0;
}
.popover-body { color: #888; font-size: 9px; padding: .5rem .75rem; }
.popover-body img { width: 250px; display: block; }
