/* ================================ */
/* CONTAINER FULL WIDTH            */
/* ================================ */

.container {
  max-width: 100% !important;
  width: 100%;
  padding-left: 12px;
  padding-right: 12px;
  height: auto; /* ← IMPORTANT */
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1.2;
  /*color: inherit;*/
  color: #0b69a1;
  font-size: 16px;
  font-family: Avenir, sans-serif;
}

.h1Fred {
  font-size: 42px;
  color: #0b69a1;
}

.h2Fred {
  margin-left: 10px;
  font-size: 24px;
  color: #0b69a1;
}

form {
  /*margin:0px;*/
}

.left {
  float: left;
  width: 150px;
  height: 40px;
  margin: 10 auto;
}
.right {
  float: left;
  width: 120px;
  height: 40px;
  margin-left: 1500px;
  margin: 10 auto;
}
.center {
  float: left;
  width: 600px;
  height: 60px;
  margin-left: 180px;
  margin: 10 auto;
}

.divfloat {
  width: 200px;
  float: left;
  height: 60px;
  margin: 20px;
}

/* POUR LES ID */
#column1 {
  float: left;
  width: 20%;
}

#column2 {
  float: left;
  width: 65%;
}

#column3 {
  float: left;
  width: 6%;
}

/* **************** TITRE DE L'ALBUM ****************  */
.textarea_titre {
  font-size: 30px;
  font-family: "myriad-pro", "Myriad Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.5px;
  font: bold;
}
.textarea_titre {
  overflow: hidden;
  padding: 2px;
  line-height: 1.5;
  border-right: 0px;
  border-left: 0px;
  border-top: 0px;
  border-bottom: thick double #0b69a1;
  width: -webkit-fill-available;
  /*position: -webkit-sticky;*/
  /*position: sticky;*/
}

.textarea_titre_affiche {
  font-size: 16px;
  font-family: Avenir, sans-serif;
  font: bold;
  letter-spacing: 0.2px;
  overflow: hidden;
  padding: 2px;
  line-height: 1.5;
  border-right: 0px;
  border-left: 0px;
  border-bottom: 0px;
  border-top: thick double #0b69a1;
  border-radius: 5px;
  resize: none;
  width: -webkit-fill-available;
}

.textarea_titre_album {
  font-size: 12px;
  font-family: Avenir, sans-serif;
  letter-spacing: 0.2px;
}

.textarea_titre_album,
.textarea_titre_album:focus,
.textarea_titre_album:input,
.textarea_titre_album:change {
  overflow: hidden;
  outline: none !important;
  padding: 2px;
  line-height: 1.5;
  border-right: 0px;
  border-left: 0px;
  border-bottom: 0px;
  border-top: thick outset #cfebfc;
  border-radius: 5px;
  resize: none;
  width: -webkit-fill-available;
  outline-offset: 0px;
}

label {
  margin-bottom: 10px;
}

.textarea_titre {
  //resize: none;
  margin-bottom: 15px;
}

.textarea_titre:invalid {
  //border-bottom: thick double red;
  border-bottom: 1px solid red;
}

.textarea_titre:valid {
  //border-bottom: thick double #0b69a1;
  border-bottom: 1px solid #dadce0;
}

/* ******* OVERLAY ******** */

#fredoverlay {
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  cursor: pointer;
}

#textoverlay {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 100px;
  color: white;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
}

/* $$$$$$$$$$$$$$$ IMAGE CENTRALE DE L'OVERLAY $$$$$$$$$$$$$$ */

.conteneurImageCentre {
  width: 100%;
}

/* ******* OVERLAY sur bouton ******** */
/* ******* OVERLAY sur bouton ******** */
.overlay-data-title,
i.overlay-data-title {
  position: relative;
  display: inline-flex;
  text-transform: none;

  align-items: center;
  justify-content: center;
  letter-spacing: normal;
}

.overlay-data-title::after,
i.overlay-data-title::after {
  content: attr(data-title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: #0b69a1;
  color: #fff;
  font-family: Avenir, sans-serif;
  line-height: 1.25;
  font-size: 12px;
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  letter-spacing: normal;
  font: 400;
  font-style: inherit;
  font-variant: normal;
  text-rendering: auto;

  /*white-space: nowrap;
  max-width: 160px;*/
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.6s ease,
    transform 0.15s ease;
}

.overlay-data-title:hover::after,
i.overlay-data-title:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
  filter: brightness(1.05);
}

/* ===============================
   OVERLAY sous bouton
   =============================== */

.overlay-data-sous-title {
  position: relative;
  display: inline-flex;
}

/* Overlay uniquement */
.overlay-data-sous-title::after {
  content: attr(data-title);
  position: absolute;

  /* Position sous le bouton */
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);

  /* Apparence overlay */
  background: #0b69a1;
  color: #ffffff;

  /* Typographie de l’overlay SEULEMENT */
  font-family: Avenir, Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  font-style: normal;
  font-variant: normal;
  line-height: 1.25;
  letter-spacing: normal;
  text-transform: none;

  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  white-space: nowrap;

  opacity: 0;
  pointer-events: none;

  transition:
    opacity 0.25s ease,
    transform 0.15s ease,
    filter 0.15s ease;
}

/* Apparition */
.overlay-data-sous-title:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(10px);
  filter: brightness(1.05);
}

/* ===============================
   VARIANTE OVERLAY ROUGE
   =============================== */
/* ===============================
   EXCEPTION : overlay multi-ligne
   pour le bouton de suppression
   =============================== */

.overlay-data-sous-title.overlay--danger::after {
  background: #c0392b; /* rouge */
  color: #ffffff;
  white-space: normal;      /* autorise retour à la ligne */
  max-width: 180px;         /* largeur lisible */
  text-align: center;       /* esthétique */
}

/* --------------- COLONNES DU HAUT ------------- https://codepen.io/leetheguy/pen/LKYpqb */

.g-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-content: stretch;
}

.gs3 {
  grid-column-end: span 3;
}

.go0 {
  grid-column-start: 1;
  text-align: left;
}
.go1 {
  grid-column-start: 2;
  text-align: left;
}
.go2 {
  grid-column-start: 3;
  text-align: right;
}

/* La ligne dans admin pour tous les albums et les répertoires */
.bandeau-grid {
  display: grid;
  grid-template-columns:
    18px /* num  */
    12px /* flèche */
    minmax(140px, 220px) /* status */
    70px /* actions edit */
    minmax(100px, 200px) /* protect switch */
    minmax(120px, 1fr) /* nom répertoire */
    minmax(180px, 300px); /* zone droite */
  align-items: center;
  column-gap: 4px;
}

/* Les "cellules" */
.bandeau-grid .col {
  min-width: 0; /* évite les débordements */
}

/* Les "cellules" */
.bandeau-grid .col-num {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Colonne droite alignée à droite */
.bandeau-grid .col-right {
  justify-self: end; /* colle la cellule à droite */
  width: 100%; /* IMPORTANT : occupe toute la largeur de la colonne */
  display: flex; /* flex (pas inline-flex) pour que width:100% serve */
  justify-content: flex-end; /* et là tu colles le contenu à droite */
  align-items: center; /* alignement vertical */
  gap: 8px;
}

/* Si le nom est trop long -> ellipsis
.bandeau-grid .col-name{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
} */

.bandeau-grid .col-name,
.bandeau-grid .col-status {
  white-space: normal;
  word-break: break-word;
}

.bandeau-grid .col-name {
  padding-left: -6px;
  margin-left: -6px;
}

/* Autoriser les retours à la ligne dans des colonnes texte */
.bandeau-grid .col-status,
.bandeau-grid .col-name {
  white-space: normal; /* autorise retour ligne */
  overflow: visible; /* pas de coupe */
  text-overflow: initial; /* pas d'ellipsis */
  word-break: break-word; /* casse les mots longs */
}

.bandeau-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ===================================================== */
/*  BARRE ACTIONS (HAUT ADMIN) : WRAP PROPRE             */
/* ===================================================== */

/* 1) La barre du haut de admin.php (actions-ligne...) */
.actions-ligne{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;          /* ✅ retour ligne propre */
}

/* Forms comme items flex stables */
.actions-ligne form{
  margin: 0;
  display: flex;            /* ✅ évite comportement bloc */
  align-items: center;
}

/* Les liens qui contiennent un bouton */
.actions-ligne a{
  display: inline-flex;     /* ✅ évite retours moches */
  align-items: center;
}

/* Ton item “à droite” sur grand écran */
.actions-ligne .push-right{
  margin-left: auto;        /* ✅ pousse à droite tant que ça tient */
}

/* En écran étroit : on annule le push-right pour éviter les trous */
@media (max-width: 900px){
  .actions-ligne{
    justify-content: center; /* joli centrage quand ça wrap */
  }
  .actions-ligne .push-right{
    margin-left: 0;          /* ✅ sinon ça crée un espace vide */
  }
}

/* Optionnel mais recommandé : éviter que certains items forcent une largeur énorme */
.actions-ligne > *{
  min-width: 0;
}
/* ===================================================== */



.lien-bouton {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  text-decoration: none;
}

.push-right {
  margin-left: auto;
}

/* ================================================= */
/* ARRONDI VISUEL STABLE POUR NANOGALLERY2           */
/* (SANS IMPACT LAYOUT / ANIMATION)                 */
/* ================================================= */

#un_album_nanogallery2 .nGY2GThumbnailImage {
  outline: 12px solid #ffffff; /* couleur du fond */
  border-radius: 12px;
}



.zip-bar-bg {
  width: 120px;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

#zip-progress-bar {
  height: 100%;
  width: 0%;
  background: #4caf50;
  transition: width .2s linear;
}

/* changement de photo couverture d'album */
./* ancrage fiable sur la vignette nanogallery */
.photo-item .nGY2GThumbnail {
  position: relative;
}

/* étoile cover */
.photo-item.is-cover .cover-star {
  position: absolute;
  top: 6px;
  right: 8px;
  z-index: 50;

  font-size: 26px;
  color: gold;
  text-shadow: 0 0 4px rgba(0,0,0,0.8);

  pointer-events: none;
}

.photo-item.is-cover .nGY2GThumbnail img {
  outline: 4px solid gold;
  outline-offset: -4px;
}

/* FIXE LE BANDEAU EN HAUT DE LA PAGE */
.actions-sticky {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: #ffffff;
  padding: 10px 0;
  margin-bottom: 10px;

  display: flex;
  gap: 10px;
  flex-wrap: wrap;

  /* Séparation visuelle */
  border-bottom: 1px solid #ddd;
  /* léger effet “barre admin” */
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

/* Pousse l’action dangereuse à droite */
.actions-sticky .action-right {
  margin-left: auto;
}

/* COULEURS SI ON EST EN TRAIN DE CONSULTE D'AUTRES ALBUM QUE LES SIENS */
/* COULEURS SI ON EST EN TRAIN DE CONSULTE D'AUTRES ALBUM QUE LES SIENS */
/* COULEURS SI ON EST EN TRAIN DE CONSULTE D'AUTRES ALBUM QUE LES SIENS */
.albums-mine {
  color: #2c5aa0; /* bleu standard */
}

.albums-others {
  color: #c0392b; /* rouge admin */
  font-weight: 700;
}

/* albums du compte courant */
.album-footer-mine {
  color: #2c5aa0;
}

/* albums des autres utilisateurs */
.album-footer-others {
  color: #c0392b;                 /* rouge admin */
  border-top: 1px solid rgba(192,57,43,0.35);
}

/* optionnel : renforcer certains textes */
.album-footer-others .album-title,
.album-footer-others .album-meta-line {
  color: #c0392b;
}
