/* ==========================================================================
   LANDING-STYLE.CSS - HERO SECTION & VRAI MOCKUP DIRECTEUR (LIGHT THEME)
   ========================================================================== */

:root {
    --bg-landing: #ffffff;
    --bg-window-body: #F9F6F0;
    /* Calqué sur ton fond d'application d'origine */
    --card-bg: rgba(255, 255, 255, 0.9);
    --border-mock: rgba(0, 0, 0, 0.06);
    --text-dark: #1C1C1E;
    --text-muted: #8E8E93;
    --accent-orange: #F04903;
    /* Ton orange signature */
    --accent-purple: #7D6E83;
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --navbar-height: 70px;
    --primary-color: #ff5722;
    /* Ajuste avec tes vraies variables de couleur */
    --text-color: #333;
    --border-color: #eee;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'League Spartan', sans-serif;
}

body {
    background-color: var(--bg-landing);
    color: var(--text-dark);
    padding-top: var(--navbar-height);
    /* Évite que la navbar fixe cache le haut du Hero */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
}

.main-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    /* Effet flou moderne en arrière-plan */
    border-bottom: 1px solid var(--border-color);
    z-index: 4;
    /* Reste au-dessus de tout, même des mockups */
    display: flex;
    align-items: center;
}

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

.nav-logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-logo span {
    color: var(--accent-orange);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 24px;
    margin: 0;
    padding: 0;
}

.nav-link-item {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-link-item:hover {
    color: var(--primary-color);
}

.nav-link-item.index {
    color: var(--primary-color);
}

.nav-ctas {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Boutons CTA */
.btn-nav {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary {
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: #f5f5f5;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Bouton Hamburger Caché sur Desktop */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 4;
}

.menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

.section {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    padding: 60px 5%;
    align-items: center;
}

.accent_clr {
    color: var(--accent-orange);
}

.header {
    font-size: 3em;
}

.story-text-side {
    display: flex;
    flex-direction: column;
    gap: 15px;
    color: var(--text-dark);
}

.story-text-side p {
    color: var(--text-muted);
    line-height: 1.5em;
}

/* Styles spécifiques pour la nouvelle Hero de couverture */
.hero-cover-section {
    padding: 120px 20px 80px 20px;
    background: linear-gradient(135deg, #FFFDF9 0%, #FFF8F0 100%);
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-badge {
    background: rgba(240, 73, 3, 0.08);
    color: #F04903;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-cover-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1C1C1E;
    line-height: 1.2;
    max-width: 900px;
    margin-bottom: 20px;
}

.hero-cover-title span {
    color: #F04903;
}

.hero-cover-subtitle {
    font-size: 1.2rem;
    color: #64748B;
    max-width: 650px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-group {
    display: flex;
    gap: 15px;
    margin-bottom: 60px;
}

.btn-primary-lg {
    background: #F04903;
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(240, 73, 3, 0.15);
    transition: transform 0.2s;
}

.btn-secondary-lg {
    background: white;
    color: #1C1C1E;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #E5E7EB;
    transition: transform 0.2s;
}

.btn-primary-lg:hover,
.btn-secondary-lg:hover {
    transform: translateY(-2px);
}

/* --- CARROUSEL DYNAMIQUE DES PARTENAIRES --- */
.carousel-wrapper {
    width: 100%;
    max-width: 1100px;
    margin-top: 20px;
    position: relative;
}

.carousel-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94A3B8;
    font-weight: 700;
    margin-bottom: 25px;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
    display: flex;
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.carousel-track {
    display: flex;
    gap: 50px;
    animation: scroll 25s linear infinite;
    width: max-content;
}

.partner-logo-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 12px 24px;
    border-radius: 75px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.partner-img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    background: #F1F5F9;
}

.partner-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #334155;
    white-space: nowrap;
}

/* Animation infinie fluide pour le carrousel */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 25px));
    }
}

@media (max-width: 768px) {
    .hero-cover-title {
        font-size: 2.3rem;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .btn-primary-lg,
    .btn-secondary-lg {
        text-align: center;
    }
}


/* --- STRUCTURE DE LA HERO SECTION --- */
.hero-section {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    padding: 60px 5%;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-text h1 span {
    color: var(--accent-orange);
}

.hero-text p {
    color: var(--text-muted);
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 30px;
}

/* --- LE NAVIGATEUR MOCKUP --- */
.mockup-window {
    background: #ffffff;
    border: 1px solid var(--border-mock);
    border-radius: 16px;
    height: 78vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.08);
    position: relative;
}

.window-header {
    background: #EAEAEF;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-mock);
}

.window-dots {
    display: flex;
    gap: 6px;
    margin-right: 20px;
}

.window-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff5f56;
}

.window-dots span:nth-child(2) {
    background: #ffbd2e;
}

.window-dots span:nth-child(3) {
    background: #27c93f;
}

.window-search-bar {
    background: #ffffff;
    border: 1px solid var(--border-mock);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 4px 15px;
    flex: 1;
    max-width: 260px;
}

.window-body {
    flex: 1;
    position: relative;
    background: var(--bg-window-body);
    overflow: hidden;
}

/* --- LOGIQUE DES COUCHES D'INTERFACE --- */
.view-layer {
    position: absolute;
    inset: 0;
    opacity: 0;
    padding: 20px;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.view-layer.active {
    opacity: 1;
    pointer-events: auto;
}

/* --- CURSEUR AUTONOME --- */
.fake-cursor {
    position: absolute;
    width: 18px;
    height: 18px;
    background: no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M4.5 3V17l4.2-4.2 3.8 7.8 2.7-1.3-3.8-7.8 5.6-.4L4.5 3z'/%3E%3C/svg%3E");
    z-index: 2;
    pointer-events: none;
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- REPRODUCTION DU VRAI DASHBOARD DE L'APP --- */
.app-top-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    padding: 10px 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    margin-bottom: 15px;
}

.app-brand-logo {
    font-weight: 800;
    font-size: 1.2rem;
}

.app-brand-logo span {
    color: var(--accent-orange);
}

.app-profile-area {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.app-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-purple);
}

/* Grille des indicateurs financiers */
.app-bento-grid-finance {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}

.app-bento-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    padding: 12px;
}

.app-card-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.app-card-value {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 4px;
}

/* Section Tableau Historique d'activité */
.app-activity-box {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    padding: 12px;
}

.app-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
    text-align: left;
    margin-top: 8px;
}

.app-table th {
    color: var(--text-muted);
    font-weight: 500;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.app-table td {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

/* Animations d'apparitions progressives du Dashboard */
.fade-in-element {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.active .fade-in-element:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.active .fade-in-element:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.active .fade-in-element:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

/* Styles pour la vue d'authentification */
.login-box {
    max-width: 260px;
    margin: 50px auto 0 auto;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-mock);
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.mock-input {
    width: 100%;
    background: #f4f4f5;
    border: 1px solid var(--border-mock);
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 0.8rem;
    text-align: left;
}

.mock-btn {
    background: var(--accent-orange);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    width: 100%;
}

/* ==========================================================================
   INTERFACE 2 - COUCHE TECHNIQUE POUR L'ESPACE DIRECTEUR (SCROLL ANIMATED)
   ========================================================================== */

/* Structure de navigation latérale interne du mockup */
.app-container-with-sidebar {
    display: flex;
    height: 100%;
    width: 100%;
}

.app-sidebar-nav {
    width: 140px;
    background: #ffffff;
    border-right: 1px solid var(--border-mock);
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item-mock {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.nav-item-mock.active-view {
    background: rgba(240, 73, 3, 0.08);
    color: var(--accent-orange);
}

.app-main-view-workspace {
    flex: 1;
    padding: 20px;
    overflow: hidden;
    position: relative;
}

/* Éléments spécifiques à la vue Équipe (team.php) */
.status-badge-active {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.role-tag-pill {
    background: #f4f4f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--text-dark);
}

/* Éléments spécifiques aux Finances (finances.php) */
.finance-trend-positive {
    color: #10B981;
    font-weight: 600;
}

.finance-trend-warning {
    color: #F59E0B;
    font-weight: 600;
}

/* Animations d'enchaînement de navigation interne */
.sub-view-layer {
    position: absolute;
    inset: 20px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.sub-view-layer.current {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ==========================================================================
   INTERFACE 3 - COUCHE TECHNIQUE POUR L'ESPACE GÉRANT (RESTOFLOW)
   ========================================================================== */

/* Navbar spécifique RestoFlow */
.app-header-restoflow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-mock);
    margin-bottom: 16px;
}

.brand-restoflow {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.brand-restoflow span {
    color: var(--accent-orange);
}

/* Grille interactive des tables (carte.php) */
.tables-showroom-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.table-mock-card {
    background: #ffffff;
    border: 1px solid var(--border-mock);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.table-mock-card.occupied {
    border-left: 4px solid var(--accent-orange);
}

.table-mock-card.available {
    border-left: 4px solid var(--accent-green);
}

.table-status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 4px;
}

/* Styles pour le flux des actions du Dashboard Gérant */
.log-row-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: #ffffff;
    border: 1px solid var(--border-mock);
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 0.75rem;
}

.log-time {
    color: var(--text-muted);
    font-weight: 600;
    margin-right: 8px;
}

/* ==========================================================================
   INTERFACE 4 - COUCHE TECHNIQUE POUR L'ESPACE SERVEUSE (RESTOFLOW MOBILE)
   ========================================================================== */

/* Layout Container type smartphone */
.phone-mockup-body {
    background: #f8fafc;
    padding: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Grille de gestion des tables */
.grid-tables-serveuse {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 10px;
}

.table-card-mobile {
    background: #ffffff;
    border-radius: 12px;
    padding: 14px;
    border: 1px solid var(--border-mock);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 95px;
}

.table-card-mobile.free {
    border-top: 4px solid var(--accent-green);
}

.table-card-mobile.occupied {
    border-top: 4px solid var(--accent-orange);
}

.badge-status-mini {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 20px;
    font-weight: 700;
}

.badge-status-mini.free {
    background: #e6f4ea;
    color: var(--accent-green);
}

.badge-status-mini.occupied {
    background: #fff3cd;
    color: #b7791f;
}

/* Styles du Stepper & Terminal de commande */
.item-stepper-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border-mock);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 8px;
}

.stepper-btn-zone {
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-control-btn {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid var(--border-mock);
    background: #f1f5f9;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer fixe du terminal */
.footer-fixed-terminal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border-top: 1px solid var(--border-mock);
    padding: 10px 12px;
    margin-top: 15px;
    border-radius: 0 0 12px 12px;
}

/* ==========================================================================
   PRICING & SUBSCRIPTION SIMULATION STYLES
   ========================================================================== */
.pricing-section {
    background-color: #fafafa;
    border-top: 1px solid var(--border-mock);
}

.pricing-cards-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
}

.pricing-card {
    background: #ffffff;
    border: 2px solid var(--border-mock);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pricing-card:hover,
.pricing-card.active-plan {
    border-color: var(--accent-orange);
    box-shadow: 0 10px 30px rgba(240, 73, 3, 0.05);
    transform: translateY(-4px);
}

.plan-header h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.plan-header .price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
}

.plan-header .price span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}

.plan-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 15px 0 20px 0;
    line-height: 1.4;
}

.pricing-action-btn {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border-mock);
    background: #f8fafc;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.active-plan .pricing-action-btn {
    background: var(--accent-orange);
    color: white;
    border-color: var(--accent-orange);
}

.badge-premium {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--text-dark);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

/* Styles pour les étapes dans le Mockup */
.pricing-mockup-body {
    padding: 25px;
    background: var(--bg-window-body);
}

.pricing-step-layer {
    position: absolute;
    inset: 25px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(15px);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pricing-step-layer.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.step-indicator {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.selected-plan-box {
    background: #ffffff;
    border: 1px solid var(--border-mock);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.box-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.box-label {
    color: var(--text-muted);
}

/* Formulaire simulé */
.mock-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    justify-content: center;
}

.mock-input-group label {
    font-size: 0.75rem;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

/* Grille de paiement */
.payment-methods-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.pay-method-card {
    background: #ffffff;
    border: 1px solid var(--border-mock);
    border-radius: 8px;
    padding: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
}

.pay-method-card.active-method {
    border-color: var(--accent-orange);
    background: rgba(240, 73, 3, 0.02);
}

/* Écran succès final */
.success-screen {
    text-align: center;
    margin: auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.success-icon {
    font-size: 2.5rem;
    animation: pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-loading-bar {
    width: 150px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

.bar-progress {
    width: 0%;
    height: 100%;
    background: #10B981;
    animation: load 2.5s ease-in-out forwards;
}

@keyframes load {
    to {
        width: 100%;
    }
}

@keyframes pop {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

/* --- RESPONSIVE ADAPTATION --- */
@media screen and (max-width: 640px) {
    .pricing-cards-container {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */
.main-footer {
    background-color: #111111;
    /* Fond sombre pour contraster avec le reste de la page */
    color: #bcbcbc;
    padding: 70px 0 20px 0;
    font-size: 0.9rem;
    border-top: 1px solid #222;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    /* Donne plus d'espace à la colonne marque et contact */
    gap: 40px;
    padding-bottom: 50px;
}

.footer-col h3 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #bcbcbc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary-color, #ff5722);
}

/* Style spécifique colonne Brand */
.footer-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.brand-text {
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    font-size: 1.2rem;
}

.social-links a {
    text-decoration: none;
    filter: grayscale(1) opacity(0.7);
    background: white;
    color: var(--text-color);
    padding: 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    filter: grayscale(0) opacity(1);
    transform: translateY(-2px);
}

#linkedIn:hover {
    color: rgb(3, 91, 173);
}

#insta:hover {
    color: rgb(241, 0, 197);
}

#facebook:hover {
    color: rgb(4, 90, 238);
}

.social-links a svg {
    width: 15px;
    height: 15px;
}

/* Colonne Contact / Statut */
.support-info {
    margin-bottom: 15px;
    line-height: 1.5;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}

.contact-list li .link {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-list li .link svg {
    width: 15px;
    height: 15px;
}

.status-online {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #4caf50 !important;
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #4caf50;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #4caf50;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.4;
    }
}

/* Barre de clôture */
.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 25px;
}

.footer-bottom-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
}

.legal-links a:hover {
    color: #fff;
}

.profile-meta span {
    display: flex;
    align-items: center;
}

.resto-profile-header {
    background: linear-gradient(135deg, #FFFDF9 0%, #FFF8F0 100%);
    padding: 80px 20px 40px 20px;
    border-bottom: 1px solid #F1F5F9;
}

.header-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
}

.profile-logo {
    width: 120px;
    height: 120px;
    border-radius: 30px;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.profile-info h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1C1C1E;
    margin: 0 0 10px 0;
}

.profile-meta {
    display: flex;
    gap: 20px;
    color: #64748B;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.profile-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.menu-section {
    max-width: 1000px;
    margin: 50px auto;
    padding: 0 20px;
}

.menu-tabs {
    display: flex;
    gap: 15px;
    border-bottom: 2px solid #F1F5F9;
    margin-bottom: 40px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 25px;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    color: #94A3B8;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.tab-btn.active {
    color: #F04903;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #F04903;
}

.menu-content {
    display: none;
}

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

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 25px;
}

.menu-item-card {
    background: white;
    border: 1px solid #F1F5F9;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
}

.item-details h4 {
    font-size: 1.1rem;
    margin: 0 0 6px 0;
    color: #1E293B;
    font-weight: 700;
}

.item-description {
    font-size: 0.9rem;
    color: #64748B;
    margin: 0;
}

.item-price-tag {
    background: rgba(240, 73, 3, 0.06);
    color: #F04903;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
}

.portion-badge {
    display: inline-block;
    font-size: 0.75rem;
    background: #F1F5F9;
    color: #475569;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 5px;
    font-weight: 600;
}

.contact-container {
    max-width: 1100px;
    margin: 120px auto 80px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: center;
}

/* --- COLONNE INFOS DE GAUCHE --- */
.contact-info-side h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1C1C1E;
    line-height: 1.2;
    margin-bottom: 20px;
}

.contact-info-side h1 span {
    color: #F04903;
}

.contact-info-side p {
    color: #64748B;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

.info-blocks {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #FFFDF9;
    border: 1px solid rgba(240, 73, 3, 0.05);
    padding: 20px;
    border-radius: 16px;
}

.info-icon-box {
    width: 48px;
    height: 48px;
    background: rgba(240, 73, 3, 0.08);
    color: #F04903;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: bold;
}

.info-details h4 {
    margin: 0 0 4px 0;
    color: #1E293B;
    font-size: 0.95rem;
    font-weight: 700;
}

.info-details a,
.info-details p {
    margin: 0;
    color: #64748B;
    font-size: 0.95rem;
    text-decoration: none;
}

/* --- COLONNE FORMULAIRE DE DROITE --- */
.contact-form-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid #F1F5F9;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.02);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #1E293B;
    outline: none;
    transition: all 0.2s;
}

.form-control:focus {
    border-color: #F04903;
    box-shadow: 0 0 0 3px rgba(240, 73, 3, 0.08);
}

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

.btn-submit-contact {
    width: 100%;
    background: #F04903;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 10px 20px rgba(240, 73, 3, 0.1);
}

.btn-submit-contact:hover {
    background: #D83F02;
    transform: translateY(-1px);
}

/* Notification de succès animée */
.success-toast {
    display: none;
    background: #10B981;
    color: white;
    padding: 16px;
    border-radius: 10px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.95rem;
}

.partners-hero {
    padding: 100px 20px 40px 20px;
    background: linear-gradient(135deg, #FFFDF9 0%, #FFF8F0 100%);
    text-align: center;
}

.partners-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1C1C1E;
    margin-bottom: 15px;
}

.partners-title span {
    color: #F04903;
}

.partners-subtitle {
    font-size: 1.1rem;
    color: #64748B;
    max-width: 600px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
}

/* Barre de recherche de partenaires */
.search-container {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #E5E7EB;
    border-radius: 50px;
    font-family: inherit;
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    outline: none;
    transition: all 0.2s ease;
}

.search-input:focus {
    border-color: #F04903;
    box-shadow: 0 4px 20px rgba(240, 73, 3, 0.1);
}

/* Grille des restaurants partenaires */
.partners-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

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

.partner-showcase-card {
    background: #ffffff;
    border: 1px solid #F1F5F9;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    position: relative;
}

.partner-showcase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: rgba(240, 73, 3, 0.1);
}

.partner-showcase-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    background: #F8FAFC;
    border: 3px solid #FFF;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.partner-showcase-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1E293B;
    margin: 0 0 8px 0;
}

.partner-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(16, 185, 129, 0.08);
    color: #10B981;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.partner-showcase-meta {
    font-size: 0.85rem;
    color: #64748B;
    border-top: 1px solid #F1F5F9;
    padding-top: 15px;
    margin-top: 15px;
}

/* État vide si aucun restaurant trouvé */
.empty-partners {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #94A3B8;
    font-size: 1.1rem;
}

@media (max-width: 850px) {
    .contact-container {
        grid-template-columns: 1fr;
        margin-top: 80px;
        gap: 40px;
    }

    .contact-info-side h1 {
        font-size: 2.2rem;
    }

    .contact-form-card {
        padding: 25px;
    }

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

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .profile-meta {
        justify-content: center;
    }

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

/* ==========================================================================
   MEDIA QUERIES - RESPONSIVE DESIGN COMPLET & SÉCURISÉ
   ========================================================================== */

/* --- SÉCURITÉ UNIVERSELLE ANTI-OVERFLOW --- */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
    /* Empêche radicalement le scroll horizontal */
}

img,
svg,
video,
canvas {
    max-width: 100%;
    height: auto;
}


/* ==========================================================================
   RESPONSIVE NAVBAR (MOBILE & TABLETTE)
   ========================================================================== */
@media screen and (max-width: 992px) {
    .menu-toggle {
        display: flex;
        /* On affiche le hamburger */
    }

    /* Le menu devient une feuille flottante / Overlay plein écran */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        /* Caché par défaut sur la droite */
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: #fff;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        padding: 40px;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 3;
        /* Assure que la navbar mobile passe au-dessus des mockups */
    }

    /* Quand le menu est ouvert */
    .nav-menu.open {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        width: 100%;
    }

    .nav-link-item {
        font-size: 1.2rem;
    }

    .nav-ctas {
        flex-direction: column;
        width: 100%;
        gap: 16px;
    }

    .btn-nav {
        width: 100%;
        text-align: center;
        padding: 14px;
    }

    /* --- ANIMATION DU HAMBURGER EN 'X' QUAND OUVERT --- */
    .menu-toggle.open .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.open .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* ==========================================================================
   TABLETTES & ÉCRANS INTERMÉDIAIRES (Max 1024px)
   ========================================================================== */
@media screen and (max-width: 1024px) {

    .section,
    .hero-section {
        grid-template-columns: 1fr;
        /* Passage en mode mono-colonne */
        gap: 40px;
        padding: 60px 4%;
        text-align: center;
    }

    .story-text-side,
    .hero-text {
        align-items: center;
        /* Centre le texte et les boutons */
        max-width: 100%;
        margin: 0 auto;
    }

    .header,
    .hero-text h1 {
        font-size: 2.4rem;
        line-height: 1.2;
    }

    .mockup-window {
        height: 480px;
        /* Hauteur ajustée plus fluide pour tablette */
        width: 100%;
        max-width: 100%;
        /* Évite les conflits de taille */
        margin: 0 auto;
        overflow: hidden;
        /* Sécurité absolue pour bloquer les éléments JS qui dépassent */
    }
}

/* ==========================================================================
   SMARTPHONES (Max 768px)
   ========================================================================== */
@media screen and (max-width: 768px) {

    .header,
    .hero-text h1 {
        font-size: 1.9rem;
    }

    .hero-text p,
    .story-text-side p {
        font-size: 0.95rem;
    }

    .mockup-window {
        height: 380px;
        /* Plus compact pour les écrans de téléphones */
        border-radius: 12px;
    }

    /* Grilles Bento internes des fenêtres de démo */
    .app-bento-grid-finance {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .mock-grid,
    .tables-showroom-grid {
        grid-template-columns: 1fr !important;
        /* Force la seule colonne dans la démo */
    }

    /* Ajustement de l'Espace Directeur (Sidebar interne simulée) */
    .app-container-with-sidebar {
        flex-direction: column;
        height: 100%;
        overflow: hidden;
    }

    .app-sidebar-nav {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding: 8px;
        border-right: none;
        border-bottom: 1px solid var(--border-mock);
        -webkit-overflow-scrolling: touch;
        /* Scroll fluide sur iOS */
    }

    .nav-item-mock {
        white-space: nowrap;
        padding: 8px 12px;
    }

    /* 📱 RESPECT DES SIMULATIONS JS (Opacités et visibilités) */
    .view-layer,
    .sub-view-layer {
        position: absolute;
        inset: 12px;
        /* Un peu plus serré pour gagner de l'espace sur mobile */
        opacity: 0;
        pointer-events: none;
        transform: translateY(10px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .view-layer.active,
    .sub-view-layer.current {
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }

    .app-main-view-workspace {
        position: relative;
        flex: 1;
        min-height: 240px;
    }

    .app-main-view-workspace .sub-view-layer {
        inset: 8px;
    }

    /* Masquage des curseurs de démo sur mobile */
    .fake-cursor,
    #cursorDirecteur,
    #cursorGerant,
    #cursorServeuse,
    #cursorPricing {
        display: none !important;
        /* Coupe les sauts de curseur instables liés aux changements de tailles */
    }
}

/* ==========================================================================
   RESPONSIVE FOOTER
   ========================================================================== */
@media screen and (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media screen and (max-width: 576px) {
    .footer-container {
        grid-template-columns: 1fr;
        /* 1 seule colonne sur mobile */
        gap: 35px;
        text-align: center;
    }

    .footer-logo,
    .social-links,
    .contact-list li {
        justify-content: center;
    }

    .footer-bottom-content {
        flex-direction: column-reverse;
        /* Droits d'auteur sous les liens légaux */
        gap: 15px;
    }

    .legal-links {
        justify-content: center;
        flex-wrap: wrap;
        /* Évite que les mentions légales débordent */
        gap: 15px;
    }
}



/*scroll bar*/
/* Pour Chrome, Edge, Safari (WebKit) */
::-webkit-scrollbar {
    width: 4px;
    height: 1px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.308);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-orange);
}