Ajout de HelloFresh

This commit is contained in:
2025-09-03 20:17:50 +02:00
parent bcef0a472b
commit d287112b7d
429 changed files with 82881 additions and 22074 deletions

View File

@@ -0,0 +1,20 @@
.sommeCard {
}
.card-title {
}
.divAffichageCarte {
display: flex;
}
.subTitleModal {
font-weight: bold;
padding-bottom: 0px;
margin-bottom: 0;
}
div.dt-container div.dt-layout-row {
margin: .25em 0!important;
}

View File

@@ -0,0 +1,325 @@
:root {
--bg: #0b0d12;
--panel: #11141b;
--muted: #8a93a6;
--text: #e8ecf3;
--accent: #4f8cff;
--accent-2: #63e;
--card: #151a22;
--border: #1f2632;
}
* {
box-sizing: border-box
}
html, body {
height: 100%;
margin: 0;
background: var(--bg);
color: var(--text);
}
body {
overflow: hidden;
font: 14px/1.4 system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial;
}
.cui-root {
height: 100dvh;
display: grid;
grid-template-columns: 320px 1fr;
gap: 0;
}
.cui-root.collapsed {
grid-template-columns: 56px 1fr;
}
.cui-side {
background: var(--panel);
border-right: 1px solid var(--border);
height: 100%;
overflow: hidden;
display: flex;
flex-direction: column;
}
.cui-side-head {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 12px 8px;
border-bottom: 1px solid var(--border);
}
.cui-side h2 {
margin: 0;
font-size: 16px;
font-weight: 700;
}
.cui-side .ghost {
width: 28px;
height: 28px;
border-radius: 10px;
}
.cui-root.collapsed #toggleSide {
transform: rotate(180deg)
}
.ghost {
background: transparent;
border: 1px solid var(--border);
color: var(--muted);
cursor: pointer
}
.ghost:hover {
border-color: #2a3343;
color: #b7c2da
}
.cui-cards {
padding: 10px;
overflow: auto;
height: 100%;
}
/* --- Cartes --- */
.cui-card {
background: var(--card);
border: 1px solid var(--border);
border-radius: 14px;
padding: 8px;
display: grid;
grid-template-columns: 40px 1fr;
gap: 8px;
align-items: center;
margin-bottom: 8px;
cursor: pointer;
transition: transform .12s ease, border-color .12s ease, background .12s ease, box-shadow .12s ease;
position: relative; /* pour l'effet d'état */
}
.cui-card:hover {
transform: translateY(-1px);
border-color: #2a3343
}
/* ✅ Remplace loutline par un box-shadow interne : plus de “carré bleu” coupé */
.cui-card.active {
box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 3px rgba(79,140,255,.15);
border-color: rgba(79,140,255,.45);
}
/* contenu carte */
.cui-thumb {
width: 40px;
height: 40px;
border-radius: 10px;
object-fit: cover;
background: #222
}
.cui-info {
min-width: 0;
}
/* ✅ permet lellipsis */
.cui-name {
font-size: 13px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: #cfd6e6
}
.cui-meta {
font-size: 11px;
color: var(--muted)
}
.cui-main {
display: flex;
flex-direction: column;
min-width: 0;
height: 100%;
}
.cui-toolbar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 12px;
border-bottom: 1px solid var(--border);
background: linear-gradient(180deg, #0f131a, #0c1016);
gap: 12px;
}
.cui-title {
font-size: 15px;
font-weight: 600;
flex: 1 1 auto; /* ✅ prend lespace dispo */
min-width: 0; /* ✅ autorise lellipsis */
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.primary {
background: var(--accent);
color: white;
border: 0;
padding: 8px 12px;
border-radius: 10px;
font-weight: 700;
cursor: pointer;
box-shadow: 0 6px 16px rgba(79,140,255,.25);
}
.primary:disabled {
opacity: .5;
cursor: not-allowed;
box-shadow: none
}
.cui-view {
position: relative;
flex: 1;
min-height: 0;
background: #0a0d13;
}
.cui-iframe {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
border: 0;
display: none;
}
.cui-placeholder {
position: absolute;
inset: 0;
display: grid;
place-items: center;
color: var(--muted);
font-size: 15px;
}
.viewer {
position: fixed;
inset: 0;
background: #000;
display: flex;
flex-direction: column;
z-index: 9999
}
.viewer.hidden {
display: none
}
.viewer-top {
height: 48px;
display: flex;
align-items: center;
gap: 12px;
padding: 8px 10px;
background: rgba(5,8,12,.7);
backdrop-filter: blur(6px);
}
.viewer-title {
color: #dfe6f5;
font-weight: 600;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
min-width: 0;
}
.viewer-iframe {
flex: 1;
width: 100%;
border: 0
}
#toggleSide {
transition: transform .15s ease
}
.cui-root.collapsed .cui-side h2 {
display: none
}
.cui-root.collapsed .cui-card {
grid-template-columns: 40px;
padding: 6px
}
.cui-root.collapsed .cui-name, .cui-root.collapsed .cui-meta {
display: none
}
/* petites cartes = pas de scroll vertical à larrivée */
@media (min-width: 1200px) {
.cui-card {
grid-template-columns: 36px 1fr;
gap: 6px
}
.cui-thumb {
width: 36px;
height: 36px
}
}
/* tablette : sidebar plus étroite (toujours sans scroll body) */
@media (max-width: 900px) {
.cui-root {
grid-template-columns: 86px 1fr;
}
}
/* --- Correctifs ciblés --- */
/* Anneau interne pour la carte active (ne sera plus coupé) */
.cui-card.active {
/* on remplace l'outline externe par un halo interne */
box-shadow: 0 0 0 2px var(--accent) inset;
outline: none; /* par sûreté */
}
/* quand la sidebar est réduite, même anneau interne */
.cui-root.collapsed .cui-card.active {
box-shadow: 0 0 0 2px var(--accent) inset;
}
/* Titre de la barre du haut : ellipsis propre si le nom est long */
.cui-title {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
max-width: calc(100vw - 220px); /* laisse la place au bouton */
}
/* Liframe de prévisualisation occupe exactement lespace dispo */
.cui-iframe {
display: block; /* évite certains comportements inline-iframe */
width: 100%;
height: 100%;
}
/* Par sécurité, pas de scroll horizontal dans le PDF */
.cui-view {
overflow: hidden;
}
/* Dans la liste, garantir lellipsis sur les noms longs */
.cui-name {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

View File

@@ -0,0 +1,464 @@
:root {
--hf-bg: #fff;
--hf-muted: #777;
--hf-border: #ececec;
--hf-ink: #1c1c1c;
--hf-pill: #f9f9f9;
}
.hf-ingredients {
background: var(--hf-bg);
border-radius: 12px;
padding: 16px 18px;
box-shadow: 0 2px 14px rgba(0,0,0,.06);
font-family: system-ui, Segoe UI, Roboto, sans-serif;
max-width: 105rem;
margin: 18px auto;
}
.hf-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.hf-head h2 {
margin: 0;
font-size: 1.6rem;
font-weight: 800;
}
.hf-qty {
display: flex;
align-items: center;
gap: 10px;
color: #444;
font-weight: 600;
}
.hf-qty select {
padding: 6px 10px;
border: 1px solid #cfcfcf;
border-radius: 8px;
}
.grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
gap: 1.5rem;
margin: 3%;
margin-top: 2%;
margin-bottom: 1%;
}
.card {
background: white;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
overflow: hidden;
display: flex;
flex-direction: column;
transition: transform 0.2s;
cursor: pointer;
width: 15rem;
position: relative; /* Pour positionner les éléments absolus à l'intérieur */
}
.card:hover {
transform: scale(1.02);
}
.card img {
width: 100%;
height: 150px;
object-fit: cover;
}
.card-content {
padding: 1rem;
flex: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
}
/* Titre de la recette */
.card h3 {
margin: 0;
font-size: 0.82rem;
color: #333;
font-weight: 800;
}
/* (Optionnel) Sous-titre ou autres infos */
.card h5 {
margin-top: 1%;
font-size: 0.80rem;
}
/* Lien (non utilisé ici, mais présent dans d'autres contextes) */
.card a {
text-decoration: none;
color: #fff;
background: #27ae60;
padding: 0.5rem 1rem;
border-radius: 8px;
font-weight: bold;
display: inline-block;
margin-top: 1rem;
transition: background 0.2s;
}
.card a:hover {
background: #1e874b;
}
.placeholder {
text-align: center;
color: #888;
}
/* Conteneur des étiquettes (tags) de chaque recette */
.label-container {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-top: 8px;
padding: 0 10px;
position: absolute;
top: 0px;
left: 0;
}
.label-badge {
padding: 4px 10px;
border-radius: 8px;
font-size: 0.60rem;
font-weight: 600;
white-space: nowrap;
line-height: 1.5;
opacity: .9;
}
/* Informations de recette (temps de préparation, etc.) */
.recipe-info {
font-size: 0.9rem;
font-weight: 700;
/* Le texte (temps) sera aligné à droite par le jeu de flexbox dans .footerCard */
}
/* Infobulle (tooltip) */
.tooltip {
position: absolute;
bottom: 110%;
left: 10px;
background-color: #333;
color: #fff;
padding: 8px 12px;
border-radius: 6px;
font-size: 0.9em;
white-space: pre-wrap;
z-index: 1000;
opacity: 0;
pointer-events: none;
transform: translateY(-10px);
transition: opacity 0.2s ease, transform 0.2s ease;
width: max-content;
max-width: 250px;
}
.card:hover .tooltip {
opacity: 1;
pointer-events: auto;
transform: translateY(-14px);
}
/* Styles pour la section pliable */
.section-toggle {
position: relative;
margin: 45px 0 0 0;
}
.section-hr {
border: 0;
border-top: 2px solid #ddd;
margin: 0;
}
.section-chip {
position: absolute;
left: 50%;
top: 0;
transform: translate(-50%, -50%);
display: flex;
gap: 8px;
align-items: center;
padding: 6px 12px;
border-radius: 5px;
border: 1px solid #e5e7eb;
background: #f4f4f4;
font-weight: 600;
cursor: pointer;
user-select: none;
}
.collapse-icon {
transition: transform 0.25s ease;
}
.section-toggle.open .collapse-icon {
transform: rotate(180deg);
}
.collapse-wrap {
overflow: hidden;
height: 0;
opacity: 0;
transition: height 0.26s ease, opacity 0.26s ease;
}
.collapse-wrap.open {
opacity: 1;
}
/* Pour la zone de contenu défilable (si applicable) */
.content {
overflow: auto;
}
.sticky-search {
position: sticky;
top: 0;
z-index: 10;
padding: 8px 12px;
}
/* Conteneur en bas de la carte pour temps + contrôles de portions */
.footerCard {
display: flex;
justify-content: space-between;
align-items: flex-end !important;
flex-direction: row-reverse;
}
/* Badge affichant le nombre de portions sélectionnées sur l'image */
.badge-portions {
position: absolute;
right: 8px;
background: rgba(0, 0, 0, 0.75);
color: #fff;
font-size: 0.55rem;
padding: 4px 8px;
border-radius: 12px;
top: 10px;
}
/* Contrôles de quantité (boutons +/ et affichage du nombre) */
.quantity-controls {
display: flex;
align-items: center;
gap: 4px;
/* Initialement, on les masque dans le HTML via style="display:none" (géré en JS) */
}
.quantity-controls button {
background: #f1f1f1;
border: 0;
padding: 0px 4px;
border-radius: 6px;
cursor: pointer;
}
.quantity-controls button:hover {
background: #e6e6e6;
}
.quantity {
font-weight: 700;
min-width: 1.5rem;
text-align: center;
}
/* Base: un léger contour pour qu'on voie le surlignage quand sélectionnée */
.card {
border: 1px solid #eee;
}
/* Les cartes dans OWNED n'ont pas de surlignage vert (c'est implicite qu'elles sont choisies) */
#recipeGridOwned .card {
border-color: #eee; /* force un rendu "neutre" */
box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.footerCard {
display: flex;
align-items: center;
justify-content: space-between;
flex-direction: row; /* plus de row-reverse */
}
/* Contrôles visibles seulement dans OWNED */
#recipeGrid .quantity-controls {
display: none !important;
}
#recipeGridOwned .quantity-controls {
display: flex;
}
.placeholder-result {
background: none;
color: black;
width: 40rem;
text-align: left;
font-style: italic;
}
.pagination-modern {
bottom: 20px;
right: 65px;
backdrop-filter: blur(6px);
border-radius: 12px;
padding: 6px 14px;
display: flex;
align-items: center;
gap: 8px;
font-family: 'Segoe UI', sans-serif;
font-size: 14px;
z-index: 999;
width: fit-content;
MARGIN: auto;
margin-right: 2.4%;
}
.pagination-btn {
border: none;
background: #4CAF50;
color: white;
font-size: 16px;
padding: 6px 10px;
border-radius: 8px;
cursor: pointer;
transition: background 0.2s ease, transform 0.1s ease;
}
.pagination-btn:hover {
background: #45a049;
}
.pagination-btn:disabled {
background: #ccc;
cursor: not-allowed;
}
#pageInfo {
font-weight: 500;
color: #333;
}
.owned-empty {
display: block;
color: #666;
font-weight: 600;
border-radius: 10px;
font-style: italic;
}
/* Section pliable ULTRA FIABLE en max-height */
/* --- FIX: n'utiliser que max-height pour la section pliable --- */
.collapse-wrap {
/* on annule la vieille règle à base de height:0 */
height: auto !important;
/* on garde le système au max-height */
overflow: hidden;
max-height: 0;
opacity: 0;
transition: max-height .30s ease, opacity .30s ease;
}
.collapse-wrap.open {
opacity: 1;
max-height: 2000px; /* assez grand pour tout contenir */
}
/* Message "aucune recette" masqué par défaut */
#noSelectedMsg {
display: none;
font-style: italic;
color: #666; /* texte grisé par exemple */
}
/* Emplacement réservé pour l'indicateur (évite les décalages) */
.selection-slot {
display: flex;
align-items: center;
gap: 6px;
min-height: 18px; /* hauteur de la pastille */
min-width: 110px; /* réserve de la place pour "Sélectionné" */
visibility: hidden; /* masqué par défaut mais prend la place */
}
.selection-slot.active { /* quand sélectionné */
visibility: visible;
}
.selection-indicator {
display: flex;
align-items: center;
gap: 6px;
font-weight: 700;
color: #27ae60;
}
.selection-indicator .check-icon {
background: #27ae60;
color: #fff;
font-size: .75rem;
width: 18px;
height: 18px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
}
.selection-text {
font-size: .8rem;
font-weight: 900;
}
#pdfModal {
z-index: 2000 !important; /* au-dessus de tout */
}
.modal-backdrop {
z-index: 1999 !important;
}
.placeholder {
color: #666;
}
.hf-grid {
display: flex;
gap: 17px;
margin-bottom: 40px;
}
label {
margin-bottom: 0rem;
}
h3.history-date {
font-size: 1.1rem;
font-weight: 500;
}
div#historyContainer {
margin-top: 1.5rem;
}

View File

@@ -0,0 +1,737 @@
:root {
--hf-bg: #fff;
--hf-line: #e8eaf0;
--hf-text: #20222a;
--hf-muted: #6b7280;
--hf-accent: #5b6cff;
--hf-accent-weak: #eef0ff;
--hf-radius: 16px;
--hf-shadow: 0 10px 30px rgba(15,23,42,.10), 0 2px 10px rgba(15,23,42,.04);
}
/* ancre du popover */
.hf-filter-anchor {
position: relative;
display: inline-block;
}
/* carte popover */
.hf-popover {
position: absolute;
top: calc(100% + 8px);
right: 0;
width: min(720px, 92vw);
background: var(--hf-bg);
border: 1px solid var(--hf-line);
border-radius: 16px;
box-shadow: var(--hf-shadow);
z-index: 2000;
display: grid;
grid-template-rows: auto 1fr auto;
}
.hf-popover[hidden] {
display: none;
}
.hf-filter-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 14px;
border-bottom: 1px solid var(--hf-line);
}
.hf-filter-header .title {
display: flex;
gap: 8px;
align-items: center;
font-weight: 700
}
.hf-filter-body {
display: grid;
gap: 14px;
padding: 14px
}
.hf-filter-footer {
display: flex;
gap: 8px;
justify-content: flex-end;
border-top: 1px solid var(--hf-line);
padding: 12px 14px
}
/* assure le menu Select2 DANS le popover */
.select2-container.select2-container--open {
z-index: 2100 !important;
}
.grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
gap: 1.5rem;
margin: 3%;
margin-top: 2%;
margin-bottom: 1%;
}
.card {
background: white;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
overflow: hidden;
display: flex;
flex-direction: column;
transition: transform 0.2s;
cursor: pointer;
width: 17rem;
height: 17rem;
position: relative; /* Pour positionner les éléments absolus à l'intérieur */
}
.card:hover {
transform: scale(1.02);
}
.card img {
width: 100%;
height: 180px;
object-fit: cover;
}
.card-content {
padding: 1rem;
flex: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
}
/* Titre de la recette */
.card h3 {
margin: 0;
font-size: 0.82rem;
color: #333;
font-weight: 800;
}
/* (Optionnel) Sous-titre ou autres infos */
.card h5 {
margin-top: 1%;
font-size: 0.80rem;
}
/* Lien (non utilisé ici, mais présent dans d'autres contextes) */
.card a {
text-decoration: none;
color: #fff;
background: #27ae60;
padding: 0.5rem 1rem;
border-radius: 8px;
font-weight: bold;
display: inline-block;
margin-top: 1rem;
transition: background 0.2s;
}
.card a:hover {
background: #1e874b;
}
.placeholder {
text-align: center;
color: #888;
}
/* Conteneur des étiquettes (tags) de chaque recette */
.label-container {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-top: 8px;
padding: 0 10px;
position: absolute;
top: 8px;
left: 0;
}
.label-badge {
padding: 4px 10px;
border-radius: 8px;
font-size: 0.60rem;
font-weight: 600;
white-space: nowrap;
line-height: 1.5;
opacity: .9;
}
/* Informations de recette (temps de préparation, etc.) */
.recipe-info {
font-size: 0.9rem;
font-weight: 700; /* Le texte (temps) sera aligné à droite par le jeu de flexbox dans .footerCard */
}
/* Infobulle (tooltip) */
.tooltip {
position: absolute;
bottom: 110%;
left: 10px;
background-color: #333;
color: #fff;
padding: 8px 12px;
border-radius: 6px;
font-size: 0.9em;
white-space: pre-wrap;
z-index: 1000;
opacity: 0;
pointer-events: none;
transform: translateY(-10px);
transition: opacity 0.2s ease, transform 0.2s ease;
width: max-content;
max-width: 250px;
}
.card:hover .tooltip {
opacity: 1;
pointer-events: auto;
transform: translateY(-14px);
}
/* Styles pour la section pliable */
.section-toggle {
position: relative;
margin: 45px 0 0 0;
}
.section-hr {
border: 0;
border-top: 2px solid #ddd;
margin: 0;
}
.section-chip {
position: absolute;
left: 50%;
top: 0;
transform: translate(-50%, -50%);
display: flex;
gap: 8px;
align-items: center;
padding: 6px 12px;
border-radius: 5px;
border: 1px solid #e5e7eb;
background: #f4f4f4;
font-weight: 600;
cursor: pointer;
user-select: none;
}
.collapse-icon {
transition: transform 0.25s ease;
}
.section-toggle.open .collapse-icon {
transform: rotate(180deg);
}
.collapse-wrap {
overflow: hidden;
height: 0;
opacity: 0;
transition: height 0.26s ease, opacity 0.26s ease;
}
.collapse-wrap.open {
opacity: 1;
}
/* Pour la zone de contenu défilable (si applicable) */
.content {
overflow: auto;
}
.sticky-search {
position: sticky;
top: 0;
z-index: 10;
padding: 8px 12px;
}
/* Conteneur en bas de la carte pour temps + contrôles de portions */
.footerCard {
display: flex;
justify-content: space-between;
align-items: flex-end !important;
flex-direction: row-reverse;
}
/* Badge affichant le nombre de portions sélectionnées sur l'image */
.badge-portions {
position: absolute;
right: 8px;
bottom: 8px;
background: rgba(0,0,0,0.75);
color: #fff;
font-size: 0.8rem;
padding: 4px 8px;
border-radius: 12px;
display: none; /* Masqué par défaut, s'affichera si portions > 0 */
}
/* Contrôles de quantité (boutons +/ et affichage du nombre) */
.quantity-controls {
display: flex;
align-items: center;
gap: 4px; /* Initialement, on les masque dans le HTML via style="display:none" (géré en JS) */
}
.quantity-controls button {
background: #f1f1f1;
border: 0;
padding: 0px 4px;
border-radius: 6px;
cursor: pointer;
}
.quantity-controls button:hover {
background: #e6e6e6;
}
.quantity {
font-weight: 700;
min-width: 1.5rem;
text-align: center;
}
/* Base: un léger contour pour qu'on voie le surlignage quand sélectionnée */
.card {
border: 1px solid #eee;
}
/* Les cartes dans OWNED n'ont pas de surlignage vert (c'est implicite qu'elles sont choisies) */
#recipeGridOwned .card {
border-color: #eee; /* force un rendu "neutre" */
box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.footerCard {
display: flex;
align-items: center;
justify-content: space-between;
flex-direction: row; /* plus de row-reverse */
}
/* Contrôles visibles seulement dans OWNED */
#recipeGrid .quantity-controls {
display: none !important;
}
#recipeGridOwned .quantity-controls {
display: flex;
}
.placeholder-result {
background: none;
color: black;
width: 40rem;
text-align: left;
font-style: italic;
}
.pagination-modern {
bottom: 20px;
right: 65px;
backdrop-filter: blur(6px);
border-radius: 12px;
padding: 6px 14px;
display: flex;
align-items: center;
gap: 8px;
font-family: 'Segoe UI', sans-serif;
font-size: 14px;
z-index: 999;
width: fit-content;
MARGIN: auto;
margin-right: 2.4%;
}
.pagination-btn {
border: none;
background: #4CAF50;
color: white;
font-size: 16px;
padding: 6px 10px;
border-radius: 8px;
cursor: pointer;
transition: background 0.2s ease, transform 0.1s ease;
}
.pagination-btn:hover {
background: #45a049;
}
.pagination-btn:disabled {
background: #ccc;
cursor: not-allowed;
}
#pageInfo {
font-weight: 500;
color: #333;
}
.owned-empty {
display: block;
color: #666;
font-weight: 600;
border-radius: 10px;
font-style: italic;
}
/* Section pliable ULTRA FIABLE en max-height */ /* --- FIX: n'utiliser que max-height pour la section pliable --- */
.collapse-wrap { /* on annule la vieille règle à base de height:0 */
height: auto !important; /* on garde le système au max-height */
overflow: hidden;
max-height: 0;
opacity: 0;
transition: max-height .30s ease, opacity .30s ease;
}
.collapse-wrap.open {
opacity: 1;
max-height: 2000px; /* assez grand pour tout contenir */
}
/* Message "aucune recette" masqué par défaut */
#noSelectedMsg {
display: none;
font-style: italic;
color: #666; /* texte grisé par exemple */
}
/* Emplacement réservé pour l'indicateur (évite les décalages) */
.selection-slot {
display: flex;
align-items: center;
gap: 6px;
min-height: 18px; /* hauteur de la pastille */
min-width: 110px; /* réserve de la place pour "Sélectionné" */
visibility: hidden; /* masqué par défaut mais prend la place */
}
.selection-slot.active { /* quand sélectionné */
visibility: visible;
}
.selection-indicator {
display: flex;
align-items: center;
gap: 6px;
font-weight: 700;
color: #27ae60;
}
.selection-indicator .check-icon {
background: #27ae60;
color: #fff;
font-size: .75rem;
width: 18px;
height: 18px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
}
.selection-text {
font-size: .8rem;
font-weight: 900;
}
#pdfModal {
z-index: 2000 !important; /* au-dessus de tout */
}
.modal-backdrop {
z-index: 1999 !important;
}
/* Trigger & badge */
.hf-icon-btn {
display: inline-flex;
align-items: center;
gap: .5rem;
border: 1px solid var(--hf-line);
background: #fff;
padding: .5rem .65rem;
border-radius: 12px;
box-shadow: none;
cursor: pointer;
}
.hf-icon-btn svg {
fill: #475569
}
.hf-icon-btn:hover {
border-color: #cbd5e1;
background: #fcfcfe
}
.hf-badge {
display: inline-block;
min-width: 1.5rem;
padding: .1rem .45rem;
font-size: .75rem;
border-radius: 999px;
background: var(--hf-accent);
color: #fff;
text-align: center;
}
/* Overlay + Drawer */
.hf-drawer-overlay {
position: fixed;
inset: 0;
background: rgba(15,23,42,.35);
backdrop-filter: saturate(80%) blur(2px);
z-index: 1040;
}
.hf-drawer {
position: fixed;
top: 0;
right: 0;
height: 100%;
width: 380px;
max-width: 90vw;
background: var(--hf-bg);
box-shadow: var(--hf-shadow);
z-index: 1050;
border-left: 1px solid var(--hf-line);
display: flex;
flex-direction: column;
transform: translateX(20px);
opacity: 0;
pointer-events: none;
transition: transform .18s ease, opacity .18s ease;
}
.hf-drawer[open] {
transform: translateX(0);
opacity: 1;
pointer-events: auto;
}
.hf-drawer[hidden] {
display: block
}
/* pour pouvoir animer malgré hidden initial */
.hf-drawer-header {
position: sticky;
top: 0;
background: var(--hf-bg);
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px 18px;
border-bottom: 1px solid var(--hf-line);
}
.hf-drawer-header h3 {
margin: 0;
font-size: 1rem;
font-weight: 700;
color: var(--hf-text)
}
.hf-drawer-body {
padding: 18px;
overflow: auto;
display: grid;
gap: 18px;
}
.hf-section-title {
font-weight: 600;
color: var(--hf-text);
margin-bottom: 8px;
}
.hf-field {
display: block
}
.hf-time-row {
display: flex;
align-items: center;
gap: 8px
}
.hf-input {
border: 1px solid var(--hf-line);
border-radius: 12px;
padding: .55rem .7rem;
width: 100%;
}
.hf-sep {
color: var(--hf-muted)
}
.hf-chips {
display: flex;
gap: 8px;
flex-wrap: wrap;
margin-top: 10px
}
.hf-chip {
border: 1px solid var(--hf-line);
background: #fff;
padding: .35rem .6rem;
border-radius: 999px;
cursor: pointer;
font-size: .85rem;
}
.hf-chip:hover {
border-color: #cbd5e1;
background: #fafbff
}
.hf-chip.active {
background: var(--hf-accent-weak);
border-color: var(--hf-accent);
color: var(--hf-accent);
margin-bottom: 10px;
margin-top: 7px;
font-size: 10px;
margin-right: 5px;
border-radius: 13px;
}
.hf-drawer-footer {
margin-top: auto;
padding: 14px 18px;
display: flex;
gap: 10px;
border-top: 1px solid var(--hf-line);
}
.hf-btn {
border-radius: 12px;
padding: .65rem 1rem;
border: 1px solid var(--hf-line);
background: #fff;
cursor: pointer;
}
.hf-btn.primary {
background: var(--hf-accent);
border-color: var(--hf-accent);
color: #fff
}
.hf-btn.ghost {
background: transparent
}
/* Tooltip plus petit (tu lavais demandé) */
.tooltip-wrap {
display: grid;
gap: 6px;
max-width: 360px;
font-size: .85rem
}
.tooltip-wrap .tt-title {
font-weight: 700;
font-size: .9rem
}
.tooltip-wrap .tt-desc {
font-size: .85rem;
line-height: 1.35
}
.tooltip-wrap .tt-foot {
display: flex;
justify-content: flex-end
}
.tooltip-wrap .tt-history {
font-size: .8rem;
opacity: .9
}
/* Cartes “déjà fait” */
.card.card--done {
opacity: .55;
transition: opacity .15s ease
}
.card.card--done:hover {
opacity: .7
}
/* Select2 rafraîchi pour saligner au style */
.select2-container--default .select2-selection--multiple {
border: 1px solid var(--hf-line) !important;
border-radius: 12px !important;
padding: .25rem !important;
}
.select2-selection__choice {
border-radius: 999px !important;
padding: .15rem .6rem !important;
border: 0 !important;
background: var(--hf-accent-weak) !important;
color: var(--hf-text) !important;
}
.select2-selection__choice__remove {
margin-right: .35rem !important;
color: #64748b !important
}
.select2-container--default .select2-search--inline .select2-search__field {
margin-top: .25rem !important;
font-size: .9rem !important;
}
/* ancre du bouton pour positionner la card en absolu */
/* ancre pour positionner la card juste sous le bouton */
.filter-anchor {
position: relative;
}
.hf-filter-card {
position: absolute;
top: calc(100% + 8px);
right: 0;
z-index: 1200;
background: #fff;
border: 1px solid #e5e7eb;
border-radius: 12px;
padding: 12px;
width: 360px;
max-width: min(90vw, 420px);
box-shadow: 0 10px 30px rgba(2, 6, 23, .12);
opacity: 0;
transform: translateY(-6px);
pointer-events: none;
transition: opacity .14s ease, transform .14s ease;
}
/* masquée par défaut quand lattribut hidden est présent */
.hf-filter-card[hidden] {
display: none;
}
/* visible quand la CLASSE .open est posée */
.hf-filter-card.open {
opacity: 1;
transform: translateY(0);
pointer-events: auto;
}

View File

@@ -0,0 +1,441 @@
:root {
--hf-bg: #fff;
--hf-muted: #777;
--hf-border: #ececec;
--hf-ink: #1c1c1c;
--hf-accent: #111;
--hf-pill: #f9f9f9;
}
.hf-ingredients {
background: var(--hf-bg);
border-radius: 12px;
padding: 16px 18px;
box-shadow: 0 2px 14px rgba(0, 0, 0, .06);
font-family: system-ui, Segoe UI, Roboto, sans-serif;
max-width: 95%;
margin: auto;
}
.hf-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.hf-head h2 {
margin: 0;
font-size: 1.6rem;
font-weight: 800;
}
#titleAndSearch {
display:flex;
}
.hf-qty {
display: flex;
align-items: center;
gap: 10px;
color: #444;
font-weight: 600;
}
.hf-qty > span {
margin-right: 2px;
}
.hf-segment {
display: inline-grid;
grid-auto-flow: column;
border: 1px solid #cfcfcf;
border-radius: 8px;
overflow: hidden
}
.hf-segment button {
padding: 6px 14px;
background: var(--hf-pill);
border: 0;
border-right: 1px solid #e2e2e2;
cursor: pointer;
font-weight: 700;
min-width: 40px;
}
.hf-segment button:last-child {
border-right: 0
}
.hf-segment button.active {
background: #111;
color: #fff
}
.hf-grid {
list-style: none;
margin: 14px 0 0;
padding: 0;
display: grid;
grid-template-columns: repeat(6, minmax(0, 1fr));
gap: 12px 28px;
}
@media (max-width:640px) {
.hf-grid {
grid-template-columns: 1fr;
}
}
.hf-item {
display: flex;
align-items: flex-start;
gap: 12px;
padding: 8px 6px;
border-radius: 8px;
}
.hf-thumb {
width: 52px;
height: 52px;
border-radius: 50%;
overflow: hidden;
flex: 0 0 52px;
background: #f3f3f3;
border: 1px solid var(--hf-border);
display: grid;
place-items: center;
}
.hf-thumb img {
width: 100%;
height: 100%;
object-fit: cover
}
.hf-info {
line-height: 1.2
}
.hf-qtyline {
font-weight: 800;
font-size: .95rem;
color: var(--hf-ink);
margin-bottom: 4px;
}
.hf-name {
font-size: .95rem;
color: var(--hf-ink);
}
.hf-note {
margin-top: 6px;
font-size: .85rem;
color: var(--hf-muted);
}
.hf-sep {
border: 0;
border-top: 1px solid var(--hf-border);
margin: 18px 0 12px;
}
.hf-subtitle {
margin: 0 0 8px;
font-size: 1.15rem;
font-weight: 800;
}
.card {
border: 1px solid #eee;
}
.card {
background: white;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
overflow: hidden;
display: flex;
flex-direction: column;
transition: transform 0.2s;
width: 17rem;
height: 17rem;
position: relative;
}
.card-content > h3 {
font-size: 15px;
font-weight: 500;
padding-bottom: 0;
margin-bottom: 0;
}
.card.checked {
opacity: .3;
background: #f6f6f6;
}
.card.checked .card-content h3,
.card.checked .prep-time {
text-decoration: line-through;
color: #888;
}
.card.checked .image-container img {
filter: grayscale(1);
}
.hf-search {
margin-left: auto;
}
#hfSearch {
border: 1px solid #e3e3e3;
border-radius: 10px;
padding: 8px 12px;
min-width: 260px;
outline: none;
}
#hfSearch:focus {
border-color: #b9b9b9;
box-shadow: 0 0 0 3px rgba(0,0,0,.05);
}
.card-content {
padding: 1rem;
flex: 1;
display: flex;
justify-content: space-between;
}
.footerCard {
display: flex;
justify-content: space-between;
flex-direction: row;
align-items: flex-end !important;
}
/* Titre de la recette */
.card h3 {
margin: 0;
font-size: 0.82rem;
color: #333;
font-weight: 800;
}
/* (Optionnel) Sous-titre ou autres infos */
.card h5 {
margin-top: 1%;
font-size: 0.80rem;
}
/* Informations de recette (temps de préparation, etc.) */
.recipe-info {
font-size: 0.9rem;
font-weight: 700;
margin-bottom: 3px;
/* Le texte (temps) sera aligné à droite par le jeu de flexbox dans .footerCard */
}
.grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
gap: 1.5rem;
margin: 3%;
margin-top: 2%;
margin-bottom: 1%;
}
/* Conteneur des étiquettes (tags) de chaque recette */
.label-container {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-top: 8px;
padding: 0 10px;
position: absolute;
top: 8px;
left: 0;
}
.label-badge {
padding: 4px 10px;
border-radius: 8px;
font-size: 0.60rem;
font-weight: 600;
white-space: nowrap;
line-height: 1.5;
opacity: .9;
background-color: rgb(14 14 14);
color: rgb(255, 255, 255);
}
#recipeStrip {
display: grid;
grid-auto-flow: column; /* force en colonnes */
grid-auto-columns: 240px; /* largeur fixe de chaque card */
gap: 2.7rem;
overflow-x: auto;
scroll-snap-type: x mandatory; /* optionnel */
}
#recipeStrip .card {
scroll-snap-align: start;
}
/* Style spécifique pour les cartes ingrédients */
#ingredientsList .card {
display: flex;
align-items: center;
gap: 12px;
background: #fff;
border-radius: 12px;
box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
border: 1px solid #e5e7eb;
cursor: pointer;
transition: transform .15s ease, box-shadow .15s ease;
flex-direction: row;
flex-wrap: nowrap;
height: fit-content;
}
#ingredientsList .card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 10px rgba(0,0,0,.15);
}
/* Image à gauche */
#ingredientsList .image-container {
flex: 0 0 56px; /* Taille fixe */
height: 56px;
border-radius: 10px;
overflow: hidden;
display: grid;
place-items: center;
}
#ingredientsList .image-container img {
width: 100%;
height: 100%;
object-fit: cover; /* Image couvre bien son bloc */
}
/* Texte à droite */
#ingredientsList .card-content {
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
}
#ingredientsList .card-content h3 {
font-size: .8rem;
font-weight: 600;
margin: 0;
color: #1f2937; /* Texte sombre sur fond blanc */
}
/* Quantité en petit badge */
#ingredientsList .footerCard {
margin-top: 4px;
display: flex;
align-items: center;
gap: 10px;
}
#ingredientsList .prep-time {
background: #f3f4f6;
border-radius: 6px;
padding: 2px 8px;
font-size: 0.85rem;
font-weight: 500;
color: #374151;
}
#ingredientsList .card-content {
padding: 0 1rem 0 0;
}
/* Style spécifique pour les cartes ingrédients */
#neededIngredients .card {
display: flex;
align-items: center;
gap: 12px;
background: #fff;
border-radius: 12px;
box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
border: 1px solid #e5e7eb;
cursor: pointer;
transition: transform .15s ease, box-shadow .15s ease;
flex-direction: row;
flex-wrap: nowrap;
height: fit-content;
}
#neededIngredients .card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 10px rgba(0,0,0,.15);
}
/* Image à gauche */
#neededIngredients .image-container {
flex: 0 0 56px; /* Taille fixe */
height: 56px;
border-radius: 10px;
overflow: hidden;
display: grid;
place-items: center;
}
#neededIngredients .image-container img {
width: 100%;
height: 100%;
object-fit: cover; /* Image couvre bien son bloc */
}
/* Texte à droite */
#neededIngredients .card-content {
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
}
#neededIngredients .card-content h3 {
font-size: .8rem;
font-weight: 600;
margin: 0;
color: #1f2937; /* Texte sombre sur fond blanc */
}
/* Quantité en petit badge */
#neededIngredients .footerCard {
margin-top: 4px;
display: flex;
align-items: center;
gap: 10px;
flex-direction: row-reverse;
}
#neededIngredients .prep-time {
background: #f3f4f6;
border-radius: 6px;
padding: 2px 8px;
font-size: 0.85rem;
font-weight: 500;
color: #374151;
}
#neededIngredients .card-content {
padding: 0 1rem 0 0;
}

65
wwwroot/css/home.css Normal file
View File

@@ -0,0 +1,65 @@
div#containerCard {
display: flex;
padding: 2%;
gap: 2rem;
}
.cardHome {
width: 240px;
height: 240px;
background: white;
border-radius: 20px;
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
overflow: hidden;
transition: transform 0.4s ease, box-shadow 0.4s ease;
transform-style: preserve-3d;
perspective: 1000px;
cursor: pointer;
}
.cardHome:hover {
transform: rotateY(5deg) scale(1.05);
box-shadow: 0 25px 40px rgba(0, 0, 0, 0.2);
}
.cardHome img {
width: 100%;
height: 60%;
object-fit: cover;
}
.cardHome .content {
padding: 20px;
}
.cardHome .content h2 {
margin: 0 0 10px;
font-size: 1.5em;
color: #333;
}
.cardHome .content p {
color: #666;
font-size: 1em;
}
.icon {
margin-right: 10px;
}
.arrow {
float: right;
transition: transform 0.3s ease;
}
.dropdown.active .arrow {
transform: rotate(90deg);
}
#page-top {
overflow: clip!important;
}
#sidebarUl {
color:black
}

View File

@@ -1,10 +0,0 @@
.sommeCard {
}
.card-title {
}
.divAffichageCarte {
display: flex;
}

View File

@@ -66,7 +66,7 @@ body {
line-height: 1.5;
color: #858796;
text-align: left;
background-color: #fff;
background-color: #f4f4f4;
}
[tabindex="-1"]:focus:not(:focus-visible) {
@@ -2440,6 +2440,9 @@ textarea.form-control {
display: flex;
flex-flow: row wrap;
align-items: center;
align-items: stretch;
gap: 10px;
justify-content: center;
}
.form-inline .form-check {
@@ -2474,7 +2477,7 @@ textarea.form-control {
.form-inline .input-group,
.form-inline .custom-select {
width: auto;
width: 26%;
}
.form-inline .form-check {
@@ -4711,17 +4714,6 @@ input[type="button"].btn-block {
color: #fff;
}
.card {
position: relative;
display: flex;
flex-direction: column;
min-width: 0;
word-wrap: break-word;
background-color: #fff;
background-clip: border-box;
border: 1px solid #e3e6f0;
border-radius: 0.35rem;
}
.card > hr {
margin-right: 0;
@@ -4753,7 +4745,7 @@ input[type="button"].btn-block {
.card-body {
flex: 1 1 auto;
min-height: 1px;
padding: 1.25rem;
padding: .7rem;
}
.card-title {
@@ -6046,6 +6038,7 @@ a.close.disabled {
.modal-body {
position: relative;
flex: 1 1 auto;
color: black;
padding: 1rem;
}
@@ -8204,7 +8197,7 @@ button.bg-dark:focus {
.mb-4,
.my-4 {
margin-bottom: 1.5rem !important;
margin-bottom: 0!important;
}
.ml-4,
@@ -10562,8 +10555,11 @@ a.text-dark:hover, a.text-dark:focus {
size: a3;
}
body {
min-width: 992px !important;
overflow: clip;
}
.container {
@@ -10615,6 +10611,7 @@ html {
}
body {
overflow: hidden;
height: 100%;
}
@@ -10735,7 +10732,7 @@ a:focus {
.bg-gradient-primary {
background-color: #4e73df;
background-image: linear-gradient(180deg, #4e73df 10%, #224abe 100%);
background-image: url(../images/bg.png);
background-size: cover;
}
@@ -10851,6 +10848,7 @@ a:focus {
.text-gray-600 {
color: #858796 !important;
font-size:15px
}
.text-gray-700 {
@@ -10992,7 +10990,7 @@ a:focus {
transform: scale(0.7);
transform-origin: top right;
right: .25rem;
margin-top: -.25rem;
margin-top: -.5rem;
}
.sidebar .nav-item .nav-link .img-profile,
@@ -11145,7 +11143,8 @@ a:focus {
}
.topbar.navbar-light .navbar-nav .nav-item .nav-link {
color: #d1d3e2;
color: #494a4e;
font-weight: 600;
}
.topbar.navbar-light .navbar-nav .nav-item .nav-link:hover {
@@ -11158,7 +11157,7 @@ a:focus {
.sidebar {
width: 6.5rem;
min-height: 100vh;
min-height: 81vh;
}
.sidebar .nav-item {
@@ -11346,7 +11345,8 @@ a:focus {
@media (min-width: 768px) {
.sidebar {
width: 14rem !important;
width: 8rem !important;
box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}
.sidebar .nav-item .collapse {
@@ -11723,9 +11723,10 @@ a:focus {
}
.bg-login-image {
background: url("https://source.unsplash.com/K4mSJ7kc0As/600x800");
background-image: url(../images/Logo.PNG);
background-position: center;
background-size: cover;
background-size: contain;
background-repeat: no-repeat;
}
.bg-register-image {
@@ -12230,3 +12231,144 @@ body.sidebar-toggled footer.sticky-footer {
transform: rotate(180deg);
}
/* Design personnalis<69> pour le tableau DataTables */
#CRUDModal thead th {
font-size: 12px;
background-color: #f8f9fa;
color: #495057;
font-weight: normal;
text-align: center !important;
}
#CRUDModal tbody td {
font-size: 15px;
text-align: center !important;
vertical-align: middle !important;
}
/* Wrapper du contenu apr<70>s la topbar */
.main-wrapper {
display: flex;
flex: 1;
height: calc(100vh - 60px);
}
.sidebar {
width: 250px;
background-color: #fafafa;
transition: 0.3s ease;
height: 84%;
padding: .9%;
display: flex;
flex-direction: column;
flex-wrap: nowrap;
margin-top: 3%;
}
.sidebar ul {
list-style: none;
margin-left: 0;
padding-left: 0;
font-size: 13px;
}
.sidebar li {
padding: 0px 20px;
cursor: pointer;
}
.sidebar li:hover {
background-color: #f0f0f0;
}
.sidebar .dropdown ul {
display: none;
background-color: #2a2a3a;
}
.sidebar .dropdown.active ul {
display: block;
}
.sidebar .dropdown ul li {
padding-left: 40px;
}
.arrow {
float: right;
transition: transform 0.3s ease;
}
.dropdown.active .arrow {
transform: rotate(90deg);
}
.content {
flex: 1;
padding: 20px;
overflow-y: auto;
background-color: #f4f4f4;
}
img.logoSidebar {
display: inline-block;
width: 100%;
text-align: center;
font-size: 18px;
line-height: 20px;
cursor: pointer;
transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.logoSidebar:hover {
transform: rotateY(5deg) scale(1.05);
}
h2.titleSidebar {
font-size: 1rem;
font-weight: 700;
}
/* Vid<69>o plein <20>cran */
#bg-video {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover; /* S'adapte <20> l'<27>cran */
z-index: -1; /* Derri<72>re le contenu */
}
/* Centrage du formulaire */
.login-container {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
/* Fond semi-transparent derri<72>re le formulaire */
.login-card {
background: rgba(255, 255, 255, 0.85);
border-radius: 10px;
padding: 2rem;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
/* Vid<69>o plein <20>cran */
#bg-video {
position: fixed;
top: 0;
left: 0;
min-width: 100%;
min-height: 100%;
object-fit: cover;
z-index: -1;
}
.card img {
width: 100%;
height: 180px;
object-fit: cover;
}