/* ============================================
   ABOUT PAGE - LANGUAGE BUTTONS
   ============================================ */
.btn-lang {
  background-color: #fff;
  color: #333;
  border: 1px solid #666;
  border-radius: 4px;
  padding: 4px 14px;
  font-size: 0.85rem;
  margin: 0 3px;
  cursor: pointer;
  transition: background-color 0.2s;
}
.btn-lang:hover {
  background-color: #e0e0e0;
}
.btn-lang.active {
  background-color: #e0e0e0;
  border-color: #333;
}
/* ============================================
   ABOUT PAGE - IMAGE POSITION
   ============================================ */
.image-holder {
  margin-top: 120px;
}
/* ============================================
   HEADER - MENU LINKS
   ============================================ */
header.transparent-style .navbar-nav > li > a,
header.transparent-overlay .navbar-nav > li > a,
header.transparent-overlay2 .navbar-nav > li > a {
  color: #ffffff !important;
}
header.transparent-style .navbar-nav > li > a:hover,
header.transparent-overlay .navbar-nav > li > a:hover,
header.transparent-overlay2 .navbar-nav > li > a:hover {
  color: #fff !important;
  font-weight: 600 !important;
}
/* ============================================
   HEADER - MENU BACKGROUND
   ============================================ */
header .container-fluid {
  background-color: #666 !important;
}
/* ============================================
   HEADER - DROPDOWN MENU BACKGROUND
   ============================================ */
.dropdown {
  background-color: #666666 !important;
}
/* ============================================
   GLOBAL - FIXED HEADER OFFSET
   ============================================ */
body {
  padding-top: 80px;
}
@media (max-width: 991px) {
  body {
    padding-top: 60px;
  }
}
/* ============================================
   PHOTOGRAPHE PAGE - IMAGE SHADOWS
   ============================================ */
.services-post .image-holder img {
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}
.gallery-post img {
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}
/* ============================================
   PHOTOGRAPHE PAGE - IMAGE DETAIL
   ============================================ */
.image-holder img {
  margin-top: 20px;
  border: 2px solid #ffffff;
  border-radius: 4px;
}
/* ============================================
   PHOTOGRAPHE PAGE - TITLE & SPACING
   ============================================ */
.services-section .container > h1 {
  font-size: 2em !important;
  font-weight: 600 !important;
  margin-bottom: 10px !important;
  font-family: inherit !important;
}
.services-section .services-post {
  margin-bottom: 20px !important;
}
.services-section {
  padding-top: 80px !important;
}
/* ============================================
   LIGHTBOX - IMAGE DETAIL (PLEIN ÉCRAN)
   ============================================ */
.mfp-container {
  padding: 170px 40px 40px 40px !important;
}
.mfp-content {
  vertical-align: top !important;
  margin: 0 auto !important;
}
.mfp-content img {
  display: block !important;
  margin: 0 auto !important;
  padding: 4px !important;
  background: #fff !important;
  border: none !important;
  border-radius: 3px !important;
  box-sizing: border-box !important;
  max-width: calc(100vw - 80px) !important;
  max-height: calc(100vh - 240px) !important;
}
.mfp-bottom-bar {
  left: 20px !important;
  right: 20px !important;
  bottom: 20px !important;
  width: auto !important;
  background: rgba(0, 0, 0, 0.6) !important;
  padding: 12px 20px !important;
  box-sizing: border-box !important;
  display: none !important;
}
.mfp-title {
  color: #fff !important;
  padding-left: 0 !important;
}
.mfp-counter {
  color: #fff !important;
  right: 20px !important;
}
.mfp-close {
  position: fixed !important;
  top: 15px !important;
  right: 15px !important;
  color: #fff !important;
  font-size: 34px !important;
  opacity: 1 !important;
  z-index: 99999 !important;
}
.mfp-content::after {
  content: "Cliquez en dehors de l'image pour fermer";
  display: block;
  text-align: center;
  color: #fff;
  font-size: 14px;
  margin-top: 10px;
}
/* ============================================
   LIGHTBOX - BACKGROUND OVERLAY (FORCE)
   ============================================ */
.mfp-bg,
.mfp-wrap,
.mfp-container {
  background: rgba(0, 0, 0, 1) !important;
}
.mfp-bg {
  opacity: 1 !important;
  filter: none !important;
}
/* ============================================
   UPLOAD PAGE
   ============================================ */
.upload-section {
  padding-top: 120px;
  max-width: 1000px;
  margin: 0 auto;
  padding-bottom: 50px;
}
.upload-section h1 {
  margin-bottom: 30px;
}
.upload-info {
  background: #f0f7ff;
  padding: 15px;
  border-left: 2px solid #2196f3;
  margin-bottom: 20px;
  border-radius: 4px;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}
.upload-info p {
  margin: 0;
  color: #333;
  font-size: 0.95rem;
}
.upload-message-vide {
  color: #333;
  background: #c8c8c8;
  padding: 10px 15px;
  border-radius: 4px;
  font-weight: bold;
}
#uploadStatus {
  display: none;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
  background: #739dd0;
  color: #ffffff;
}
#uploadStatus .progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
#uploadStatus .progress-header #progressText {
  color: #ffffff;
}
#uploadStatus .progress-header #progressPercent {
  color: #ffffff;
}
#uploadStatus .progress-bar-bg {
  width: 100%;
  height: 20px;
  background: #c8c8c8;
  border-radius: 10px;
  overflow: hidden;
}
#uploadStatus #progressBar {
  width: 0%;
  height: 100%;
  background: #3a3f48;
  border-radius: 10px;
  transition: width 0.3s;
}
#uploadStatus.upload-success {
  background: #3a3f48;
}
#uploadStatus.upload-success #progressText {
  color: #ffffff;
}
#uploadStatus.upload-success #progressPercent {
  color: #ffffff;
}
#uploadStatus.upload-error {
  background: #c00;
}
#uploadStatus.upload-error #progressText {
  color: #ffffff;
}
#uploadStatus.upload-error #progressPercent {
  color: #ffffff;
}
.upload-warning {
  color: orange;
}
.upload-form-group {
  margin-bottom: 20px;
}
.upload-form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}
.upload-form-group select,
.upload-form-group input[type="file"] {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
}
.upload-form-group .help-text {
  font-size: 0.8rem;
  color: #888;
  margin-top: 5px;
}
.upload-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.upload-buttons .btn-upload {
  padding: 10px 30px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.upload-buttons .btn-vider {
  padding: 10px 30px;
  background: #c00;
  color: #fff;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}
.upload-buttons .btn-retour {
  padding: 10px 30px;
  background: #555;
  color: #fff;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
}
.upload-dossier-content {
  margin-top: 30px;
  border-top: 1px solid #ddd;
  padding-top: 20px;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  padding: 20px;
}
.upload-dossier-content .dossier-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}
.upload-dossier-content .dossier-header h3 {
  margin: 0;
}
.upload-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
  max-height: 400px;
  overflow-y: auto;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 6px;
}
.upload-image-grid .image-item {
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  text-align: center;
}
.upload-image-grid .image-item img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  display: block;
}
.upload-image-grid .image-item .image-name {
  font-size: 0.6rem;
  padding: 3px;
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload-image-grid .empty-message {
  color: #999;
  grid-column: 1 / -1;
}
.upload-footer-note {
  margin-top: 20px;
  color: #888;
  font-size: 0.85rem;
}
/* ============================================
   ADMIN PAGE
   ============================================ */
.admin-section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.admin-section h1 {
  margin-bottom: 30px;
}
.admin-section .btn-upload {
  display: inline-block;
  padding: 8px 20px;
  background: #555;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  margin-bottom: 20px;
}
.admin-section .form-container {
  background: #f5f5f5;
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 40px;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}
.admin-section .form-container h2 {
  font-size: 1.2rem;
  margin-bottom: 15px;
}
.admin-section .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.admin-section .form-grid input {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.admin-section .form-textarea-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 15px;
  margin-top: 15px;
}
.admin-section .form-textarea-grid textarea {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
}
.admin-section .btn-submit {
  margin-top: 15px;
  padding: 8px 30px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.admin-section .btn-cancel {
  margin-left: 15px;
  color: #666;
}
.admin-section .table-list {
  width: 100%;
  border-collapse: collapse;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}
.admin-section .table-list thead tr {
  background: #333;
  color: #fff;
}
.admin-section .table-list th,
.admin-section .table-list td {
  padding: 10px;
  text-align: left;
}
.admin-section .table-list tbody tr {
  border-bottom: 1px solid #eee;
}
.admin-section .table-list .btn-modifier {
  color: #333;
  margin-right: 10px;
}
.admin-section .table-list .btn-supprimer {
  color: #c00;
}
.upload-form-group .help-text-warning {
  font-size: 0.8rem;
  color: #c00;
  margin-top: 5px;
}
/* ============================================
   BOUTONS UNIFORMISÉS
   ============================================ */
.btn-upload,
.btn-vider,
.btn-retour,
.btn-submit,
.admin-section .btn-upload {
  padding: 6px 20px !important;
  height: 36px !important;
  line-height: 24px !important;
  font-size: 0.85rem !important;
  border: none !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  text-decoration: none !important;
  display: inline-block !important;
  text-align: center !important;
  background: #333 !important;
  color: #fff !important;
}
.btn-vider {
  background: #333 !important;
}
.btn-retour {
  background: #333 !important;
}
.admin-section .btn-upload {
  background: #333 !important;
}
.admin-section .form-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 15px;
  flex-wrap: wrap;
}
.admin-section .btn-upload {
  display: inline-block;
  padding: 6px 20px;
  height: 36px;
  line-height: 24px;
  font-size: 0.85rem;
  background: #333;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  text-align: center;
}
.admin-section .btn-cancel {
  display: inline-block;
  padding: 6px 20px;
  height: 36px;
  line-height: 24px;
  font-size: 0.85rem;
  background: #333;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  text-align: center;
}
.admin-section .form-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 15px;
  flex-wrap: wrap;
}
.admin-section .btn-upload {
  margin-bottom: 0 !important;
}
.admin-section .btn-submit {
  margin-top: 0 !important;
}
.admin-section .form-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 15px;
  flex-wrap: wrap;
}
.admin-section .btn-submit,
.admin-section .btn-upload,
.admin-section .btn-cancel {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 20px !important;
  height: 36px !important;
  line-height: 1 !important;
  font-size: 0.85rem !important;
  background: #333 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 4px !important;
  text-decoration: none !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}
/* ============================================
   SLIDER - ADMIN LINK
   ============================================ */
.tp-caption a[href*="gestion"] {
  color: #ffffff !important;
  text-decoration: none !important;
}
.tp-caption a[href*="gestion"]:hover {
  color: #ffffff !important;
  text-decoration: underline !important;
}
