/* Personnalisation du burger menu : trois traits sans bordure */
.navbar-toggler {
  border: none;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 0, 0, 0.7)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
/* Ajout du texte MENU sous l'icône */
.navbar-toggler .menu-text {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  margin-top: 2px;
}

.fond-nav {
  background-color: #F7F7F3;
}
.nav-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #070e63;
  padding: 0.75rem;
  transition: background-color 0.2s, border-radius 0.2s;
}
.nav-action:hover {
  background-color: #070e63;
  border-radius: 0.5rem;
  text-decoration: none;
  color: #FFFFFF;
}
.nav-action i {
  font-size: 1.75rem;
  margin-bottom: 0.3rem;
}
.nav-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 1rem 0;
  margin: 0;
}
.nav-actions li {
  margin: 0 0.5rem;
}

.nav-link {
color: #070e63 !important;
}

.nav-link:hover {
color: #070e63 !important;
}

/* Suppression du fond blanc et de l'encadré du menu déroulant */
#mobileNavbar,
#mobileNavbar .dropdown-menu {
  background: none;
  border: none;
  box-shadow: none;
}

.phone-block {
  display: inline-block;
  text-align: center;
}
.phone-number {
  display: inline-block;
  font-weight: bold;
  padding: 0.25rem 0.75rem;
  border: 2px solid #333;
  border-radius: 2rem;
  font-size: 1.125rem;
  text-decoration: none;
}
.phone-block small {
  display: block;
  font-size: 0.8rem;
  color: #555;
  margin-top: 0.1rem;
}


.img-fluid {
  width : 200px;
  height: 100px;
}

.card {
  border-radius: 0px;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: scale(1.02);
}

.card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.card-text {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1rem;
}

.image-wrapper {
  height: 220px;
  background-color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.image-wrapper img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

@media (max-width: 576px) {
  .image-wrapper {
    height: 160px !important;    /* hauteur réduite mais fixe */
    padding: 0 !important;
  }

  .image-wrapper img {
    max-height: 100% !important;
    width: auto !important;
    object-fit: contain !important;
  }

  .card-body {
    padding: 1rem 0.75rem;
  }
}


/* Les images s'adaptent en largeur et conservent leur aspect grâce à object-fit */
.carousel-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Style du rectangle contenant l'avis */
.obituary-item {
  background-color: #fff;
  width: 100%;
  margin-bottom: 15px;
  padding: 15px;
  text-decoration: none;
  color: inherit;
  border: 1px solid #ddd;
  border-radius: 5px;
  transition: background-color 0.2s;
}
.obituary-item:hover {
  background-color: #f8f9fa;
}
/* Style de l'image de profil */
.profile-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

/* Style de l'image des bouquets */
.profile-compo {
  width: 350px;
  height: 350px;
  object-fit: cover;
}

.centrer {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Styles pour les informations */
.obituary-info .pub-date,
.obituary-info .name-age,
.obituary-info .city {
  margin: 0;
}
.obituary-info .pub-date {
  font-size: 0.9rem;
  color: #888;
}
.obituary-info .name-age {
  font-size: 1.1rem;
  font-weight: bold;
}
.obituary-info .city {
  font-size: 0.9rem;
  color: #666;
}

.fond-gris {
  background: #f7f7f4;
}

.spacfr {
    padding: 20px !important;
}

.police-titre {
  font-family: 'Cormorant SC', serif;
}

body {
  font-family: 'Raleway', Arial, sans-serif;
  font-size: 1rem;
  color: #414141;
  line-height: 1.25em;
}

.my-custom-btn,
.my-custom-btn-border {
  padding: 0.5rem 1.25rem;
  font-weight: bold;
  border-radius: 0;
  margin: 0 2px;
  min-width: 120px;
  text-align: center;
}

.my-custom-btn-border {
  border: 2px solid #ce1619;
  background-color: white;
  color: #ce1619;
}

.my-custom-btn-border.active,
.my-custom-btn.active {
  background-color: #ce1619;
  color: white;
  border-color: #ce1619;
}


.my-custom-btn {
    background-color: #ce1619;  /* Couleur de fond personnalisée */
    border: none;
}

.my-custom-btn:hover {
    background-color: #ce1619; /* couleur au survol */
    color:  #fff;
}

.my-custom-btn-border:hover {
    background-color: #ce1619; /* couleur au survol */
    color:  #fff;
}

/*@media (max-width: 576px) {
  .my-custom-btn,
  .my-custom-btn-border {
    display: block;
    width: 100%;
    min-width: auto;
    margin: 0.5rem 0;
    padding: 0.75rem 0.75rem;
    font-size: 1rem;
  }
}*/

.btn-primary:active {
    background-color: #ce1619; /* nouvelle couleur de fond */
    border-color: #ce1619;     /* nouvelle couleur de bordure */
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:not(:disabled):not(.disabled):active {
  background-color: #070e63 !important;  /* un rose plus foncé pour le hover */
  border-color: #070e63 !important;
  color: #fff;
  box-shadow: none;
}

.btn-primary:not(:disabled):not(.disabled).active, .btn-primary:not(:disabled):not(.disabled):active, .show>.btn-primary.dropdown-toggle {
    color: #fff;
    background-color: #070e63 !important;
    border-color: #070e63 !important;
    box-shadow: none;
}

.my-custom-link {
    color: #ce1619;              /* Couleur personnalisée */
    transition: color 0.3s;
}
.my-custom-link:hover {
    color: #414141;              /* Changement de couleur au survol */
}


.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: #070e63;
    border-color: #070e63;
}

.page-link {
    color: #070e63;
}

@media (max-width: 767.98px) { /* Pour les écrans en dessous du breakpoint md */
  .profile-compo {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}

.departement-description {
    text-align: left; /* ou initial si vous préférez réinitialiser */
}

h3 {
    font-size: 1.25rem !important;
}

.tuile-taille {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 2px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  font-family: 'Raleway', sans-serif;
  background-color: #fff;
  height: 100%;
}

.tuile-taille:hover {
  border-color: #ce1619;
}

.icone-fleur {
  width: 100%;
  height: 80px; /* ou une autre hauteur fixe adaptée */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.icone-fleur img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.nom-taille {
  font-weight: bold;
  font-size: 1.1rem;
  color: #414141;
}

@media (max-width: 768px) {
  .nom-taille {
    font-size: 1rem;
  }
}

.prix-taille {
  color: #ce1619;
  font-weight: bold;
  margin-top: 5px;
}

@media (max-width: 768px) {
  .prix-taille {
    font-size: 15px;
  }
}

/* Input radio caché */
input[type="radio"][name="taille"] {
  display: none;
}

/* Tuile sélectionnée */
input[type="radio"][name="taille"]:checked + label {
  border-color: #ce1619;
  background-color: #fff6f8;
  box-shadow: 0 0 0 2px #ce1619 inset;
}

.tuile-livraison {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 2px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  font-family: 'Raleway', sans-serif;
  background-color: #fff;
  height: 100%;
}

.tuile-livraison:hover {
  border-color: #ce1619;
}

input[type="radio"][name="livraison"] {
  display: none;
}

input[type="radio"][name="livraison"]:checked + label {
  border-color: #ce1619;
  background-color: #fff6f8;
  box-shadow: 0 0 0 2px #ce1619 inset;
}

input[type="radio"][name="frequence"] {
  display: none;
}

input[type="radio"][name="frequence"]:checked + label {
  border-color: #ce1619;
  background-color: #fff6f8;
  box-shadow: 0 0 0 2px #ce1619 inset;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    text-align: center;
}

.lightbox:target {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border: 5px solid #fff;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    border-radius: 10px;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.noUi-connect {
  background: #ce1619 !important;
}
.noUi-handle {
  border-color: #ce1619 !important;
}

.accordion-button  {
  background-color: rgb(241,110,146,0.5) !important;
  color : #333333 !important;
  font-weight: bold;
}

.actions-container {
  background-color: #5c5c75;
  padding: 30px 10px;
  border-radius: none;
  display: flex;
  justify-content: center;
  gap: 60px;
}

.action {
  text-align: center;
  color: white;
}

.action img {
  background-color: #ffe2b3;
  border-radius: 50%;
  padding: 15px;
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 10px;
}

.action a {
  color : #fff;
  text-decoration: none;
}

.action p {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
}

  .action-lien {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 10px 5px;
    color: #070e63;
    font-weight: 600;
    border-radius: 10px;
    transition: background 0.2s;
    position: relative;
  }

  .action-lien:hover {
    background-color: #070e63;
    color : #fff;
    text-decoration: none;
  }

  .action-lien img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .action-lien span.fleche {
    margin-left: auto;
    font-size: 20px;
    color: #999;
  }

  .modal-title {
    font-family: 'Segoe UI', Roboto, sans-serif;
    padding: 20px;
  }

.btn-close-text {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  color: #999;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

.btn-close-text:hover {
  color: #333;
}

.hommage-cover {
  position: relative;
  background-image: url('/images/couverture-montagne.webp');
  background-size: cover;
  background-position: center;
  padding: 80px 0 40px 0;
  color: #fff;
  overflow: hidden;
}

/* Overlay foncé semi-transparent */
.hommage-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45); /* ajustable entre 0.3 et 0.6 selon fond */
  z-index: 1;
}

/* Éléments au-dessus de l'overlay */
.profil-wrapper {
  position: relative;
  z-index: 2;
  text-align: left;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  color: white;
}

.profil-photo {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background-color: #ce1619;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid white;
}

.profil-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profil-info {
  flex: 1;
  color: #fff;
}

.profil-info h1 {
  margin: 0;
  font-size: 28px;
  color: white;
}

.profil-info p {
  margin: 0;
  font-size: 16px;
  color: white;
}

.profil-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}

.profil-actions .btn {
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 6px;
}

.custom-upload-box {
    background-color: #f8f9fa;
    cursor: pointer;
    transition: border-color 0.3s ease-in-out;
}
.custom-upload-box:hover {
    border-color: #0d6efd;
}
.upload-label {
    display: block;
    cursor: pointer;
}
.upload-icon {
    font-size: 2rem;
}

.input-group {
  align-items: stretch; /* essentiel */
}

.input-group .form-control {
  height: auto;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  line-height: 1.5;
  border-radius: 4px 0 0 4px;
}

.input-group .btn {
  display: flex;
  align-items: center;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  border-radius: 0 4px 4px 0;
}

/* Barre sticky en bas sur mobile */
.sticky-order-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #F7F7F3;
  border-top: 1px solid #e8ddd6;
  padding: 0.75rem 1rem;
  z-index: 1050;
  align-items: center;
}

/* Pour que le contenu sous la barre ne soit pas caché */
@media (max-width: 767.98px) {
  body {
    padding-bottom: 5rem; /* hauteur approximative de la barre sticky */
  }
}


/* ======= HERO ======= */
.rf-hero .hero-img {
  border-radius: 6px;
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.rf-hero .hero-badge {
  position: absolute;
  right: 18px;
  bottom: 14px;
  background: #ce1619;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: .5px;
  box-shadow: 0 6px 18px rgba(206,22,25,.25);
}
@media (max-width: 576px) {
  .rf-hero .hero-badge { right: 10px; bottom: 10px; font-size: .9rem; }
}

/* Small caps titre principal */
.rf-smallcaps {
  font-family: 'Cormorant SC', serif;
  font-variant: small-caps;
  letter-spacing: .5px;
}

/* ======= CATEGORIES ======= */
.rf-cat-card {
  display: block;
  text-align: center;
  text-decoration: none;
  color: inherit;
}
.rf-cat-thumb {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #eee;
  height: 210px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
.rf-cat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rf-cat-card:hover .rf-cat-thumb {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}
.rf-pill {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 14px;
  background: #070e63;
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
}

/* Carré parfait pour les catégories, tous devices */
.rf-cat-thumb {
    width: 100%;
    padding-top: 100%; /* crée un carré responsive */
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eee;
    background: #fff;
}

/* L'image occupe tout le carré */
.rf-cat-thumb img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* crop propre */
}

/* ======= PRODUITS ======= */
.rf-prod .card-title { min-height: 2.2em; }
.rf-prod .image-wrapper { height: 220px; }

/* ======= USPs ======= */
.rf-usps { background: #fff; }
.rf-usp-ico {
  font-size: 2.2rem;
  background: #ffe2b3;
  padding: 18px;
  width: 86px; height: 86px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.rf-usp-title { font-weight: 700; }

/* Ajustements intro */
.rf-intro h1 { font-size: 1.6rem; }
@media (min-width: 992px) { .rf-intro h1 { font-size: 1.9rem; } }
