html, body {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family:Arial, Helvetica, sans-serif;
  font-size: 14px;
}
 

 .navbar {
      position: sticky !important;
      top: 0;
      z-index: 1000; height:100px;
      box-shadow: 0 .125rem .25rem rgb(0, 0, 0) !important;
    }

    .navbar-brand img {
      height: 120px;
    }

    @media (min-width: 992px) {
      .navbar-center {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
      }
    }

    .nav-btn {
      margin: 0 5px;
      font-weight: 600;
      display: flex;
      align-items: center;
      transition: all 0.3s ease;
    }

    .nav-btn i {
      margin-right: 6px;
      transition: transform 0.4s ease !important;
    }

    .nav-btn:hover i {
      animation: shake 0.4s !important;
    }

    @keyframes shake {
      0% { transform: rotate(0deg); }
      25% { transform: rotate(-15deg); }
      50% { transform: rotate(15deg); }
      75% { transform: rotate(-10deg); }
      100% { transform: rotate(0deg); }
    }

    .btn-photos {
      background-color: #f57c00 !important;
      color: white !important;
    }
    .btn-photos:hover {
      background-color: #ef6c00 !important;
      color: white !important;
    }
.btn:hover{background-color:#0a58ca !important; color:white !important;}
    .btn-contact {
      background-color: #43a047 !important;
      color: white !important;
    }
    .btn-contact:hover {
      background-color: #388e3c !important;
      color: white !important;
    }

    .btn-aide {
      background-color: #5c6bc0 !important;
      color: white !important;
    }
    .btn-aide:hover {
      background-color: #3f51b5 !important;
      color: white !important;
    }

    .btn-gestion {
      background-color: #c2185b !important;
      color: white !important;
    }
    .btn-gestion:hover {
      background-color: #ad1457 !important;
      color: white !important;
    }

    .main-container {
        min-height: calc(100vh - 100px);
    }

    .main-container::before
    {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-image: url('background.jpg') !important; /* ← change le chemin ici */
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      opacity: 1 black; /* ← ajuste ici pour la transparence */
      z-index: -1;
      border-radius: 0px; /* facultatif */
            }

            .main-container {
              position: relative;
              z-index: 1;
              min-height: 100vh;
            }

 @media (min-width: 1400px) {.container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {max-width: 100% !important; }}


@keyframes cartPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}
.badge-cart.pulse {
  animation: cartPulse 0.4s ease;
}

/* Bouton retour haut de page */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  display: grid;
  width: 45px;
  height: 45px;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 30px; float: right; text-align: center;
}
#backToTop.show {
  display: flex;
}
.card img {
  transition: transform 0.3s ease;
}
.card:hover img {
  transform: scale(1.05);
}
.lightbox-backdrop {
  backdrop-filter: blur(5px);
  background: rgba(0, 0, 0, 0.5);
}

.header-gradient {
  background: linear-gradient(135deg, #0d6efd, #3b82f6, #0dcaf0);
  background-size: 300% 300%;
  animation: gradientMove 8s ease infinite;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.header-gradient h3,
.header-gradient span {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
@keyframes slideFadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-message {
  animation: slideFadeIn 0.6s ease-out;
  border-left: 3px solid rgba(255,255,255,0.5);
}
.thumb-portrait,
.thumb-paysage {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: .5rem .5rem 0 0;
}
/* Icônes sociales avec couleurs */
.social-icon {
  color: #3b5998;
  transition: color 0.3s ease;
}

.social-icon.facebook:hover {
  color: #1877f2;
}

.social-icon.twitter:hover {
  color: #1da1f2;
}

.social-icon.instagram:hover {
  color: #e4405f;
}

.social-icon.tiktok:hover {
  color: #000000;
}

.social-icon.share:hover {
  color: #0d6efd;
}

.shadow-sm  .navbar2 {
  box-shadow: 0 .125rem .25rem rgb(0, 0, 0) !important;
}

.toast {
  background: #333;
  color: white;
  padding: 12px 20px;
  margin-bottom: 0.75rem;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  opacity: 0.95;
  font-family: Arial, sans-serif;
  pointer-events: auto; /* Permet interaction avec la toast */
  cursor: pointer;
  transition: opacity 0.3s ease;
  max-width: 350px;
}
.toast-success { background-color: #28a745; }
.toast-error { background-color: #dc3545; }
.toast-warning { background-color: #ffc107; color: black; }
.toast-info { background-color: #17a2b8; }

.header { display:flex; justify-content:space-between; margin-bottom:20px;min-height:80px;}
  .info { max-width:60%; }
    .meta { text-align:right; }
    table { width:100%; border-collapse: collapse; margin-top:15px; }
    th { background:#f0f0f0; padding:8px; border:1px solid #ccc; }
    td { padding:6px; border:1px solid #ccc !important; vertical-align: top;}
    .total { font-weight:bold; }
    .small { font-size:10px; color:#555; margin-top:30px; }
    .no-print { margin-bottom:20px; }
    img.photo-thumb { display:block; }
    .qr { margin-left: 15px; }
    .facture-number { font-size: 1.1rem; margin-bottom: 5px; }
    .no-print {margin: 20px auto;}
    @media print {
      .no-print { display:none; }
    }
    

    .details-commande {
      max-height: 0;
      overflow: hidden;
      transition: max-height .3s ease;
    }
    .details-commande.open {
      max-height: 2000px; /* suffisamment grand pour contenir le contenu */
    }
    .toggle-arrow {
      cursor: pointer;
      user-select: none;
      transition: transform .3s ease;
      font-size: 1.2rem;
      margin-left: 10px;
    }
    .toggle-arrow.open {
      transform: rotate(90deg);
    }
    .card-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .card-header[role="button"] { cursor: pointer; }
    .card-header:focus {
      outline: 2px solid #0d6efd;
      outline-offset: 2px;
    }
    .actions-rapides a { white-space: nowrap; }

   /* Styles cookies */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  background: #f8f9fa;
  padding: 10px 20px;
  border-top: 1px solid #ddd;
  text-align: center;
  z-index: 9999;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}

.cookie-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.cookie-modal-content {
  background: #fff;
  padding: 20px;
  max-width: 400px;
  width: 90%;
  border-radius: 5px;
  text-align: left;
}

/* Bouton haut */
#backToTop {
  position: fixed;
  bottom: 80px;
  right: 20px;
  display: none;
}
#backToTop.show {
  display: inline-block;
}

#manageCookies{text-align: center; margin: 0 auto;}

/* Bandeau fratrie */
.bandeau-fratrie {
  margin-top: 50px !important;
  background: #009cff url('../stripes.png') repeat !important;
  -webkit-box-shadow: inset 0 12px 20px -10px rgba(0,0,0,0.6);
  box-shadow: inset 0 12px 20px -10px rgba(0,0,0,0.6);
  animation: bgscroll 20s linear infinite;
}
@keyframes bgscroll {
  from { background-position: 0 0; }
  to { background-position: 1000px 0; }
}

.bandeau-fratrie strong {
  font-size: 1.1rem;
}

.bandeau-fratrie input.form-control {
  max-width: 280px;
}

.bandeau-fratrie .btn-light {
  background: #fff;
  border-color: #fff;
  color: #009cff;
  font-weight: bold;
}

.bandeau-fratrie .btn-light:hover {
  background: #e6e6e6;
  border-color: #e6e6e6;
  color: #006bb3;
}
.btn-envoyer {
  background: linear-gradient(90deg, #007bff, #009cff);
  color: #fff !important;
  font-weight: bold;
  border: none;
  border-radius: 50px;
  padding: 10px 25px;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.btn-envoyer:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}
@media (max-width: 576px) {
  .photo-card img {
    height: auto;
    max-height: 250px;
  }
  .btn-envoyer {
    width: 100%;
    font-size: 1rem;
  }
}

.section-title h4 {
  font-size: 1.25rem;
  letter-spacing: 0.3px;
}

.section-title {
  position: relative;
  left:10%;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0%;
  width: 0px;
  height: 3px;
  background: linear-gradient(90deg, #0d6efd, #3b82f6);
  border-radius: 2px;
}
.icon-circle {
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0d6efd, #3b82f6);
  color: white;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

  .pack-badge {
    font-size: 0.8rem;
    padding: 0.35em 0.6em;
    border-radius: 0.4rem;
  }
  .chip-pack {
    display: inline-block;
    background: #e9ecef;
    color: #333;
    padding: 0.15em 0.45em;
    border-radius: 0.4rem;
    font-size: 0.75rem;
    margin: 2px 2px 0 0;
  }
  .table td, .table th {
    vertical-align: middle;
    }

@keyframes envelopeFly {
  0% {
    transform: translate(-50%, 0) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -40px) scale(1.2);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -150px) scale(0.8);
    opacity: 0;
  }
}

.envelope-fly {
  position: fixed;
  left: 50%;
  font-size: 2.2rem;
  color: #0d6efd;
  z-index: 3000;
  animation: envelopeFly 1.3s ease-in-out forwards;
  pointer-events: none;
}


.table-header-custom {
  background: linear-gradient(90deg, #0d6efd 0%, #4dabf7 100%);
}
.table-header-custom th {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  text-align: center;
  vertical-align: middle;
}
.table-header-custom th i {
  opacity: 0.9;
}
.table-header-custom th:first-child {
  border-top-left-radius: 8px;
}
.table-header-custom th:last-child {
  border-top-right-radius: 8px;
}

/* 🧾 Table panier moderne */
.table-panier {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.table-panier thead th {
  background: linear-gradient(90deg, #0d6efd 0%, #3b82f6 100%);
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.table-panier tbody tr:hover {
  background: #f8f9fa;
}

.table-panier .table-warning td {
  background-color: #fff7ed !important;
}

.table-panier .badge {
  font-size: 0.75rem;
  padding: 0.35em 0.55em;
  border-radius: 0.4rem;
}
.pack-progress {
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 4px;
}

.pack-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #0d6efd, #3b82f6);
  transition: width 0.4s ease;
}
.btn-danger:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 6px rgba(220,53,69,0.3);
}
.btn-success:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 6px rgba(25,135,84,0.3);
}
@keyframes addToCart {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.added-to-cart {
  animation: addToCart 0.3s ease;
}
.table-panier thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.table thead th {
  position: sticky;
  top: 0;
  background: linear-gradient(135deg, #0d6efd, #3b82f6);
  color: white;
  z-index: 2;
}
tr.table-primary td {
  background: #e0f2fe !important;
  font-size: 1.05rem;
  border-top: 2px solid #0d6efd;
}
tr.table-warning.fw-semibold td {
  background: #fff7ed !important;
  border-top: 2px solid #f59e0b;
  font-size: 1rem;
}

tr.table-warning.fw-semibold i {
  color: #c2410c;
}
.table img {
  transition: transform .2s ease;
  cursor: zoom-in;
}
.table img:hover {
  transform: scale(2);
  z-index: 10;
  position: relative;
}
tfoot tr th {
  background: #f1f5f9;
  position: sticky;
  bottom: 0;
  z-index: 1;
}
#validateBtn {
  position: sticky;
  bottom: 20px;
  z-index: 100;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* 🌊 Dégradé "océan" animé pour le header du tableau */
.table thead th {
 background: linear-gradient(135deg, #0d6efd, #3b82f6, #0dcaf0);
  background-size: 300% 300%;
  animation: gradientMove 8s ease infinite;
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-align: center;
  vertical-align: middle;
}

@keyframes oceanGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Icônes dans les en-têtes */
.table thead th i {
  margin-right: 6px;
  font-size: 1rem;
  vertical-align: middle;
  opacity: 0.9;
}

/* ✨ Effet glow + zoom au survol des icônes du header */
.table thead th i {
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.table thead th:hover i {
  transform: scale(1.2);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}


/* Style offcanvas mobile */

/* 🔸 Forcer le fond blanc */
.offcanvas {
  background-color: #fff !important;
  color: #000 !important;
}

/* 🔸 Forcer la taille et le style du texte dans le menu */
.offcanvas .menu-link {
  display: block;
  padding: 14px 20px;
  font-size: 1.2rem !important;
  color: #000 !important;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s;
}

.offcanvas .menu-link:hover {
  background-color: #f1f1f1 !important;
}

#aideModal .close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  z-index: 10;
}

/* Bloc photo imposée */
.imposed-wrap {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

/* Grille de miniatures */
.item-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

/* Ligne principale avec selects + croix */
.item-row .inputs-line {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  width: 100%;
}

/* Taille identique pour tous les selects */
.item-row .inputs-line select,
.item-row .inputs-line input {
  flex: 1 1 0;
  min-width: 150px;
  max-width: 180px;
}

.item-row .inputs-line input[type="number"] {
  width: 80px;
  flex: 0 0 80px;
  text-align: center;
}

.item-row .inputs-line .remove-btn {
  flex: 0 0 auto;
  margin-left: auto;
}

/* Bloc photo imposée */
.imposed-wrap {
  display: none;
  flex-direction: column;
  padding-left: 10px;
  border-left: 2px solid #eee;
  margin-left: 4px;
  width: 100%;
  background: #fafafa;
}

.photo-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.photo-preview img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.photo-preview img:hover {
  border-color: #007bff66;
}

.photo-preview img.selected {
  border-color: #007bff;
}
#packsContainer .card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

#togglePacksBtn {
  font-weight: 600;
  color: #fff;
  background-color: #0d6efd;
  border-color: #0a58ca;
}

#togglePacksBtn:hover {
  background-color: #0a58ca;
  border-color: #094fa1;
}

#packsContainer {
  border-radius: .5rem;
}
.js-cat option[value="cat:999999"] {
  color: #d39e00;
  font-weight: 600;
}
/* --- Bloc photo virtuelle --- */
.virtual-card {
  background: linear-gradient(90deg, #0d6efd, #2563eb); /* même bleu que le bandeau principal */
  border: none;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.virtual-card .thumb-paysage img {
  border-radius: 8px 8px 0 0;
}

/* === Harmonisation des cartes de photo de classe === */
.photo-classe-card .btn {
  font-size: 0.9rem;
  padding: 6px 0;
  height: auto;
}

/* === Bloc photo virtuelle complet === */
/* Corrige le fond du bloc virtuel pour occuper toute la carte */
.virtual-card {
  background: linear-gradient(135deg, #0d6efd, #2563eb);
  border: none;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  border-radius: 12px;
  overflow: hidden;
}

/* Supprime l’espace blanc entre la photo et le fond bleu */
.virtual-card .thumb-paysage {
  margin: 0;
  padding: 0;
  border-radius: 0;
}
.virtual-card .thumb-paysage img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

/* Applique aussi le fond derrière la photo */
.virtual-bg {
  background: linear-gradient(135deg, #0d6efd, #2563eb);
  border-radius: 8px 8px 0 0;
  padding-top: 6px;
}

/* Texte et bouton de la photo virtuelle */
.virtual-body {
  background: transparent;
  color: #fff;
  text-align: center;
}

.virtual-body .btn {
  background-color: #fff !important;
  color: #0d6efd !important;
  border: none;
  font-weight: 600;
  padding: 6px 0;
  transition: all 0.2s ease;
}

.virtual-body .btn:hover {
  background-color: #e9ecef !important;
  color: #084298 !important;
}
/* Boutons "Choisir" uniformisés sur toutes les cartes */
.card .btn[data-bs-toggle="modal"] {
  font-size: 0.9rem;
  padding: 6px 0;
  height: 38px;
  line-height: 1.2;
  border-radius: 6px;
}

/* Pour forcer les boutons du bloc virtuel à avoir la même taille */
.virtual-body .btn {
  height: 38px !important;
  padding: 6px 0 !important;
  font-weight: 600;
}
/* Boutons "Choisir" uniformisés sur toutes les cartes */
.card .btn[data-bs-toggle="modal"] {
  font-size: 0.9rem;
  padding: 6px 0;
  height: 38px;
  line-height: 1.2;
  border-radius: 6px;
}

/* Pour forcer les boutons du bloc virtuel à avoir la même taille */
.virtual-body .btn {
  height: 38px !important;
  padding: 6px 0 !important;
  font-weight: 600;
}
/* 🚫 Supprime le "+" fantôme au-dessus des photos */
.thumb-paysage::before,
.thumb-paysage::after,
.thumb-portrait::before,
.thumb-portrait::after {
  content: none !important;
  display: none !important;
}



