/* CommercialiZe — Layout vitrine
   Reprend strictement la charte de la solution (admin.css) :
   rose/magenta primaire, gris ardoise secondaire, Montserrat.
   ============================== */

:root {
    --primary-color:    #E91E8C;
    --primary-hover:    #c9157a;
    --primary-light:    #f5a8d4;
    --primary-ultra:    rgba(233, 30, 140, 0.08);

    --secondary-color:  #545D6E;
    --secondary-dark:   #3a4150;
    --secondary-light:  #7a8494;

    --accent-green:     #8DC63F;
    --accent-orange:    #F47B20;
    --accent-yellow:    #FFC107;
    --accent-blue:      #0066B3;

    --vit-text:         #333;
    --vit-muted:        #6b7280;
    --vit-bg-soft:      #f4f6fb;
    --vit-border:       #e5e7eb;

    --border-radius:    12px;
    --transition:       all 0.3s ease;
    --shadow-sm:        0 2px 10px rgba(0,0,0,0.06);
    --shadow-md:        0 8px 24px rgba(0,0,0,0.08);
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--vit-text);
    background: #fff;
}

/* Bootstrap overrides — couleurs de marque */
body .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-green{
    background-color: var(--accent-green);
}
body .btn-primary:hover,
body .btn-primary:focus,
body .btn-primary:active {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
}
body .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}
body .btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}
body .text-primary {
    color: var(--primary-color) !important;
}
body .bg-primary {
    background-color: var(--primary-color) !important;
}
body a {
    color: var(--primary-color);
}
body a:hover {
    color: var(--primary-hover);
}

/* Navbar */
.vitrine-navbar {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--vit-border);
    padding: 0.85rem 0;
}
.brand-mark {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--secondary-dark);
    letter-spacing: -0.02em;
}
.brand-mark .text-primary {
    color: var(--primary-color) !important;
}
.brand-tag {
    color: var(--vit-muted);
    font-weight: 500;
    margin-left: 1px;
    font-size: 0.85em;
}
.vitrine-navbar .nav-link {
    font-weight: 500;
    color: var(--secondary-color);
    padding: 0.5rem 1rem !important;
}
.vitrine-navbar .nav-link:hover {
    color: var(--primary-color);
}
.vitrine-navbar .nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Hero carousel — slides animées
   ============================== */
.hero-carousel {
    position: relative;
    overflow: hidden;
}
.hero-carousel .carousel-item {
    transition: opacity 0.9s ease-in-out;
}
.hero-slide {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 5rem 0;
}
.hero-content h1 {
    font-size: clamp(2.2rem, 4.8vw, 3.6rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: #fff;
    margin-bottom: 1.25rem;
}
.hero-content .lead {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.65;
    max-width: 580px;
}
.hero-flag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    backdrop-filter: blur(8px);
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.text-accent {
    color: var(--accent-yellow);
}

/* Slide 1 — Solution */
.hero-slide-solution {
    background-color: var(--secondary-dark);
}
.hero-slide-solution .hero-overlay {
    background: linear-gradient(120deg,
        rgba(30, 39, 56, 0.92) 0%,
        rgba(233, 30, 140, 0.78) 100%);
}

/* Slide 2 — Commerçant */
.hero-slide-merchant {
    background-color: var(--primary-color);
}
.hero-slide-merchant .hero-overlay {
    background: linear-gradient(120deg,
        rgba(201, 21, 122, 0.92) 0%,
        rgba(244, 123, 32, 0.7) 100%);
}

/* Slide 3 — Caissier */
.hero-slide-cashier {
    background-color: #0a8c7a;
}
.hero-slide-cashier .hero-overlay {
    background: linear-gradient(120deg,
        rgba(0, 160, 168, 0.9) 0%,
        rgba(141, 198, 63, 0.7) 100%);
}

/* Slide 4 — Acheteur */
.hero-slide-buyer {
    background-color: #0066B3;
}
.hero-slide-buyer .hero-overlay {
    background: linear-gradient(120deg,
        rgba(0, 102, 179, 0.92) 0%,
        rgba(58, 65, 80, 0.85) 100%);
}

/* Boutons clairs sur slides */
.hero-slide .btn-light {
    background: #fff;
    color: var(--secondary-dark);
    font-weight: 600;
    border: none;
}
.hero-slide .btn-light:hover {
    background: var(--accent-yellow);
    color: var(--secondary-dark);
}
.hero-slide .btn-outline-light {
    border: 2px solid #fff;
    color: #fff;
    font-weight: 600;
}
.hero-slide .btn-outline-light:hover {
    background: #fff;
    color: var(--secondary-dark);
}

/* Indicateurs */
.hero-carousel .carousel-indicators {
    margin-bottom: 1.5rem;
    z-index: 3;
}
.hero-carousel .carousel-indicators [data-bs-target] {
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    transition: var(--transition);
}
.hero-carousel .carousel-indicators .active {
    background-color: #fff;
    width: 56px;
}

/* Mockup dashboard (slide 1) */
.hero-mockup {
    transform: rotate(-1deg);
}
.mockup-window {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}
.mockup-bar {
    background: #f0f0f3;
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}
.mockup-bar span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
}
.mockup-bar span:first-child { background: #ff5f57; }
.mockup-bar span:nth-child(2) { background: #ffbd2e; }
.mockup-bar span:nth-child(3) { background: #28ca42; }
.mockup-body {
    padding: 1.25rem;
    color: var(--vit-text);
}
.mock-kpi-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.mock-kpi {
    background: var(--vit-bg-soft);
    padding: 0.75rem 0.9rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}
.mock-kpi-label {
    display: block;
    font-size: 0.7rem;
    color: var(--vit-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.mock-kpi-value {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--secondary-dark);
    margin-top: 0.2rem;
}
.mock-kpi-value small { font-weight: 500; color: var(--vit-muted); font-size: 0.7rem; }
.mock-bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.4rem;
    height: 100px;
    padding: 0.5rem 0;
    border-radius: 6px;
    background: var(--vit-bg-soft);
    padding: 0.6rem;
}
.mock-bar-chart span {
    flex: 1;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-light));
    border-radius: 3px 3px 0 0;
    animation: barGrow 1.2s ease-out;
}
@keyframes barGrow {
    from { height: 0 !important; }
}

/* Persona block (slide 2) */
.hero-persona {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    text-align: center;
    color: #fff;
    max-width: 360px;
}
.hero-persona > i:first-child {
    font-size: 5rem;
    color: var(--accent-yellow);
    margin-bottom: 1rem;
    display: block;
}
.persona-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.persona-stats > div { text-align: center; }
.persona-stats strong {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-yellow);
}
.persona-stats span {
    display: block;
    font-size: 0.8rem;
    opacity: 0.85;
    margin-top: 0.25rem;
}

/* Receipt mockup (slide 3) */
.hero-receipt {
    background: #fff;
    color: var(--secondary-dark);
    border-radius: 8px;
    padding: 1.5rem 1.25rem;
    width: 280px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
    transform: rotate(2deg);
    position: relative;
}
.hero-receipt::before,
.hero-receipt::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 12px;
    background:
        radial-gradient(circle at 6px 6px, transparent 6px, #fff 6px) repeat-x;
    background-size: 12px 12px;
}
.hero-receipt::before { top: -6px; transform: scaleY(-1); }
.hero-receipt::after { bottom: -6px; }
.receipt-head {
    text-align: center;
    font-weight: 700;
    border-bottom: 2px dashed #d1d5db;
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
    font-family: 'Montserrat', sans-serif;
}
.receipt-line, .receipt-total {
    display: flex;
    justify-content: space-between;
    padding: 0.2rem 0;
}
.receipt-line.muted { color: var(--vit-muted); }
.receipt-total {
    border-top: 2px dashed #d1d5db;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
}
.receipt-qr {
    text-align: center;
    margin: 1rem 0 0.4rem;
    font-size: 4rem;
    color: var(--secondary-dark);
}
.receipt-pin {
    text-align: center;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 0.1em;
    font-size: 1.05rem;
}

/* Phone mockup (slide 4) */
.hero-phone {
    width: 240px;
    height: 460px;
    background: #1a1a1a;
    border-radius: 36px;
    padding: 12px;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: rotate(-3deg);
}
.hero-phone::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 6px;
    background: #333;
    border-radius: 3px;
    z-index: 2;
}
.phone-screen {
    background: linear-gradient(160deg, #fff 0%, var(--vit-bg-soft) 100%);
    border-radius: 26px;
    height: 100%;
    padding: 3rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--secondary-dark);
}
.phone-amount {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.phone-amount small { font-size: 0.9rem; color: var(--vit-muted); font-weight: 500; }
.phone-method {
    background: var(--vit-bg-soft);
    padding: 0.6rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    margin: 1rem 0;
    color: #e60000;
}
.phone-status {
    color: var(--accent-green);
    font-weight: 700;
    margin-top: 1rem;
}
.phone-status i { font-size: 1.5rem; display: block; margin-bottom: 0.25rem; }

/* Responsive */
@media (max-width: 991.98px) {
    .hero-slide { min-height: 480px; }
    .hero-content { padding: 3.5rem 0; }
}
@media (max-width: 575.98px) {
    .hero-content h1 { font-size: 2rem; }
    .hero-content .lead { font-size: 1rem; }
    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next { display: none; }
}

/* Sections */
.section {
    padding: 4.5rem 0;
}
.hero{ padding-top: 4.5rem;}
.section-soft {
    background: var(--vit-bg-soft);
}
.section h2 {
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    color: var(--secondary-dark);
}
.section .section-lead {
    color: var(--vit-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

/* Feature cards */
.feature-card {
    background: #fff;
    border: 1px solid var(--vit-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    height: 100%;
    transition: var(--transition);
}
.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}
.feature-card .icon {
    width: 48px;
    height: 48px;
    border-radius: 0.7rem;
    background: var(--primary-ultra);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}
.feature-card h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--secondary-dark);
}
.feature-card p {
    color: var(--vit-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.pricing-card {
    background: #fff;
    border: 1px solid var(--vit-border);
    border-radius: var(--border-radius);
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
}
.pricing-card.featured {
    border-color: var(--primary-color);
    border-width: 2px;
    position: relative;
    box-shadow: 0 20px 40px -20px rgba(233, 30, 140, 0.3);
}
.pricing-card.featured::before {
    content: 'Le plus populaire';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: #fff;
    padding: 0.3rem 0.95rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.pricing-card .plan-name {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--vit-muted);
    letter-spacing: 0.05em;
}
.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0.5rem 0;
    letter-spacing: -0.025em;
    color: var(--secondary-dark);
}
.pricing-card .price small {
    font-size: 0.95rem;
    color: var(--vit-muted);
    font-weight: 500;
}
.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    flex: 1;
}
.pricing-card ul li {
    padding: 0.4rem 0;
    font-size: 0.95rem;
    display: flex;
    gap: 0.5rem;
}
.pricing-card ul li i {
    color: var(--primary-color);
    margin-top: 0.25rem;
    font-size: 0.85rem;
}
.pricing-card ul li.disabled {
    color: #a3a3a3;
}
.pricing-card ul li.disabled i {
    color: #d1d5db;
}

/* Footer */
.vitrine-footer {
    background: #3a3e4c;
    color: rgba(255, 255, 255, 0.85);
    border-top: 4px solid var(--primary-color);
}
.vitrine-footer h5,
.vitrine-footer h6 {
    color: #fff;
}
.vitrine-footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: var(--transition);
}
.vitrine-footer a:hover {
    color: var(--primary-light);
}
.vitrine-footer ul li {
    padding: 0.25rem 0;
}
.vitrine-footer hr {
    border-color: rgba(255, 255, 255, 0.15);
    opacity: 1;
}
.vitrine-footer .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Cards (signup, account, payment) */
.vit-card {
    background: #fff;
    border: 1px solid var(--vit-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition);
}
.vit-card.compact {
    padding: 1.25rem;
}

/* Form controls */
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.2rem var(--primary-ultra);
}
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Badges */
.badge.bg-warning {
    background-color: var(--accent-orange) !important;
    color: #fff !important;
}
.badge.bg-success {
    background-color: var(--accent-green) !important;
    color: #fff !important;
}

/* Comparison table */
.compare-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}
.compare-table th, .compare-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--vit-border);
    text-align: left;
    font-size: 0.95rem;
}
.compare-table th {
    background: var(--vit-bg-soft);
    font-weight: 600;
    color: var(--secondary-dark);
}
.compare-table .yes { color: var(--accent-green); }
.compare-table .no { color: #d1d5db; }

@media (max-width: 768px) {
    .hero { padding: 3rem 0 2.5rem; }
    .section { padding: 3rem 0; }
}

/* ==========================================================================
   Mobile — portail
   ==========================================================================
   Les cibles tactiles sont dans mobile.css. Le portail ne debordait pas
   lateralement ; il ne lui manquait que ces deux reglages.
   ========================================================================== */
@media (max-width: 767.98px) {

    .btn:not(.btn-link) { min-height: 44px; }
    .btn-lg { min-height: 50px; }

    .navbar-nav .nav-link { padding-top: 10px; padding-bottom: 10px; }

    /*
     * Les puces du carrousel font 3 px de haut : impossibles a viser au doigt.
     * Le rembourrage leur donne une zone sensible de 27 px sans rien changer a
     * leur apparence — background-clip: content-box garde la barre fine.
     */
    .carousel-indicators [data-bs-target] {
        height: 3px;
        padding: 12px 0;
        background-clip: content-box;
    }

    /* Le tableau comparatif des tarifs est le seul du portail : il defile
       dans son cadre plutot que d'etirer la page. */
    .compare-table { min-width: 480px; }
}
