@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

html, body {
    height: 100%;
    margin: 0;
}

/* Mode clair (par défaut) */
body {
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
}

main {
    flex-grow: 1;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    width: 100%;
}

.lien_accueil > h1,.lien_accueil >img  {
    display: inline-block;
}

.product-card {
    width: 100%;
    max-width: 280px;
    background-color: white;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.long-card  {
    min-height: 626px;
    min-width: 100%;
    text-align: left;
}

.long-card > h1,h2  {
    text-align: center;
}

.long-card > h1  {
    font-size: 2em;
}

.long-card > h2  {
    font-size: 1.5em;
}

.product-display-card  {
    min-height: 380px;
}

.product-image {
    width: 100%;
    height: 200px; /* Taille fixe */
    object-fit: cover; /* Pour éviter la déformation */
    border-radius: 5px;
}

.product-title {
    font-size: 1.2rem;
    font-weight: bold;
    max-height: 48px; /* Deux lignes max */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-description {
    font-size: 0.9rem;
    color: gray;
    max-height: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding-bottom: 80px; /* Pour éviter que le footer monte */
}

/* Labels toujours blancs */
label  {
    color: white;
    font-weight: bolder;
}

/* Mode sombre */
.dark body {
    background-color: #121212;
    color: white;
}

/* Mode sombre - Application aux produits */
.dark .product-card {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
    color: white;
}

.dark .product-description {
    color: #cccccc;
}

/* Mode sombre - Application au footer */
.dark footer {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
    color: white;
}

/* Mode sombre - Application aux formulaires */
.dark input, .dark textarea {
    background-color: #1e1e1e;
    color: white;
    border: 1px solid #555;
}

/* Assurer que Dark Mode fonctionne sur tout */
.dark main {
    color: white;
}

.dark .form-container {
    background-color: #1e1e1e;
    color: white;
}

/* Positionnement fixe du bouton Dark Mode */
#darkModeToggle {
    position: fixed;
    bottom: 4px;
    right: 4px;
    background-color: #444;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

#darkModeToggle:hover {
    background-color: #666;
}

html.dark {
    background-color: #121212;
}

/* For light mode QUILL EDITOR */
.ql-snow .ql-stroke {
    stroke: #000; /* set desired stroke color */
}
.ql-snow .ql-fill {
    fill: #000; /* set desired fill color */
}
.ql-picker-label  {  /* set desired labels color */
    color: #000;
}
  
  /* For dark mode */
.dark .ql-snow .ql-stroke {
    stroke: #fff; /* set desired stroke color for dark mode */
}
.dark .ql-snow .ql-fill {
    fill: #fff; /* set desired fill color for dark mode */
}
.dark .ql-picker-label  {  /* set desired labels color for dark mode */
    color: #fff;
}
  