* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 90px;
}

.head {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    padding: 0 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.head:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.head a {
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease;
}

.head a:hover {
    transform: scale(1.1);
}

.head img {
    height: 55px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.head img:hover {
    transform: rotate(5deg) scale(1.05);
}

.head h1 {
    color: white;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    flex-grow: 1;
    text-align: center;
    margin: 0 20px;
}

.icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.icons a {
    color: white;
    font-size: 24px;
    padding: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.icons a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.icons i {
    transition: transform 0.3s ease;
}

.icons a:hover i {
    transform: scale(1.15);
}

/* Animation au chargement */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.head {
    animation: slideDown 0.5s ease-out;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Section Suivi d'objectif */
.objectif-section {
    margin-bottom: 40px;
}

.objectif-section h2 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 25px;
    text-align: center;
}

.objectif-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.objectif-item {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.objectif-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.objectif-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    flex-shrink: 0;
}

.objectif-info {
    flex: 1;
}

.objectif-info h3 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 10px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2ecc71, #27ae60);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.objectif-info p {
    color: #7f8c8d;
    font-size: 14px;
    margin: 0;
}

.objectif-info .current {
    color: #27ae60;
    font-weight: bold;
}

.objectif-info .target {
    color: #2c3e50;
    font-weight: 600;
}

.eau-controls {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-eau {
    flex: 1;
    padding: 8px 12px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-eau:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.btn-eau:active {
    transform: translateY(0);
}

.btn-eau i {
    font-size: 10px;
}

/* Section Repas */
.repas-section {
    margin-bottom: 40px;
}

.repas-section h2 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 25px;
    text-align: center;
}

.repas-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.repas-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.repas-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.repas-header {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.repas-header i {
    font-size: 24px;
}

.repas-header h3 {
    font-size: 20px;
    margin: 0;
}

.repas-content {
    padding: 20px;
    flex-grow: 1;
}

.repas-time {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 15px;
}

.repas-calories {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 15px;
    color: #2c3e50;
}

.repas-calories strong {
    font-size: 24px;
    color: #27ae60;
}

.repas-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.repas-list li {
    padding: 8px 0;
    color: #2c3e50;
    border-bottom: 1px solid #ecf0f1;
    font-size: 14px;
}

.repas-list li:last-child {
    border-bottom: none;
}

.repas-list li:before {
    content: "🥗";
    margin-right: 8px;
}

.btn-delete-aliment {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.repas-list li:hover .btn-delete-aliment {
    opacity: 1;
}

.btn-delete-aliment:hover {
    color: #c0392b !important;
    transform: scale(1.2);
}

.btn-add {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    border-radius: 0 0 15px 15px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-add:hover {
    background: linear-gradient(135deg, #27ae60, #229954);
    transform: scale(1.02);
}

.btn-add i {
    font-size: 14px;
}

/* Section Motivation */
.motivation-section {
    margin-bottom: 40px;
}

.motivation-container {
    background: linear-gradient(135deg, #fff9e6 0%, #ffe8cc 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.motivation-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.motivation-mascotte {
    flex-shrink: 0;
}

.motivation-mascotte img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.motivation-content {
    flex: 1;
}

.motivation-content h3 {
    color: #2c3e50;
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 700;
}

.motivation-phrase {
    color: #34495e;
    font-size: 18px;
    line-height: 1.6;
    font-style: italic;
    margin: 0;
    font-weight: 500;
}

/* Section Contact */
.contact-section {
    margin-bottom: 40px;
}

.contact-section h2 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Informations de contact */
.contact-info {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border-radius: 15px;
    padding: 30px;
    color: white;
}

.contact-info h3 {
    font-size: 22px;
    margin-bottom: 25px;
    font-weight: 700;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-item i {
    font-size: 24px;
    margin-top: 5px;
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 5px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.info-item a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.info-item a:hover {
    opacity: 0.8;
}

.info-item p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

/* Formulaire de contact */
.contact-form-container {
    padding: 10px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #2c3e50;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: #27ae60;
    font-size: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #27ae60;
    background: white;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    cursor: pointer;
}

.btn-submit {
    padding: 15px 30px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #27ae60, #229954);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit i {
    font-size: 16px;
}

/* Section Calendrier */
.calendrier-section {
    margin-bottom: 40px;
}

.calendrier-section h2 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
}

.calendrier-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.calendrier-navigation h3 {
    color: #2c3e50;
    font-size: 22px;
    margin: 0;
}

.btn-nav {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.btn-nav:hover {
    background: linear-gradient(135deg, #27ae60, #229954);
    transform: scale(1.1);
}

.calendrier-container {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.calendrier-jours-semaine {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.jour-semaine {
    text-align: center;
    font-weight: 700;
    color: #27ae60;
    padding: 10px;
    font-size: 14px;
}

.calendrier-grille {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.calendrier-jour {
    aspect-ratio: 1;
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: #f8f9fa;
}

.calendrier-jour:hover {
    border-color: #27ae60;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.calendrier-jour.autre-mois {
    opacity: 0.3;
    pointer-events: none;
}

.calendrier-jour.aujourd-hui {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border-color: #27ae60;
}

.calendrier-jour.aujourd-hui .jour-numero {
    color: white;
    font-weight: 700;
}

.calendrier-jour.selectionne {
    border-color: #3498db;
    background: #ebf5fb;
}

.calendrier-jour.avec-donnees::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #27ae60;
    border-radius: 50%;
}

.jour-numero {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.jour-calories {
    font-size: 11px;
    color: #7f8c8d;
    text-align: center;
}

/* Résumé du jour */
.jour-resume {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.jour-resume h3 {
    color: #2c3e50;
    font-size: 20px;
    margin-bottom: 25px;
    text-align: center;
}

.jour-resume h3 span {
    color: #27ae60;
    font-weight: 700;
}

.resume-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.resume-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #27ae60;
}

.stat-item i {
    font-size: 28px;
    color: #27ae60;
}

.stat-item h4 {
    margin: 0 0 5px 0;
    color: #7f8c8d;
    font-size: 12px;
    text-transform: uppercase;
}

.stat-item p {
    margin: 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 700;
}

.resume-repas h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 16px;
}

.repas-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    min-height: 200px;
}

.repas-details .no-data {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    margin: 60px 0;
}

.repas-detail-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #27ae60;
}

.repas-detail-item h5 {
    color: #2c3e50;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.repas-detail-item h5 i {
    color: #27ae60;
}

.repas-detail-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.repas-detail-item li {
    padding: 5px 0;
    color: #34495e;
    font-size: 14px;
}

/* Page Compte */
.compte-section,
.objectifs-section,
.historique-section,
.parametres-section {
    margin-bottom: 40px;
}

.compte-section h2,
.objectifs-section h2,
.historique-section h2,
.parametres-section h2 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 25px;
    text-align: center;
}

.compte-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

/* Carte Profil */
.profil-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.profil-avatar {
    margin-bottom: 20px;
}

.profil-avatar i {
    font-size: 100px;
    color: #27ae60;
}

.profil-info h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 22px;
}

.profil-info p {
    color: #7f8c8d;
    margin-bottom: 20px;
}

.profil-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.btn-edit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-logout {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

/* Statistiques globales */
.stats-globales {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stats-globales h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 18px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 4px solid #27ae60;
}

.stat-card i {
    font-size: 32px;
    color: #27ae60;
}

.stat-card h4 {
    color: #7f8c8d;
    font-size: 12px;
    text-transform: uppercase;
    margin: 0 0 5px 0;
}

.stat-value {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

/* Objectifs personnalisés */
.objectifs-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.objectif-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.objectif-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.objectif-header i {
    font-size: 28px;
    color: #27ae60;
}

.objectif-header h3 {
    color: #2c3e50;
    font-size: 16px;
    margin: 0;
}

.objectif-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.objectif-input input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
}

.objectif-input input:focus {
    outline: none;
    border-color: #27ae60;
}

.objectif-input span {
    color: #7f8c8d;
    font-weight: 600;
}

.btn-save {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-save:hover {
    background: linear-gradient(135deg, #27ae60, #229954);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

/* Historique */
.historique-container {
    display: grid;
    gap: 15px;
}

.historique-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.historique-date {
    display: flex;
    align-items: center;
    gap: 15px;
}

.historique-date i {
    font-size: 24px;
    color: #27ae60;
}

.historique-date div h4 {
    color: #2c3e50;
    margin: 0 0 5px 0;
}

.historique-date div p {
    color: #7f8c8d;
    margin: 0;
    font-size: 14px;
}

.historique-stats {
    display: flex;
    gap: 30px;
}

.historique-stat {
    text-align: center;
}

.historique-stat span {
    display: block;
    color: #7f8c8d;
    font-size: 12px;
    margin-bottom: 5px;
}

.historique-stat strong {
    color: #2c3e50;
    font-size: 18px;
}

/* Paramètres */
.parametres-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.parametre-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #ecf0f1;
}

.parametre-item:last-child {
    border-bottom: none;
}

.parametre-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.parametre-info i {
    font-size: 28px;
    color: #27ae60;
}

.parametre-info h4 {
    color: #2c3e50;
    margin: 0 0 5px 0;
}

.parametre-info p {
    color: #7f8c8d;
    margin: 0;
    font-size: 14px;
}

/* Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2ecc71;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Boutons d'action */
.btn-action {
    padding: 10px 20px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-action:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .objectif-container,
    .repas-container {
        grid-template-columns: 1fr;
    }
    
    .head {
        padding: 0 15px;
    }
    
    .head h1 {
        font-size: 20px;
    }
    
    .motivation-container {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }
    
    .motivation-mascotte img {
        width: 100px;
        height: 100px;
    }
    
    .motivation-phrase {
        font-size: 16px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 25px 20px;
    }
    
    .contact-info {
        padding: 25px 20px;
    }
    
    .resume-content {
        grid-template-columns: 1fr;
    }
    
    .calendrier-grille {
        gap: 5px;
    }
    
    .calendrier-jour {
        padding: 5px;
    }
    
    .jour-numero {
        font-size: 14px;
    }
    
    .jour-calories {
        font-size: 9px;
    }
    
    .compte-container {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .objectifs-container {
        grid-template-columns: 1fr;
    }
    
    .historique-stats {
        flex-direction: column;
        gap: 10px;
    }
}

/* Modale de recherche de produits */
.modal-recherche {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-recherche.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-recherche-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modal-recherche-header {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px 20px 0 0;
}

.modal-recherche-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.btn-close-modal {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-recherche-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.search-box input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #2ecc71;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

.btn-search {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.btn-search:active {
    transform: translateY(0);
}

.btn-barcode {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-barcode:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-barcode:active {
    transform: translateY(0);
}

/* Scanner de codes-barres */
.barcode-scanner {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.scanner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.scanner-header h3 {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.scanner-header h3 i {
    color: #3498db;
}

.btn-stop-scanner {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-stop-scanner:hover {
    background: #c0392b;
    transform: scale(1.05);
}

.scanner-video {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.scanner-info {
    text-align: center;
    color: #7f8c8d;
    font-size: 14px;
    margin-top: 15px;
    font-style: italic;
}

.loading-spinner {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

.loading-spinner i {
    font-size: 48px;
    color: #2ecc71;
    margin-bottom: 15px;
}

.loading-spinner p {
    font-size: 16px;
    margin-top: 10px;
}

.search-results {
    display: grid;
    gap: 15px;
}

.product-card {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    border-color: #2ecc71;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.product-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    padding: 5px;
}

.product-info {
    flex: 1;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.product-brand {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.product-nutrition {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.nutrition-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #555;
}

.nutrition-item i {
    color: #2ecc71;
}

.btn-add-product {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-add-product:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(46, 204, 113, 0.3);
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

.no-results i {
    font-size: 64px;
    color: #e0e0e0;
    margin-bottom: 15px;
}

.no-results p {
    font-size: 16px;
    margin-top: 10px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive pour la modale */
@media (max-width: 768px) {
    .modal-recherche-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-recherche-header {
        padding: 20px;
    }
    
    .modal-recherche-header h2 {
        font-size: 20px;
    }
    
    .modal-recherche-body {
        padding: 20px;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .btn-search,
    .btn-barcode {
        width: 100%;
        justify-content: center;
    }
    
    .product-card {
        flex-direction: column;
        text-align: center;
    }
    
    .product-image {
        width: 100px;
        height: 100px;
    }
    
    .product-nutrition {
        justify-content: center;
    }
}

/* ============================================
   STYLES POUR LA PAGE FRIGO - DESIGN MODERNE
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* En-tête de page moderne */
.page-header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInUp 0.6s ease;
}

.page-header h2 {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.page-header h2 i {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 40px;
}

.page-header .subtitle {
    font-size: 18px;
    color: #666;
    font-weight: 400;
    letter-spacing: 0.5px;
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.2s forwards;
}

.tabs-container {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 8px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    animation: fadeInUp 0.6s ease;
}

.tab-btn {
    flex: 1;
    padding: 18px 35px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(10px);
}

.tab-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.tab-btn.active {
    color: #667eea;
    background: white;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transform: scale(1.02);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Section Frigo */
.frigo-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.add-ingredient-form {
    background: white;
    padding: 35px;
    padding-bottom: 40px;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.12);
    border: none;
    position: relative;
    overflow: visible;
    animation: fadeInUp 0.6s ease 0.2s both;
    margin-bottom: 30px;
    z-index: 100;
}

.add-ingredient-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #4CAF50, #45a049, #4CAF50);
    background-size: 200% 100%;
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.add-ingredient-form h3 {
    color: #4CAF50;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
}

.add-ingredient-form h3 i {
    font-size: 24px;
}

.form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.search-container {
    position: relative;
    flex: 1;
    min-width: 200px;
    z-index: 10000;
}

.input-field {
    flex: 1;
    min-width: 150px;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    width: 100%;
    background: white;
}

.input-field:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
    transform: translateY(-1px);
}

/* Suggestions de recherche */
.search-suggestions {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    max-height: 350px;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    display: none;
}

.suggestion-loading {
    padding: 15px;
    text-align: center;
    color: #666;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #f8f9fa;
}

.suggestion-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.no-image {
    width: 50px;
    height: 50px;
    background: #f0f0f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 20px;
    flex-shrink: 0;
}

.suggestion-info {
    flex: 1;
    min-width: 0;
}

.suggestion-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-calories {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}

.suggestion-calories i {
    color: #ff6b6b;
}

.suggestion-item.no-results,
.suggestion-item.error {
    justify-content: center;
    color: #666;
    cursor: default;
}

.suggestion-item.no-results:hover,
.suggestion-item.error:hover {
    background: white;
}

/* Liste des ingrédients */
.ingredients-list {
    background: white;
    padding: 35px;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.12);
    animation: fadeInUp 0.6s ease 0.4s both;
}

.ingredients-list h3 {
    color: #1a1a1a;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 24px;
    font-weight: 800;
    padding-bottom: 15px;
    border-bottom: 3px solid #f0f0f0;
}

.ingredients-list h3 i {
    color: #4CAF50;
    font-size: 28px;
    background: rgba(76, 175, 80, 0.1);
    padding: 12px;
    border-radius: 12px;
}

.ingredients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.ingredient-card {
    background: white;
    padding: 22px;
    border-radius: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.ingredient-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #4CAF50, #45a049);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.ingredient-card:hover::before {
    transform: scaleY(1);
}

.ingredient-card:hover {
    transform: translateX(8px);
    box-shadow: 0 12px 35px rgba(76, 175, 80, 0.2);
    border-color: #4CAF50;
}

.ingredient-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.ingredient-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.ingredient-info i {
    font-size: 24px;
    color: #4CAF50;
}

.ingredient-name {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 17px;
    line-height: 1.3;
}

.ingredient-quantity {
    font-size: 15px;
    color: #555;
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.ingredient-quantity i {
    color: #4CAF50;
}

.ingredient-nutrition {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.ingredient-nutrition span {
    font-size: 12px;
    color: #666;
    background: white;
    padding: 3px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-delete {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    padding: 14px 20px;
    font-weight: 600;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    padding: 14px 24px;
    font-weight: 600;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

/* Zone de scan */
.scanner-zone {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    text-align: center;
}

.scanner-zone h3 {
    color: #3498db;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Section Recettes */
.recettes-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.recettes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 25px 30px;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    border: 2px solid rgba(102, 126, 234, 0.1);
}

.recettes-header h3 {
    color: #333;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
}

.recettes-header h3 i {
    color: #667eea;
    font-size: 24px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.recette-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.recette-actions button {
    flex: 1;
    min-width: 200px;
}

.recettes-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recette-card {
    background: white;
    padding: 32px;
    border-radius: 22px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.recette-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.recette-card:hover::before {
    transform: scaleX(1);
}

.recette-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.25);
    border-color: #667eea;
}

.recette-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.recette-header h3 {
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.recette-info {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.recette-info span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.recette-info i {
    color: #4CAF50;
}

.recette-ingredients {
    margin-bottom: 20px;
}

.recette-ingredients h4 {
    color: #333;
    margin-bottom: 12px;
}

.recette-ingredients ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.recette-ingredients li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 6px;
    font-size: 14px;
}

.recette-ingredients li.disponible {
    background: #d4edda;
    color: #155724;
}

.recette-ingredients li.manquant {
    background: #f8d7da;
    color: #721c24;
}

.ingredients-manquants {
    margin-top: 15px;
    padding: 12px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 6px;
    color: #856404;
    font-size: 14px;
}

.recette-instructions {
    margin-bottom: 20px;
}

.recette-instructions h4 {
    color: #333;
    margin-bottom: 12px;
}

.recette-instructions ol {
    padding-left: 20px;
}

.recette-instructions li {
    margin-bottom: 10px;
    color: #555;
    line-height: 1.6;
}

.info-box {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #2196F3;
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-box i {
    font-size: 24px;
    color: #2196F3;
}

.info-box.warning {
    background: #fff3cd;
    border-left-color: #ffc107;
}

.info-box.warning i {
    color: #ffc107;
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: bottom 0.3s ease;
    z-index: 10000;
}

.toast.show {
    bottom: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .tabs-container {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
        text-align: center;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .input-field {
        width: 100%;
    }
    
    .ingredients-grid {
        grid-template-columns: 1fr;
    }
    
    .recettes-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .recettes-header button {
        width: 100%;
    }
    
    .recette-ingredients ul {
        grid-template-columns: 1fr;
    }
}