/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;700&display=swap');
@font-face {
    font-family: 'Agency FB';
    src: url('https://fonts.cdnfonts.com/s/22642/Agency-FB-Regular.woff') format('woff');
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #fdfaf6;
    color: #333;
}

.icon {
    background: #fff;
    padding: 4px;
    border-radius: 50%;
    color: #F39200;
    margin-right: 5px;
}
.print-icon{
	position: absolute;
	background-color: rgba(255, 255, 255, 0.8);
	z-index:2;
	top: 10px;
	right: 10px;
	padding: 5px;
	border-radius: 5px;
	
}

/* Logo Section */
.logo-section {
    position: relative;
    height: 188px; /* Adjust according to the new SVG height */
    overflow: hidden;
    background-color: #FDFAF6;
}

.logo-section img {
    position: absolute;
    top: 30px; /* Adjust to position your logo appropriately */
    left: 50%;
    transform: translateX(-50%);
    width: 360px; /* Adjust as needed */
    z-index: 2;
}

.header-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}


.header-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 1;
}

.container {
    margin-top: 100px;
}
h1 {
    color: #63813A;
    font-family: 'Agency FB', sans-serif;
    text-transform: uppercase;
    font-size: 42px;
    font-weight: bold;
}

.week-selector {
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.week-selector select {
    padding: 6px;
    font-size: 16px;
    border-radius: 8px;
    border: 2px solid #63813A;
    color: #333;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .week-selector {
        padding: 0 10px;
    }

    .week-selector label,
    .week-selector select {
        display: block;
        width: 100%;
        text-align: center;
        margin: 0 auto;
    }

    .week-selector select {
        margin-top: 10px;
    }

    .week-selector label {
        font-size: 16px;
    }
}

/* Conteneur Principal */
.container {
    margin-top: 220px;
}

/* Cartes */
.card-deck {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    margin-left: -15px;
    margin-right: -15px;
    margin-top: 0;
}

.card {
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #ccc;
    border-radius: 10px;
    overflow: hidden;
    background-color: #ffffff;
    margin: 10px;
    flex: 1 0 18%;
    max-width: 18%;
}

.card-header {
    position: relative;
    z-index: 1;
    border-bottom: none;
    padding: 10px;
    background-color: #63813A;
    color: #fff;
    text-align: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.card-header h5 {
    font-size: 20px;
    font-weight: bold;
}

.card-body {
    padding: 10px;
    text-align: center;
    flex: 1 1 auto;
}

.menu-section {
    margin-bottom: 8px;
}

.menu-section p {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}

.menu-section hr {
    margin: 8px 0;
    border-top: 1px solid #ccc;
}
.highlight {
    border: 3px solid #F39200;
    transform: scale(1.05);
}

/* Taille des images des labels */
.label-image {
    width: 30px;
    height: auto;
    margin-left: 5px;
    vertical-align: middle;
}

/* Section QR Code */
.qr-code {
    background-color: #98AF41;
    border-top: 5px solid #F7931D;
    padding: 10px;
    margin-top: 10px;
	display: flex;
}

.qr-code .scan-img {
    max-width: 100px;
    width: 100%;
    height: auto;
    background-color: #fff;
    padding: 10px;
    border-radius: 10px;
}
.qr-code .deco{
	display: flex;
	justify-content: flex-end;
	align-items: center;
	width: 100px;
	height: auto;
}
.qr-code p {
    color: #fff;
    font-size: 16px;
    margin: 5px;
}
.code-bloc{
	display: flex;
	align-items: center;
}

/* Positionnement de l'image décorative */

.decoration-img {
    position: relative;
	text-align: right;
    max-width: 90px;
    width: 90px;
    height: 90px;
}

.note {
    font-size: 14px;
}

/* Ajustements pour les petits écrans */
@media (max-width: 768px) {
    .card-deck {
        display: block;
        margin-left: 0;
        margin-right: 0;
    }

    .card {
        flex: 1 0 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 20px;
    }
}

/* Styles pour l'impression */
@media print {
    @page {
        size: A4 landscape;
        margin: 5mm;
    }
    body {
        margin: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .container {
        flex: 1;
    }
    .print-icon,
    .week-selector,
    .footer {
        display: none;
    }
    .card-deck {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: stretch;
        margin-top: 0;
        margin-bottom: 0;
    }
    .card {
        page-break-inside: avoid;
        box-shadow: none;
        margin: 4px;
        flex: 1 0 18%;
        max-width: 18%;
        border: 1px solid #ccc !important;
    }
    .card-header {
        background-color: #63813A !important;
        color: #fff !important;
        padding: 6px;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }
    .card-header h5 {
        font-size: 18px;
        font-weight: bold;
    }
    .card-body {
        padding: 6px;
        flex: 1 1 auto;
    }
    .menu-section p {
        font-size: 14px;
        font-weight: bold;
    }
    .menu-section hr {
        margin: 6px 0;
        border-top: 1px solid #ccc;
    }
    /* Taille des images des labels en impression */
    .label-image {
        width: 30px;
        height: auto;
    }
    /* Taille du QR Code en impression */
    .qr-code img {
        max-width: 100px;
    }
    /* Taille de l'image décorative en impression */
    .decorative-image img {
        max-width: 60px;
    }
    .note {
        font-size: 12px;
    }
    .highlight {
        border: none;
        transform: none;
    }
}
