:root {
  --primary-lightest: #E4FAE7;
  --warning-light: #FF918B;
  --warning-lightest: #FFEAE9;
  --primary-light: #70CD7B;
  --primary: #2E9F3C;
  --primary-dark: #076C14;
  --primary-darkest: #001002;
  --secondary-1-lightest: #FFF7E9;
  --secondary-1-light: #FFD58B;
  --secondary-1: #CE993B;
  --secondary-1-dark: #8B5D09;
  --secondary-1-darkest: #140D00;
  --secondary-2-lightest: #E4EBF7;
  --secondary-2-light: #6A85B4;
  --secondary-2: #305188;
  --secondary-2-dark: #0E2B5C;
  --secondary-2-darkest: #00050D;
  --tertiary-lightest: #dbe9e7;
}

body {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: large;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

.miniexpo{
    vertical-align: super;
    font-size: 50%;
} 

/* Add to main.css */
.section-transition {
  position: relative;
  overflow: hidden;
}

.section-transition::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(to bottom, transparent, rgba(48, 81, 136, 0.2));
}

.section-transition::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(to top, transparent, rgba(48, 81, 136, 0.2));
}

.section-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section-fade.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.parallax-section {
  background-attachment: fixed;
  transform: translateZ(0);
  will-change: transform;
}

.section-divider {
  position: relative;
  margin-top: -60px;
  margin-bottom: -60px;
  height: 120px;
  background: linear-gradient(180deg, var(--from-color) 45%, var(--to-color) 55%);
}


.avertissement {
    background-color: #FFDFA3;
    color: #9D6DA8;
}

.echec{
    background-color: #FFDFA3;
    color: red;
}

.fleche{
    color:#B2893F;
    display: inline-block;
    padding: 0px 25px 0px 25px;
}

#info-bubble {
    display: none;
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 5px 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    z-index: 1000;
}

.bg-baby-blue {background-color: #f8f8ff;}
.bg-light-gray { background-color: rgba(0, 0, 0, 0) }
.bg-primary-lightest { background-color: #E4FAE7; }
.bg-warning-light {background-color: #FF918B;}
.bg-warning-lightest { background-color: #FFEAE9; }
.bg-primary-light { background-color: #70CD7B; }
.bg-primary { background-color: #2E9F3C; }
.bg-primary-dark { background-color: #076C14; }
.bg-primary-darkest { background-color: #001002; }
.bg-secondary-1-lightest { background-color: #FFF7E9; }
.bg-secondary-1-light { background-color: #FFD58B; }
.bg-secondary-1 { background-color: #CE993B; }
.bg-secondary-1-dark { background-color: #8B5D09; }
.bg-secondary-1-darkest { background-color: #140D00; }
.bg-secondary-2-lightest { background-color: #E4EBF7; }
.bg-secondary-2-light { background-color: #6A85B4; }
.bg-secondary-2 { background-color: #305188; }
.bg-secondary-2-dark { background-color: #0E2B5C; }
.bg-secondary-2-darkest { background-color: #00050D; }
.text-primary { 
  color: #2E9F3C;
  font-weight: 600;
  letter-spacing: -0.02em; }
.text-primary-dark { color: #076C14; }
.text-red {color: #CE423B;}
.text-secondary-1 { color: #CE993B; }
.text-secondary-2 { color: #0E2B5C; }
.text-secondary-2-dark { color: #00050D; }
.hover-bg-primary-dark:hover { background-color: #076C14; }
.hover-bg-secondary-1-dark:hover { background-color: #8B5D09; }
.hover-bg-secondary-2-dark:hover { background-color: #0E2B5C; }
.hover-bg-primary-dark:hover { background-color: #076C14; }
.hover-bg-danger-dark:hover { background-color: #8B1009; }

.login-title, .register-title {
  font-weight: 700;  /* Plus gras pour les titres importants */
}

input, textarea, select {
  font-family: 'Source Sans Pro', sans-serif;  /* ou 'Noto Sans' pour l'option 2 */
  font-size: 1rem;
}

.product-link {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-link:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.product-list {
    display: flex;
    flex-wrap: wrap;
    margin: -0.5rem;  /* Compense le padding des éléments enfants */
  }
  
  .product-item-wrapper {
    width: 100%;
    padding: 0.5rem;
    display: flex;
  }
  
  .product-item {
    width: 95%;
    height: 200px;  /* Hauteur fixe, ajustez selon vos besoins */
    display: flex;
    flex-direction: column;
  }
  
  .product-info {
    flex-grow: 1;
    overflow: hidden;
  }
  
  .product-title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
  }
  
  /* @media screen and (min-width: 30em) {
    .product-item-wrapper {
      width: 50%;
    }
  }
  
  @media screen and (min-width: 60em) {
    .product-item-wrapper {
      width: 90%;
    }
  } */

.navbar-title {
    transition: opacity 0.3s ease, transform 0.3s ease;
    text-shadow: 2px 2px #076C14;
}

.navbar-title.hidden {
    opacity: 0;
    transform: scale(0.5);
    pointer-events: none;
}



.titrevert{
    background-color: #2E9F3C;
    color: #FFF7E9;
    z-index: 1000;
}

.titrevert nav {
    position: relative;
    z-index: 2;
}

.titrevertpale{
    background-color: #7EC687;
    color: #FFF8EB;
}

.titremauvepale{
    background-color: #9D6DA8;
    color: #FFF8EB;
}

/* BOUTONS */

.btn {
  display: inline-flex;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-shadow: 1px 1px rgba(0, 16, 2, 0.3);
  box-shadow: 1px 1px 0 rgba(0, 16, 2, 0.3);
  transition: transform 0.1s, box-shadow 0.1s;
  cursor: pointer;
  /* Standardized padding for all buttons */
  padding: 0.5rem 1rem;
  /* Standardized height */
  min-height: 2.5rem;
  /* Standardized margins */
  margin: 0.5rem;
  border-radius: 0.5rem;
}
.btn:active {
    transform: translateY(2px) translateX(2px);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background-color: #2E9F3C;
    color: #E4FAE7;
    border: 2px outset #076C13;
    font-size: medium !important;
}

.btn-primary-mini {
  display:inline-flex;
  /* font-family:Verdana, Geneva, Tahoma, sans-serif; */
  text-align: center;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-shadow: 1px 1px rgba(0, 16, 2, 0.3);
  box-shadow: 1px 1px 0 rgba(0, 16, 2, 0.3);
  transition: transform 0.1s, box-shadow 0.1s;
  cursor: pointer;
  background-color: #2E9F3C;
  color: #E4FAE7;
  border: 2px outset #076C13;
  font-size: small !important;
  padding: 5px !important;
}

.btn-primary-inactive{
    /* font-family:Verdana, Geneva, Tahoma, sans-serif; */
    background-color: #E4FAE7;
    text-shadow: 1px 1px rgba(0, 16, 2, 0.2);
    /* box-shadow: 1px 1px 0 rgba(0, 16, 2, 0.2); */
    color: #2E9F3C;
    border: 1px solid #70CD7B;
    font-size: small;
}

.btn-secondary-inactive{
  /* font-family:Verdana, Geneva, Tahoma, sans-serif; */
  background-color: #E4EBF7;
  text-shadow: 1px 1px rgba(0, 16, 2, 0.2);
  /* box-shadow: 1px 1px 0 rgba(0, 16, 2, 0.2); */
  color: #305188;
  border: 1px solid #6A85B4;
  font-size: small;
}

.btn-secondary {
    background-color: #6A85B4;
    color: #E4EBF7;
    border: 2px outset #305188;
    font-size: medium !important;
}

.btn-danger {
    background-color: #CE433B;
    color: #FFEAE9;
    border: 2px outset #8B1009;
    font-size: medium !important;
}

.btn-darkdanger {
    background-color: #8B1009;
    color: #FFEAE9;
    border: 2px outset gray;
    font-size: medium !important;
}

.btn-admin {
    background-color: #672C75;
    color: #FFF8EB;
    border: 2px outset #8B1009;
    font-size: medium !important;
}

.btn-compte {
    background-color: #CE993B;
    color: #FFF7E9;
    border: 2px outset #8B5D09;
    font-size: medium !important;
}



.fondblanc{
    background-color: white;
    
}

.fondvioletpale {
    background-color: #E4EBF7;
    color: #0E2B5C;
    border-radius: 5px;
    border: 1px solid whitesmoke;
    padding:0px;
    box-shadow: 
        12px 0 15px -4px rgba(31, 73, 125, 0.2),
        -12px 0 15px -4px rgba(31, 73, 125, 0.2);
}

textarea {
    background-color: #E5F8E7;
    border-radius: 5px;
    border: none;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}

.filepicker {
    
    color: blue;
    border-radius: 5px;
    font-weight: bolder;
    
    cursor: pointer;
    display: inline-block;
}

#sourcolo {
      
    opacity:0;
}

#flash-message {
  transition: opacity 0.5s ease-out;
  z-index:10;
}

/* Message container styles */
.floating-message {
  position: fixed;
  top: 80px; /* Adjusted to appear below navbar */
  right: 20px;
  z-index: 2000;
  max-width: 400px;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  animation: slideIn 0.3s ease-out;
  margin-bottom: 10px;
}

/* Stack messages with JavaScript */
.floating-message:nth-child(2) { top: 150px; }
.floating-message:nth-child(3) { top: 220px; }

.floating-message.warning {
  background-color: #FFF7E9;
  color: #8B5D09;
  border-left: 4px solid #CE993B;
}

/* Success message style */
.floating-message.success {
  background-color: #E4FAE7;
  color: #076C14;
  border-left: 4px solid #2E9F3C;
}

/* Error message style */
.floating-message.error {
  background-color: #FFEAE9;
  color: #8B1009;
  border-left: 4px solid #CE433B;
}

/* Slide in animation */
@keyframes slideIn {
  from {
      transform: translateX(100%);
      opacity: 0;
  }
  to {
      transform: translateX(0);
      opacity: 1;
  }
}

/* Auto-hide animation */
.floating-message.fade-out {
  animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
  from {
      transform: translateX(0);
      opacity: 1;
  }
  to {
      transform: translateX(100%);
      opacity: 0;
  }
}



main {
    display: grid;
    height: 100%;
    flex: 1 0 auto;
}

.contenu {
    align-self: center;
    justify-self: center;
    height: 100%;
    width:80%;
    padding-left: 25px; 
    padding-top: 15px;
}

.contenu2{
    align-self: center;
    justify-self: center;
    height: 100%;
    width:80%;
    padding-left: 5px;
    padding-right: 5px; 
    padding-top: 15px;
}


  details {
    margin-bottom: 1em;
    cursor: pointer;
  }

  summary {
    font-weight: bold;
  }

  details[open] summary {
    color: #0073e6;
  }

/* Gestion du menu déroulant en CSS ---------------*/

/* Modern Dropdown Menu Styles for TMXCentral */

/* Base dropdown container */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Ensure adequate spacing for dropdown items */
.dropdown-content {
  width: auto;
  min-width: 220px; /* Increased minimum width to accommodate larger text */
}

/* Dropdown trigger text */
.dropdown > span, 
.dropdown > button {
  cursor: pointer;
  position: relative;
  padding: 0.5rem 1rem;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
  /* Removing specific font size to inherit from parent navbar */
  /* font-size: 1.15rem; */
  /* font-weight: 500; */
}

/* Add subtle indicator triangle */
.dropdown > span:after,
.dropdown > button:after {
  content: "▾";
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.7em;
  transition: transform 0.3s ease;
}

/* Dropdown content - hidden by default */
.dropdown-content {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  z-index: 100;
  min-width: 200px;
  top: calc(100% + 0.5rem);
  left: 0;
  background-color: #FFF7E9; /* Secondary color #2 light shade */
  border-radius: 0.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 0.75rem 0;
  transition: all 0.3s ease;
  transform: translateY(-10px);
  border-top: 3px solid #2E9F3C; /* Primary color */
}

/* Show the dropdown on hover */
.dropdown:hover .dropdown-content, 
.dropdown:focus-within .dropdown-content {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

/* Rotate the triangle when dropdown is active */
.dropdown:hover > span:after,
.dropdown:focus-within > span:after,
.dropdown:hover > button:after,
.dropdown:focus-within > button:after {
  transform: rotate(180deg);
}

/* Dropdown links */
.dropdown-content a {
  display: block;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  transition: all 0.2s ease;
  color: #0E2B5C; /* Darker shade of Secondary color #1 for better contrast */
  border-left: 3px solid transparent;
  font-size: 1.1rem; /* Increased font size */
  line-height: 1.4; /* Improved line height for readability */
  font-weight: 500; /* Medium weight for better contrast */
}

/* Dropdown links hover effect */
.dropdown-content a:hover {
  background-color: rgba(46, 159, 60, 0.15); /* Slightly increased opacity for better contrast */
  border-left-color: #2E9F3C; /* Primary color */
  color: #076C14; /* Darker primary color for better contrast */
}

/* Disabled items in dropdown */
.dropdown-content span.pointer-events-none {
  display: block;
  padding: 0.75rem 1.25rem;
  color: #305188; /* Darker color for better contrast (was #6A85B4) */
  border-left: 3px solid transparent;
  opacity: 0.8; /* Increased from 0.7 for better contrast */
  font-size: 1rem; /* Slightly larger than before but smaller than active links */
  line-height: 1.4;
}

/* Optional: add dividers between items */
.dropdown-content a:not(:last-child) {
  border-bottom: 1px solid rgba(48, 81, 136, 0.2); /* Increased opacity for better contrast */
}
.dropdown-content span:not(:last-child) {
  border-bottom: 1px solid rgba(48, 81, 136, 0.2); /* Increased opacity for better contrast */
}

/* Account dropdown specific styles */
.dropdown:has(button.btn-compte) .dropdown-content {
  border-top-color: #CE993B; /* Secondary color #2 */
}

.dropdown:has(button.btn-compte) .dropdown-content a:hover {
  background-color: rgba(206, 153, 59, 0.15); /* Increased opacity for better contrast */
  border-left-color: #CE993B; /* Secondary color #2 */
  color: #8B5D09; /* Secondary color #2 darker shade */
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
  .dropdown-content {
    position: static;
    box-shadow: none;
    border-top: none;
    background-color: rgba(228, 250, 231, 0.2); /* Primary color lightest shade with opacity */
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 0;
    border-left: 3px solid #2E9F3C; /* Primary color */
  }
  
  .dropdown > span:after,
  .dropdown > button:after {
    position: absolute;
    right: 1rem;
  }
}

.pointer-events-none {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Specific styling for account dropdown if needed */
.btn-compte .dropdown-content {
    left: 0; /* Ensure proper alignment */
    text-align: left;
}
 /*-------------------------------------------------*/

.lien-principal {
    color: #350641;
    text-decoration: underline;
    padding: 1px 0px 1px 0px;
    
}

.lien-principal:hover {
    background-color: #FFDFA3;
    border-radius: 8px;
}

.mauve2 {
    color:#9D6DA8;
}   

.mauve1 {
    color: #F1E2F4;
}

.mauve3 {
    color:#672C75;
}

.lt-orange {
    background-color: rgba(250, 112, 112, 0.4);
}

.hero-image {
    background-image: url('/hero_large.jpg');
    background-color: #cccccc; /* Fallback color */
    background-size: cover;
    background-position: center top;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    z-index: 1;
    margin-top: -3px;
}
.hero-text {
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    z-index: 3;
    padding: 20px;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.3);
    z-index: 2;
}

.cart-icon {
    position: relative;
    color: white;
    text-decoration: none;
  }
  
  .cart-icon:hover {
    color: #FFF7E9;
  }
  
  .cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #CE993B;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  footer {
    flex-shrink: 0;
  }

  /* Gestion de la section Politique d'établissement des prix */

  details summary {
    transition: background-color 0.3s ease;
}

details summary:hover {
    background-color: #FFD58B; /* bg-secondary-2-dark */
    cursor: pointer;
}

details[open] summary {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

details > summary {
    list-style: none;
}

details > summary::-webkit-details-marker {
    display: none;
}

/* Animation pour l'ouverture/fermeture */
details[open] > div {
    animation: slideDown 0.3s ease-in-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page de gestion des produits Admin */

.status-indicator {
  display: inline-block;
  margin-right: 8px;
}


.bg-green {
  background-color: #2E9F3C;
}

.bg-red {
  background-color: #CE433B;
}

.toggle-status-btn {
  min-width: 100px;
}

/* Styles pour l'avertissement mobile */
.mobile-warning {
  position: fixed !important;
  z-index: 9999 !important;
  top: 0 !important;
}

@media screen and (max-width: 768px) {
  .titrevert {
      margin-top: 80px;
  }
}

/* Mobile warning styles - ensure it displays on mobile */
@media screen and (max-width: 768px) {
  .mobile-warning {
    display: block !important; /* Override any inline styles */
  }
}

/* Portail admin */

/* New CSS for alternating card colors */

.card-wrapper .card-container {
  background-color: var(--secondary-2-lightest); /* Default color */
}

.card-wrapper.w-25-l:nth-child(5n + 2) .card-container {
  background-color: var(--secondary-1-lightest);
}

.card-wrapper.w-25-l:nth-child(5n + 3) .card-container {
  background-color: var(--primary-lightest);
}

.card-wrapper.w-25-l:nth-child(5n + 4) .card-container {
  background-color: var(--warning-lightest);
}

.card-wrapper.w-25-l:nth-child(5n + 0) .card-container {
  background-color: var(--tertiary-lightest);
}

.card-row-2.w-25-l:nth-child(5n + 2) .card-container,
.card-row-2.w-25-l:nth-child(5n + 3) .card-container,
.card-row-2.w-25-l:nth-child(5n + 4) .card-container,
.card-row-2.w-25-l:nth-child(5n + 0) .card-container {
    /* Shift the colors by one */
    background-color: var(--tertiary-lightest);
}

.card-row-2.w-25-l:nth-child(5n + 1) .card-container{
    background-color: var(--secondary-1-lightest);
}
.card-row-2.w-25-l:nth-child(5n + 2) .card-container{
    background-color: var(--primary-lightest);
}
.card-row-2.w-25-l:nth-child(5n + 3) .card-container{
    background-color: var(--warning-lightest);
}
.card-row-2.w-25-l:nth-child(5n + 4) .card-container{
    background-color: var(--secondary-2-lightest);
}