body {
  font-family: 'Urbanist', sans-serif;
  color: #222;
}

h1, h2, h3, h4, h5 {
  font-weight: 700;
}

a {
    color: #7822C8;
}

.btn-primary {
  background: linear-gradient(90deg, #7821c7, #3c52f8);
  border: none;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background: transparent;
  border: 2px solid #7821c7;
  color: #7821c7;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: linear-gradient(90deg, #7821c7, #3c52f8);
  color: #fff;
  border-color: transparent;
}


.features {
  background: linear-gradient(90deg, #7821c7, #3c52f8);
}

.feature-box {
  transition: transform 0.2s ease;
}

.feature-box:hover {
  transform: translateY(-5px);
}

footer a {
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Connexion */

/* --- LOGIN PAGE --- */

.login-wrapper {
  min-height: calc(100vh - 80px); /* occupe la hauteur restante */
  background: linear-gradient(135deg, #7821c7, #3c52f8);
  padding: 40px 20px;
}

.login-card {
  background: #fff;
  max-width: 500px;
  width: 100%;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(20,20,33,0.15);
}

.login-card h1 {
  font-family: 'Urbanist', sans-serif;
}

.login-card .form-label {
  font-weight: 600;
  margin-bottom: .4rem;
}

.login-card .form-control {
  border-radius: 10px;
  padding: 10px 14px;
  border: 1px solid #ddd;
  font-size: 0.95rem;
}

.login-card .form-control:focus {
  border-color: #7821c7;
  box-shadow: 0 0 0 3px rgba(120,33,199,0.15);
}

.login-card .btn-primary {
  border-radius: 10px;
  font-weight: 600;
  background: linear-gradient(90deg, #7821c7, #3c52f8);
  border: none;
}

.login-card .btn-primary:hover {
  opacity: 0.95;
}

.login-card .alert {
  border-radius: 10px;
  font-size: 0.9rem;
}

.login-logo {
  display: block;
  margin: 0 auto 12px auto;
}

/* Nav user */
/* --- NAV UTILISATEUR --- */
.navbar .btn-primary {
  background: linear-gradient(90deg, #7821c7, #3c52f8);
  border: none;
  border-radius: 10px;
  font-weight: 600;
  padding: 8px 16px;
}

.navbar .btn-primary:hover {
  opacity: 0.9;
}

.navbar .dropdown-menu {
  border-radius: 12px;
  padding: .5rem;
}

/* Dashboard*/
/* --- DASHBOARD --- */
.gallery-card {
  border-radius: 14px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}

.gallery-card img {
  height: 180px;
  object-fit: cover;
}

.gallery-card .badge {
  border-radius: 20px;
  font-size: .8rem;
  padding: .4rem .7rem;
}

.btn-outline-primary {
  border-color: #7821c7;
  color: #7821c7;
}
.btn-outline-primary:hover {
  background: #7821c7;
  color: #fff;
}

.btn-outline-secondary {
  border-color: #6c757d;
  color: #6c757d;
}
.btn-outline-secondary:hover {
  background: #6c757d;
  color: #fff;
}

/* --- FORM GALLERIE --- */

.card {
  border: none;
  border-radius: 16px;
}

.form-check.form-switch {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-check-input {
  width: 2rem;
  height: 1.3rem;
  cursor: pointer;
  border-radius: 20px !important;
  border: none;
  background-color: #ddd;
  position: relative;
  transition: background-color 0.3s ease;
  appearance: none; /* on neutralise le style natif */
  -webkit-appearance: none;
  outline: none;
  margin-top: -2px;
}

.form-check-input::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.form-check-input:checked {
  background: linear-gradient(90deg, #7821c7, #3c52f8);
}

.form-check-input:checked::before {
  transform: translateX(0.7rem); /* déplacement du point */
}

.form-check-input:focus {
  box-shadow: none;
}

.form-check-label {
  font-weight: 600;
  margin-left: 0.5rem;
  cursor: pointer;
}

/* --- HERO GALERIE --- */
.gallery-hero {
  position: relative;
  min-height: 250px;
  background-size: cover;
  background-position: center;
  /*border-bottom: 4px solid #7821c7;*/
}

.gallery-hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  border-radius: 0;
}

.gallery-hero h1 {
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 6px rgba(0,0,0,.5);
}

/* --- ACCORDÉON GALERIE --- */
.accordion-button {
  font-weight: 600;
  border-radius: 12px 12px 0 0 !important;
}
.accordion-item {
  border-radius: 16px;
  overflow: hidden;
  border: none;
}
.accordion-button:not(.collapsed) {
  color: #fff;
  background: linear-gradient(90deg, #7821c7, #3c52f8);
  box-shadow: none;
}
.accordion-button.collapsed {
  background: #8C8C8C;
  color: #fff;
  font-weight: 600;
}
.accordion-body {
  background: #fff;
}
/* flèche en blanc quand ouvert */
.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

/* visionneuse */
.photo-thumb {
  position: relative;
}

.photo-thumb img {
  height: 150px;
  object-fit: cover;
  width: 100%;
}

.photo-thumb .btn-danger {
  opacity: 0.8;
}
.photo-thumb .btn-danger:hover {
  opacity: 1;
}

/* dropzone */

/* Zone Dropzone personnalisée */
.dropzone {
  border: 2px dashed #7821c7;
  border-radius: 12px;
  background: #fafafa;
  padding: 0;
  transition: background 0.2s ease;
}

.dropzone .dz-message{
  margin: 0 !important;
}

.dropzone:hover {
  background: #f3f0fa;
}

.dropzone .dz-message img {
  display: block;
  margin: 0;
}

.dropzone .dz-message p {
  font-weight: 600;
  color: #555;
}

/* une galerie */
.gallery-hero-full {
  position: relative;
  height: 100vh;
  background-size: cover;
  background-position: center;
}
.gallery-hero-full .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.password-card {
  max-width: 350px;
}

/* On écrase le style toggle uniquement pour les checkboxs de sélection */
/* Forcer un style de checkbox natif dans la galerie */
#gallery .select-checkbox {
  appearance: checkbox !important;
  -webkit-appearance: checkbox !important;
  -moz-appearance: checkbox !important;

  width: 18px;
  height: 18px;
  cursor: pointer;

  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;

  border: 1px solid #666;
  border-radius: 3px;
  background: #fff !important;
}

/* Supprimer le pseudo-élément des toggles */
#gallery .select-checkbox::before {
  content: none !important;
}

/* Couleur quand c’est coché (case à cocher native grise) */
#gallery .select-checkbox:checked {
  background: #fff !important;
  accent-color: #7009E6;
}


/* --- Grille masonry CSS --- */
    .masonry-grid {
      column-count: 1;
      column-gap: 12px;
    }
    @media (min-width:576px){ .masonry-grid{ column-count: 2; } }
    @media (min-width:992px){ .masonry-grid{ column-count: 3; } }
    @media (min-width:1200px){ .masonry-grid{ column-count: 4; } }

    .masonry-grid a {
      display: inline-block;
      width: 100%;
      margin: 0 0 12px;
      break-inside: avoid;
      position: relative;
      overflow: hidden;
      background: #f7f7f7;
    }

    .masonry-grid img {
      width: 100%;
      height: auto;
      display: block;
      transition: transform .25s ease;
    }

    .masonry-grid a:hover img {
      transform: scale(1.03);
    }

    /* Checkbox affichées seulement en mode sélection */
    .select-checkbox {
      position: absolute;
      top: 10px;
      right: 10px;
      z-index: 2;
      transform: scale(1.2);
      background: #fff;
      border-radius: 4px;
    }

    .alert-info{
      background-color: #dedaf7;
      border: none;
    }

    .bg-info{
      background-color: #dedaf7 !important;
    }

    .toggle-password{
      border-color: #ddd;
    }

    .copy-all-btn {
      max-width:30px; 
      cursor:pointer;
    }

    /* Pricing cards */
.pricing-card {
  border-radius: 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid #eee;
}
.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(0,0,0,.12);
}
.pricing-card h2 {
  color: #7821c7;
}
.pricing-card.active-plan {
  border: 2px solid #3c52f8;
  box-shadow: 0 0 0 4px rgba(60,82,248,.15);
}

/* Table comparatif */
.pricing-card {
  border-radius: 18px;
  border: 1px solid #eee;
  transition: transform .25s ease, box-shadow .25s ease;
}
.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,.12);
}
.pricing-card h2 {
  color: #7821c7;
}
.pricing-card .card-footer {
  margin-top: auto;
  border-radius: 18px;
}
.pricing-card.active-plan {
  border: 2px solid #3c52f8;
  box-shadow: 0 0 0 4px rgba(60,82,248,.15);
}

.pricing-table td {
  font-weight: 500;
}
.pricing-table td:contains("✅") { color: #28a745; font-size: 1.2rem; }
.pricing-table td:contains("❌") { color: #dc3545; font-size: 1.2rem; }
.pricing-table th:first-child,
.pricing-table td:first-child {
  width: 480px;        /* largeur fixe */
  max-width: 480px;    /* limite */
  white-space: normal; /* autorise les retours à la ligne */
}

.petit{
  font-size: 10px;
}

.moyen{
  font-size: 12px;
}

.feature-box .icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #f3f0fa;
  margin-bottom: 1rem;
}
.feature-box svg {
  width: 32px;
  height: 32px;
}
.feature-box:hover {
  transform: translateY(-6px);
  transition: 0.3s ease;
  box-shadow: 0 12px 24px rgba(0,0,0,.1);
}

.bg-black{
  background-color: #000000;
}

.btn-gradient {
  background: linear-gradient(90deg, #7821c7, #3c52f8);
  color: #fff;
  border: none;
  border-radius: 50px;
  transition: all 0.3s ease;
}
.btn-gradient:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  color: #ffffff !important;
}

.footer {
  background: linear-gradient(135deg, #7821c7, #3c52f8);
}

.footer a:hover {
  text-decoration: underline;
}

.texte-violet{
  color: #7721C7 !important;
}

.navbar-toggler-icon{
  background-color: white;
}