/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2ecc71;
}

.logo-img {
    width: 40px;
    height: 40px;
    margin-right: 0.5rem;
    border-radius: 8px;
    object-fit: cover;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #2ecc71;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Section Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding-top: 80px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: #2ecc71;
    color: white;
}

.btn-primary:hover {
    background: #27ae60;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

/* Mockup de l'application */
.app-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-frame {
    width: 280px;
    height: 560px;
    background: #1a1a1a;
    border-radius: 30px;
    padding: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    max-height: 80vh;
}

.screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 25px;
    padding: 0;
    color: #333;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    background: white;
    font-size: 0.8rem;
    font-weight: 500;
    flex-shrink: 0;
}

.status-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #2ecc71;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    background: white;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 600;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.app-logo {
    width: 24px;
    height: 24px;
    margin-right: 0.5rem;
    border-radius: 4px;
    object-fit: cover;
}

.app-content {
    flex: 1;
    padding: 20px;
    background: #f8f9fa;
    overflow-y: auto;
    min-height: 0;
}

.points-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.points-header span {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
}

.config-icons {
    display: flex;
    gap: 8px;
}

.config-icon, .bonus-icon {
    font-size: 1rem;
}

.points-display {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.points-consumed, .points-objective {
    text-align: center;
    flex: 1;
}

.points-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.points-consumed .points-number {
    color: #333;
}

.points-objective .points-number {
    color: #3498db;
}

.points-label {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
}

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

.progress-fill {
    height: 100%;
    background: #3498db;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.points-remaining {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.remaining-number {
    color: #2ecc71;
    font-weight: 600;
}

.meals-section {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.meals-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.date {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.meal-icons {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.meal-icon {
    width: 40px;
    height: 40px;
    border: 2px solid #3498db;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: white;
}

.no-meals {
    text-align: center;
    padding: 30px 0;
}

.no-meals-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-meals span {
    display: block;
    color: #666;
}

.no-meals-text {
    font-size: 0.8rem;
    margin-top: 5px;
    opacity: 0.7;
}

.add-meal-btn {
    width: 100%;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 15px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.add-meal-btn:hover {
    background: #2980b9;
}

/* Section Ajout de Repas - Style Cartes avec Boîte */
.add-meal {
    background: white;
    padding: 5rem 0;
}

.add-meal .container {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e1e1;
}

.add-meal h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #333;
    text-align: center;
    line-height: 1.2;
    padding: 0 10px;
    box-sizing: border-box;
}

.meal-features-simple {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.meal-features-simple .feature-item {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #e1e1e1;
}

.meal-features-simple .feature-item:hover {
    transform: translateY(-5px);
}

.meal-features-simple .feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.meal-features-simple .feature-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.meal-features-simple .feature-content p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

/* Sections générales */
section {
    padding: 5rem 0;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #333;
}

/* Section Fonctionnalités */
.features {
    background: #f8f9fa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    color: #2ecc71;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Section Comment ça marche */
.how-it-works {
    background: white;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: #2ecc71;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.step p {
    color: #666;
    line-height: 1.6;
}

/* Section Avantages */
.benefits {
    background: #f8f9fa;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.benefit-item p {
    color: #666;
    line-height: 1.6;
}

/* Section Contact - Formulaire */
.contact {
    background: white;
    padding: 5rem 0;
}

.contact h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #333;
    text-align: center;
    line-height: 1.2;
    font-family: 'Inter', sans-serif;
}

.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e1e1;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
    box-sizing: border-box;
}

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

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
    margin-bottom: 1.5rem;
}

.submit-btn {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    float: right;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(46, 204, 113, 0.3);
}

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

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-success {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    border: 2px solid #2ecc71;
}

.form-success i {
    font-size: 3rem;
    color: #2ecc71;
    margin-bottom: 1rem;
}

.form-success h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.form-success p {
    color: #666;
    margin: 0;
}

.form-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin-top: 1rem;
}

.form-success i {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.form-success h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #155724;
}

.form-success p {
    color: #155724;
    margin: 0;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 1rem 1.5rem;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid #2ecc71;
}

.notification-error {
    border-left: 4px solid #e74c3c;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notification-content i {
    font-size: 1.2rem;
}

.notification-success .notification-content i {
    color: #2ecc71;
}

.notification-error .notification-content i {
    color: #e74c3c;
}

.notification-content span {
    color: #333;
    font-weight: 500;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    line-height: 1.6;
    text-decoration: none;
}

.footer-section a:hover {
    color: #2ecc71;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: #2ecc71;
    margin-bottom: 1rem;
}

.footer-logo-img {
    width: 32px;
    height: 32px;
    margin-right: 0.5rem;
    border-radius: 6px;
    object-fit: cover;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #ccc;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .logo-img {
        width: 32px;
        height: 32px;
    }

    .app-logo {
        width: 20px;
        height: 20px;
    }

    .footer-logo-img {
        width: 28px;
        height: 28px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .phone-frame {
        width: 220px;
        height: 440px;
        max-width: 90vw;
        max-height: 60vh;
    }

    .contact h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .contact-form-container {
        padding: 0 1rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .submit-btn {
        float: none;
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }

    section h2 {
        font-size: 2rem;
    }

    .add-meal h2 {
        font-size: 1.8rem;
        padding: 0 15px;
    }

    .features-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    /* Responsive pour la section simplifiée */
    .add-meal .container {
        padding: 2rem;
        margin: 0 1rem;
    }

    .meal-features-simple {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .meal-features-simple .feature-item {
        padding: 2rem;
    }

    .meal-features-simple .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    /* Ajustements pour les mockups sur mobile */
    .app-content {
        padding: 15px;
    }

    .points-card,
    .meals-section {
        padding: 15px;
    }

    .points-number {
        font-size: 1.5rem;
    }

    .meal-icons {
        gap: 10px;
    }

    .meal-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .no-meals-icon {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .phone-frame {
        width: 180px;
        height: 360px;
        max-width: 80vw;
        max-height: 50vh;
    }

    .add-meal h2 {
        font-size: 1.6rem;
        padding: 0 10px;
    }

    .meal-features-simple .feature-item {
        padding: 1.5rem;
    }

    .meal-features-simple .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .meal-features-simple .feature-content h3 {
        font-size: 1.1rem;
    }

    .meal-features-simple .feature-content p {
        font-size: 0.9rem;
    }

    /* Ajustements supplémentaires pour très petits écrans */
    .app-content {
        padding: 10px;
    }

    .points-card,
    .meals-section {
        padding: 12px;
    }

    .points-number {
        font-size: 1.3rem;
    }

    .points-label {
        font-size: 0.7rem;
    }

    .meal-icons {
        gap: 8px;
    }

    .meal-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .no-meals-icon {
        font-size: 2rem;
    }

    .no-meals-text {
        font-size: 0.7rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.benefit-item,
.step {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Legal pages styles */
.legal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5rem 0 2rem;
    text-align: center;
}

.legal-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

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

.breadcrumb a:hover {
    opacity: 1;
}

.breadcrumb span {
    margin: 0 0.5rem;
    opacity: 0.6;
}

.legal-content {
    padding: 3rem 0;
    background: #f8f9fa;
}

.legal-document {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.legal-document .section {
    margin-bottom: 2.5rem;
}

.legal-document .section:last-child {
    margin-bottom: 0;
}

.legal-document h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.legal-document h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 1.5rem 0 1rem;
}

.legal-document p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.legal-document ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.legal-document li {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.company-info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0;
    border-left: 4px solid #3498db;
}

.company-info p {
    margin-bottom: 0.5rem;
}

.company-info p:last-child {
    margin-bottom: 0;
}

.legal-document a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-document a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.contact-info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0;
    border-left: 4px solid #2ecc71;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

/* Responsive pour les pages légales */
@media (max-width: 768px) {
    .legal-header {
        padding: 3rem 0 1.5rem;
    }

    .legal-header h1 {
        font-size: 2rem;
    }

    .legal-content {
        padding: 2rem 0;
    }

    .legal-document {
        padding: 2rem;
        margin: 0 1rem;
    }

    .legal-document h2 {
        font-size: 1.3rem;
    }

    .legal-document h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .legal-header h1 {
        font-size: 1.8rem;
    }

    .legal-document {
        padding: 1.5rem;
    }

    .company-info,
    .contact-info {
        padding: 1rem;
    }
}
