/* ========================================
   STYLE GALERIE MOLAFRICA - VERSION FUSIONNÉE
   Contient les styles personnalisés + Bootstrap minimal
   ======================================== */

/* ===========================================
   STYLES PERSONNALISÉS GALERIE
   =========================================== */

.container_galerie {
  width: 1160px;
  margin: 0 auto;
  position: relative;
}

.page_content {
  padding: 25px 0;
}

.page_content p {
  margin-bottom: 20px;
  line-height: 20px;
}

body .site-main2 {
  width: 800px;
  margin: 0;
  padding: 0;
  float: left;
}

/* Styles des images de la galerie */
body .galerie2 a {
  display: inline-block;
  width: 200px;
  height: 150px;
  overflow: hidden;
  position: relative;
  text-align: center;
}

body .galerie2 a:hover {
  cursor: pointer;
}

body .galerie2 img {
  display: inline-block;
  height: 100%;
}

body .galerie2 span {
  display: block;
  height: 150px;
  width: 100%;
  color: rgb(240, 240, 240);
  background-color: rgba(0, 0, 0, 0);
  margin: 0px;
  opacity: 0;
  position: absolute;
  padding: 25px;
  padding-top: 40px;
  line-height: 20px;
  top: 0px;
  left: 0px;
  text-align: center;
  font-size: 14px;
}

body .galerie2 a:hover span {
  transition-property: opacity, background;
  transition-duration: 1s;
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.3);
}

body .galerie2 span {
  display: inline-block;
  width: 200px;
  height: 150px;
  margin-bottom: 2px;
  margin-left: 2px;
  vertical-align: top;
  text-align: center;
  cursor: pointer;
}

/* ===========================================
   BOUTON PARTAGE FACEBOOK
   =========================================== */

body .galerie2 a .facebook_lien {
  z-index: 100;
  display: inline-block;
  width: 100px;
  height: 50px;
  position: absolute;
  right: 40px;
  bottom: -20px;
  padding: 0px;
  margin: 0px;
  opacity: 0;
}

body .galerie2 a .facebook_lien span {
  padding: 0px;
  background: none;
}

body .galerie2 a:hover div {
  transition-property: opacity;
  transition-duration: 1s;
  opacity: 1;
}

/* ===========================================
   PAGINATION BOOTSTRAP (pour votre template)
   =========================================== */

.pagination {
  display: inline-block;
  padding-left: 0;
  margin: 20px 0;
  border-radius: 4px;
  clear: both;
}

.pagination > li {
  display: inline;
}

.pagination > li > a,
.pagination > li > span {
  position: relative;
  float: left;
  padding: 6px 12px;
  margin-left: -1px;
  line-height: 1.42857143;
  color: #337ab7;
  text-decoration: none;
  background-color: #fff;
  border: 1px solid #ddd;
}

.pagination > li:first-child > a,
.pagination > li:first-child > span {
  margin-left: 0;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.pagination > li:last-child > a,
.pagination > li:last-child > span {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.pagination > li > a:hover,
.pagination > li > span:hover,
.pagination > li > a:focus,
.pagination > li > span:focus {
  color: #23527c;
  background-color: #eee;
  border-color: #ddd;
}

.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover,
.pagination > .active > a:focus,
.pagination > .active > span:focus {
  z-index: 2;
  color: #fff;
  cursor: default;
  background-color: #337ab7;
  border-color: #337ab7;
}

.pagination > .disabled > span,
.pagination > .disabled > span:hover,
.pagination > .disabled > span:focus,
.pagination > .disabled > a,
.pagination > .disabled > a:hover,
.pagination > .disabled > a:focus {
  color: #777;
  cursor: not-allowed;
  background-color: #fff;
  border-color: #ddd;
}

/* Styles personnalisés pour la page active */
body .pagination #page_index {
  background: rgb(31, 90, 12) !important;
  color: white !important;
  border-color: rgb(31, 90, 12) !important;
}

/* ===========================================
   PAGINATION ALTERNATIVE (nav-links)
   =========================================== */

.pagination .nav-links {
  margin: 20px 0;
}

.pagination .nav-links a {
  margin-right: 5px;
  background: #646262;
  color: #fff;
  padding: 5px 10px;
}

.pagination .nav-links span.current,
.pagination .nav-links a:hover {
  padding: 5px 10px;
  background: #efc62c;
}

/* ===========================================
   BOOTSTRAP MINIMAL - GRILLE, MODAL ET COMPOSANTS
   =========================================== */

/* Row Bootstrap */
.row {
  margin-right: -15px;
  margin-left: -15px;
}

.row:before,
.row:after {
  display: table;
  content: " ";
}

.row:after {
  clear: both;
}

/* Grille Bootstrap - Colonnes */
.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
  position: relative;
  min-height: 1px;
  padding-right: 15px;
  padding-left: 15px;
}

@media (min-width: 1200px) {
  .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
    float: left;
  }
  .col-lg-12 {
    width: 100%;
  }
  .col-lg-7 {
    width: 58.33333333%;
  }
  .col-lg-5 {
    width: 41.66666667%;
  }
}

/* Transitions pour Modal */
.fade {
  opacity: 0;
  -webkit-transition: opacity .15s linear;
       -o-transition: opacity .15s linear;
          transition: opacity .15s linear;
}

.fade.in {
  opacity: 1;
}

/* Modal Bootstrap */
.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1050;
  display: none;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  outline: 0;
}

.modal.fade .modal-dialog {
  -webkit-transition: -webkit-transform .3s ease-out;
       -o-transition:      -o-transform .3s ease-out;
          transition:         transform .3s ease-out;
  -webkit-transform: translate(0, -25%);
      -ms-transform: translate(0, -25%);
       -o-transform: translate(0, -25%);
          transform: translate(0, -25%);
}

.modal.in .modal-dialog {
  -webkit-transform: translate(0, 0);
      -ms-transform: translate(0, 0);
       -o-transform: translate(0, 0);
          transform: translate(0, 0);
}

.modal-dialog {
  position: relative;
  width: auto;
  margin: 10px;
  /* Force le centrage même dans Divi */
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.modal-content {
  position: relative;
  background-color: #fff;
  -webkit-background-clip: padding-box;
          background-clip: padding-box;
  border: 1px solid #999;
  border: 1px solid rgba(0, 0, 0, .2);
  border-radius: 6px;
  outline: 0;
  -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
          box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
  /* Protection contre les styles Divi */
  max-width: none !important;
  width: auto !important;
}

.modal-backdrop {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: 999998 !important; /* Juste en dessous de la modal */
  background-color: #000;
}

.modal-backdrop.fade {
  filter: alpha(opacity=0);
  opacity: 0;
}

.modal-backdrop.in {
  filter: alpha(opacity=50);
  opacity: .5;
}

.modal-header {
  min-height: 16.42857143px;
  padding: 15px;
  border-bottom: 1px solid #e5e5e5;
}

.modal-title {
  margin: 0;
  line-height: 1.42857143;
}

.modal-body {
  position: relative;
  padding: 15px;
}

.modal-footer {
  padding: 15px;
  text-align: right;
  border-top: 1px solid #e5e5e5;
}

.modal-footer:before,
.modal-footer:after {
  display: table;
  content: " ";
}

.modal-footer:after {
  clear: both;
}

/* Responsive Modal */
@media (min-width: 768px) {
  .modal-dialog {
    width: 600px;
    margin: 30px auto;
  }
  .modal-content {
    -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
            box-shadow: 0 5px 15px rgba(0, 0, 0, .5);
  }
}

/* ===========================================
   BOUTONS BOOTSTRAP
   =========================================== */

.btn {
  display: inline-block;
  padding: 6px 12px;
  margin-bottom: 0;
  font-size: 14px;
  font-weight: normal;
  line-height: 1.42857143;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  -ms-touch-action: manipulation;
      touch-action: manipulation;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  background-image: none;
  border: 1px solid transparent;
  border-radius: 4px;
}

.btn:focus,
.btn:active:focus,
.btn.active:focus {
  outline: thin dotted;
  outline: 5px auto -webkit-focus-ring-color;
  outline-offset: -2px;
}

.btn:hover,
.btn:focus {
  color: #333;
  text-decoration: none;
}

.btn:active,
.btn.active {
  background-image: none;
  outline: 0;
  -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
          box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
}

.btn-default {
  color: #333;
  background-color: #fff;
  border-color: #ccc;
}

.btn-default:hover,
.btn-default:focus,
.btn-default:active,
.btn-default.active {
  color: #333;
  background-color: #e6e6e6;
  border-color: #adadad;
}

.btn-primary {
  color: #fff;
  background-color: #337ab7;
  border-color: #2e6da4;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
  color: #fff;
  background-color: #286090;
  border-color: #204d74;
}

/* Bouton de fermeture */
.close {
  float: right;
  font-size: 21px;
  font-weight: bold;
  line-height: 1;
  color: #000;
  text-shadow: 0 1px 0 #fff;
  filter: alpha(opacity=20);
  opacity: .2;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
  filter: alpha(opacity=50);
  opacity: .5;
}

button.close {
  -webkit-appearance: none;
  padding: 0;
  cursor: pointer;
  background: transparent;
  border: 0;
}

/* ===========================================
   FORMULAIRES BOOTSTRAP
   =========================================== */

.form-control {
  display: block;
  width: 100%;
  height: 34px;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.42857143;
  color: #555;
  background-color: #fff;
  background-image: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
          box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
  -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
       -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
          transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}

.form-control:focus {
  border-color: #66afe9;
  outline: 0;
  -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, .6);
          box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, .6);
}

.form-control::-moz-placeholder {
  color: #999;
  opacity: 1;
}

.form-control:-ms-input-placeholder {
  color: #999;
}

.form-control::-webkit-input-placeholder {
  color: #999;
}

textarea.form-control {
  height: auto;
}

.form-group {
  margin-bottom: 15px;
}

label {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 5px;
  font-weight: bold;
}

/* ===========================================
   CAROUSEL BOOTSTRAP
   =========================================== */

.carousel {
  position: relative;
}

.carousel-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-inner > .item {
  position: relative;
  display: none;
  -webkit-transition: .6s ease-in-out left;
       -o-transition: .6s ease-in-out left;
          transition: .6s ease-in-out left;
}

.carousel-inner > .item > img,
.carousel-inner > .item > a > img {
  line-height: 1;
}

@media all and (transform-3d), (-webkit-transform-3d) {
  .carousel-inner > .item {
    -webkit-transition: -webkit-transform .6s ease-in-out;
         -o-transition:      -o-transform .6s ease-in-out;
            transition:         transform .6s ease-in-out;
    -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
    -webkit-perspective: 1000;
            perspective: 1000;
  }
  .carousel-inner > .item.next,
  .carousel-inner > .item.active.right {
    left: 0;
    -webkit-transform: translate3d(100%, 0, 0);
            transform: translate3d(100%, 0, 0);
  }
  .carousel-inner > .item.prev,
  .carousel-inner > .item.active.left {
    left: 0;
    -webkit-transform: translate3d(-100%, 0, 0);
            transform: translate3d(-100%, 0, 0);
  }
  .carousel-inner > .item.next.left,
  .carousel-inner > .item.prev.right,
  .carousel-inner > .item.active {
    left: 0;
    -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
  }
}

.carousel-inner > .active,
.carousel-inner > .next,
.carousel-inner > .prev {
  display: block;
}

.carousel-inner > .active {
  left: 0;
}

.carousel-inner > .next,
.carousel-inner > .prev {
  position: absolute;
  top: 0;
  width: 100%;
}

.carousel-inner > .next {
  left: 100%;
}

.carousel-inner > .prev {
  left: -100%;
}

.carousel-inner > .next.left,
.carousel-inner > .prev.right {
  left: 0;
}

.carousel-inner > .active.left {
  left: -100%;
}

.carousel-inner > .active.right {
  left: 100%;
}

/* Contrôles du carousel */
.carousel-control {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 15%;
  font-size: 20px;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
  filter: alpha(opacity=50);
  opacity: .5;
}

.carousel-control.left {
  background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .0001) 100%);
  background-image:      -o-linear-gradient(left, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .0001) 100%);
  background-image:         linear-gradient(to right, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .0001) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1);
  background-repeat: repeat-x;
}

.carousel-control.right {
  right: 0;
  left: auto;
  background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, .0001) 0%, rgba(0, 0, 0, .5) 100%);
  background-image:      -o-linear-gradient(left, rgba(0, 0, 0, .0001) 0%, rgba(0, 0, 0, .5) 100%);
  background-image:         linear-gradient(to right, rgba(0, 0, 0, .0001) 0%, rgba(0, 0, 0, .5) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1);
  background-repeat: repeat-x;
}

.carousel-control:hover,
.carousel-control:focus {
  color: #fff;
  text-decoration: none;
  filter: alpha(opacity=90);
  outline: 0;
  opacity: .9;
}

/* Icônes du carousel */
.carousel-control .icon-prev,
.carousel-control .icon-next {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  font-family: serif;
  font-weight: bolder;
  line-height: 1;
}

.carousel-control .icon-prev {
  left: 50%;
  margin-left: -10px;
}

.carousel-control .icon-next {
  right: 50%;
  margin-right: -10px;
}

.carousel-control .icon-prev:before {
  content: '\2039';
}

.carousel-control .icon-next:before {
  content: '\203a';
}

@media screen and (min-width: 768px) {
  .carousel-control .icon-prev,
  .carousel-control .icon-next {
    width: 30px;
    height: 30px;
    margin-top: -15px;
    font-size: 30px;
  }
  .carousel-control .icon-prev {
    margin-left: -15px;
  }
  .carousel-control .icon-next {
    margin-right: -15px;
  }
}

/* ===========================================
   STYLES SPÉCIFIQUES MODAL ET CAROUSEL
   =========================================== */

/* Modal personnalisée */
#modale {
  display: block;
  width: 1050px;
  margin: auto;
  margin-top: 0px;
}

#modale #modale-content {
  display: inline-block;
  width: 1050px;
  margin: auto;
  margin-top: 0px;
  height: 650px;
}

/* Gauche de la modal */
#gauche_corps_modal {
  display: inline-block;
  border-right: 1px solid rgb(240, 240, 240);
  height: 450px;
  width: 700px;
  padding-right: 5px;
}

#gauche_corps_modal #carousel {
  margin-bottom: 20px;
}

#gauche_corps_modal #carousel .item {
  width: 700px;
  height: 500px;
  text-align: center;
}

#gauche_corps_modal #carousel .item img {
  display: inline-block;
  height: 100%;
  margin: 0px;
}

/* Carousel miniatures */
#carousel2 .petit {
  display: block;
  width: 620px;
  margin: auto;
}

#gauche_corps_modal #carousel2 .item {
  width: 620px;
  height: 80px;
  text-align: center;
}

#gauche_corps_modal #carousel2 .item div {
  display: inline-block;
  width: 100px;
  height: 80px;
  text-align: center;
  background: rgb(240, 240, 240);
  border: 1px solid rgb(230, 230, 230);
}

#gauche_corps_modal #carousel2 .item img {
  display: inline-block;
  height: 100%;
  margin: 0px;
}

/* Contrôles carousel miniatures */
#carousel2 #left a {
  display: inline-block;
  width: 30px;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
}

#carousel2 #right a {
  display: inline-block;
  background: rgba(0, 0, 0, 0.5);
  width: 30px;
  cursor: pointer;
}

/* Droite de la modal */
#droite_corps_modal {
  display: inline-block;
  width: 310px;
  height: 600px;
  vertical-align: top;
  padding-left: 10px;
}

/* Bouton fermer modal */
#modale #modale-content #suppr {
  background: white;
  width: 50px;
  height: 40px;
  position: absolute;
  top: 0px;
  left: 1080px;
  opacity: 1;
  border-radius: 0px 0px 3px 3px;
  color: rgb(40, 96, 144);
}

/* Loader/spinner */
#loader {
  display: inline-block;
  position: relative;
  left: 40%;
  top: 200px;
}

/* Bloc formulaire dans modal */
.bloc {
  display: block;
  width: 100%;
}

#division {
  margin-top: 15px;
}

#message {
  padding: 15px;
  text-align: center;
}

#message p {
  margin-bottom: 15px;
}

/* Classes de formulaire vertical */
.form-vertical {
  width: 100%;
}

.form-vertical label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-vertical input[type="text"],
.form-vertical input[type="email"],
.form-vertical input[type="tel"],
.form-vertical textarea {
  width: 100%;
  margin-bottom: 10px;
}

/* ===========================================
   MODAL SÉLECTION CADRES - VERSION 4 CADRES (2×2)
   =========================================== */

/* Modal extra large pour bien voir les différences de tailles */
#frameModal .modal-dialog {
  max-width: 1000px !important; /* Légèrement moins large pour 4 cadres */
  width: 90% !important;
  margin: 30px auto !important;
}

/* Protection anti-conflit Divi spéciale pour modal cadres */
#frameModal {
  z-index: 999999 !important;
  position: fixed !important;
  width: 100vw !important;
  height: 100vh !important;
  top: 0 !important;
  left: 0 !important;
}

#frameModal .modal-content {
  max-width: none !important;
  width: 100% !important;
}

/* Bouton de fermeture amélioré */
.close-frame-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  background: #333;
  color: white;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 1001;
}

.close-frame-modal:hover {
  background: #000;
  transform: scale(1.1);
  transition: all 0.2s ease;
}

/* Container principal de sélection avec plus d'espace */
.frame-selection-container {
  padding: 20px 40px;
  max-height: 75vh;
  overflow-y: auto;
}

.frame-selection-container h5 {
  margin: 0 0 30px 0;
  color: #333;
  font-weight: bold;
  text-align: center;
  font-size: 22px;
}

/* Grille redesignée pour 4 cadres (2×2) */
.frame-grid-redesign {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 colonnes au lieu de 3 */
  gap: 30px; /* Plus d'espace entre les cartes */
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Cartes de cadre plus grandes pour 4 cadres */
.frame-card {
  border: 3px solid #e0e0e0;
  border-radius: 15px;
  padding: 25px; /* Plus de padding pour 4 cartes */
  text-align: center;
  background: #fff;
  transition: all 0.3s ease;
  position: relative;
  min-height: 320px; /* Hauteur fixe plus grande */
}

.frame-card:hover {
  border-color: #337ab7;
  box-shadow: 0 8px 30px rgba(51, 122, 183, 0.25);
  transform: translateY(-5px);
}

.frame-card.selected {
  border-color: #28a745;
  background-color: #f8fff9;
  box-shadow: 0 8px 35px rgba(40, 167, 69, 0.3);
}

.frame-card.selected::before {
  content: "✓";
  position: absolute;
  top: -10px;
  right: -10px;
  background: #28a745;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Prévisualisation du cadre avec tailles TRÈS visibles pour 4 cadres */
.frame-preview {
  height: 160px; /* Plus haut pour mieux voir les différences */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: #f8f8f8;
  border-radius: 12px;
  position: relative;
  padding: 20px;
}

/* Tailles visuelles VRAIMENT proportionnelles et plus grandes pour 4 cadres */
.frame-size-visual {
  position: relative;
  padding: 8px;
  background: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 4px solid #ddd; /* Bordure plus visible */
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.frame-size-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

/* Proportions TRÈS visibles pour 2 tailles */
.frame-s { 
  width: 70px; 
  height: 100px; 
} /* 21x30cm = ratio proche de 2:3 */

.frame-l { 
  width: 120px; 
  height: 120px; 
} /* 40x40cm = ratio 1:1 (carré) */

/* Hover effect amélioré sur les images */
.frame-card:hover .frame-size-visual {
  transform: scale(1.08);
  transition: transform 0.3s ease;
  border-color: #337ab7;
}

.frame-card.selected .frame-size-visual {
  border-color: #28a745;
}

/* Détails du cadre avec plus d'espace */
.frame-details h6 {
  margin: 20px 0 10px 0;
  font-weight: bold;
  color: #333;
  font-size: 18px;
}

.frame-details p {
  margin: 0 0 15px 0;
  color: #666;
  font-size: 16px;
  font-weight: 500;
}

/* Prix du cadre plus visible */
.frame-price-tag {
  background: #337ab7;
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  font-size: 16px;
  display: inline-block;
  margin-bottom: 15px;
  box-shadow: 0 3px 8px rgba(51, 122, 183, 0.3);
}

.frame-card.selected .frame-price-tag {
  background: #28a745;
  box-shadow: 0 3px 8px rgba(40, 167, 69, 0.3);
}

/* Boutons "Choisir ce cadre" plus visibles */
.choose-frame-btn {
  width: 100%;
  padding: 12px 20px;
  font-size: 15px;
  border-radius: 10px;
  border: 3px solid #337ab7;
  background: white;
  color: #337ab7;
  font-weight: bold;
  transition: all 0.3s ease;
}

.choose-frame-btn:hover {
  background: #337ab7;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(51, 122, 183, 0.4);
}

.frame-card.selected .choose-frame-btn {
  background: #28a745;
  border-color: #28a745;
  color: white;
}

.frame-card.selected .choose-frame-btn:hover {
  background: #218838;
  border-color: #218838;
}

/* Résumé de sélection plus visible */
.selection-summary-redesign {
  background: linear-gradient(135deg, #e8f5e8, #f0f8f0);
  border: 3px solid #28a745;
  border-radius: 15px;
  padding: 30px;
  margin: 30px 0;
  text-align: center;
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.25);
}

.selected-frame-info h5 {
  margin: 0 0 18px 0;
  color: #28a745;
  font-size: 22px;
}

.selected-frame-info h5 i {
  margin-right: 12px;
}

#selected-frame-details {
  color: #333;
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: 500;
}

.selected-price {
  font-size: 20px;
  color: #333;
}

#selected-frame-price {
  color: #28a745;
  font-weight: bold;
  font-size: 24px;
}

/* Modal header ajustements */
#frameModal .modal-header {
  padding: 25px 25px 20px 25px;
  border-bottom: 1px solid #e0e0e0;
  position: relative;
}

#frameModal .modal-title {
  margin: 0;
  font-size: 22px;
  color: #333;
}

/* Responsive pour 4 cadres */
@media (max-width: 1200px) {
  #frameModal .modal-dialog {
    max-width: 95% !important;
    margin: 20px auto !important;
  }
  
  .frame-grid-redesign {
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .frame-grid-redesign {
    grid-template-columns: 1fr; /* 1 colonne sur mobile */
    gap: 20px;
  }
  
  .frame-card {
    padding: 20px;
    min-height: 280px;
  }
  
  .frame-preview {
    height: 140px;
  }
  
  .frame-s { width: 60px; height: 85px; }
  .frame-l { width: 100px; height: 100px; }
  
  .frame-selection-container {
    padding: 15px 25px;
  }
}

@media (max-width: 480px) {
  #frameModal .modal-dialog {
    width: 95% !important;
    margin: 10px auto !important;
  }
  
  .frame-selection-container {
    padding: 10px 20px;
  }
  
  .frame-grid-redesign {
    gap: 15px;
  }
}

/* ===========================================
   BOUTON "ACHETER AVEC CADRE" 
   =========================================== */

.btn-warning {
  background-color: #efc62c;
  border-color: #efc62c;
  color: #fff;
  margin-top: 10px;
}

.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active {
  background-color: #d4aa26;
  border-color: #d4aa26;
  color: #fff;
}

/* Icône dans les boutons */
.btn i {
  margin-right: 5px;
}