/* =========================================================
   APPLICATION MÉTIER SUR MESURE — VIFI.INFO
   Base reprise de la page Business Central, adaptée.
   Toutes les classes sont préfixées .bc- pour éviter
   tout conflit avec le CSS existant du site.
   ========================================================= */

/* --- Rythme et variables communes aux sections --- */
.bc-intro,
.bc-presentation,
.bc-situations-section,
.bc-services,
.bc-erp-section,
.bc-method,
.bc-exchange-section,
.bc-faq,
.bc-target,
.bc-contact {
    --bc-yellow: #e6d800;
    --bc-yellow-dark: #d4c900;
    --bc-text: #222;
    --bc-text-light: #555;
    max-width: 75rem;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Titres de section — soulignement jaune discret */
.bc-presentation h2,
.bc-situations-section h2,
.bc-services h2,
.bc-erp-section h2,
.bc-method h2,
.bc-exchange-section h2,
.bc-faq h2,
.bc-contact h2 {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1.25rem;
}
.bc-presentation h2,
.bc-erp-section h2,
.bc-exchange-section h2 {
    position: relative;
    display: inline-block;
}
.bc-presentation h2::after,
.bc-erp-section h2::after,
.bc-exchange-section h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: calc(100% + 0.6rem);
    height: 25%;
    background: rgba(230, 216, 0, 0.25);
    z-index: -1;
    border-radius: 6px;
}

.bc-section-intro {
    line-height: 1.65;
    color: var(--bc-text);
    /*max-width: 48rem;*/
    margin-bottom: 2.5rem;
}

/* =========================================================
   HERO
   ========================================================= */
.bc-intro {
    padding-top: 7rem;
}
.bc-hero {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    align-items: center;
}
.bc-hero-content h1 {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.bc-hero-claim {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.4;
    color: #000;
    margin-bottom: 1.5rem;
    padding-left: 1.1rem;
    border-left: 4px solid var(--bc-yellow);
}
.bc-hero-content .intro {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--bc-text);
    margin-bottom: 1rem;
}
.bc-hero-content p {
    line-height: 1.6;
    color: var(--bc-text-light);
    margin-bottom: 1rem;
}
.bc-hero-btn.services-btn {
    margin-top: 1rem;
    text-decoration: none;
}
.bc-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}
.bc-hero-visual-frame {
    position: relative;
    width: 100%;
    max-width: 22rem;
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}
.bc-hero-visual-frame img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}
.bc-hero-visual-frame::after {
    content: "";
    position: absolute;
    top: 15px;
    left: 15px;
    width: 100%;
    height: 100%;
    background: rgba(230, 216, 0, 0.2);
    border-radius: 12px;
    z-index: -1;
}
.bc-hero-visual-frame svg {
    width: 100%;
    height: auto;
    display: block;
}
@media (max-width: 900px) {
    .bc-hero {
        grid-template-columns: 1fr;
    }
    .bc-hero-visual {
        order: -1;
    }
    .bc-hero-visual-frame {
        max-width: 17rem;
        margin: 0 auto;
    }
    .bc-hero-content h1 {
        font-size: 2rem;
    }
    .bc-hero-claim {
        font-size: 1.15rem;
    }
}

/* =========================================================
   LE PRINCIPE + SCHÉMA DE FLUX
   ========================================================= */
.bc-presentation h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}
.bc-presentation p {
    line-height: 1.65;
    color: var(--bc-text);
    margin-bottom: 1rem;
    text-align: justify;
}
.bc-presentation a {
    color: #000;
    text-decoration: underline;
    text-decoration-color: var(--bc-yellow);
    text-decoration-thickness: 2px;
}
.bc-presentation-layout {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 1rem;
}

/* Chaîne verticale ERP -> interface -> application -> utilisateurs */
.bc-flow {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}
.bc-flow-step {
    position: relative;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    text-align: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}
.bc-flow-step + .bc-flow-step {
    margin-top: 2rem;
}
.bc-flow-step:not(:last-child)::after {
    content: "↓";
    position: absolute;
    left: 50%;
    bottom: -1.7rem;
    transform: translateX(-50%);
    color: var(--bc-yellow-dark);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
}
.bc-flow-label {
    display: block;
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--bc-text);
}
.bc-flow-note {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.82rem;
    color: var(--bc-text-light);
}
.bc-flow-step--erp {
    background: #111;
    border-color: #111;
}
.bc-flow-step--erp .bc-flow-label {
    color: #fff;
}
.bc-flow-step--erp .bc-flow-note {
    color: var(--bc-yellow);
}
.bc-flow-step--link {
    background: rgba(230, 216, 0, 0.1);
    border-style: dashed;
    border-color: rgba(212, 201, 0, 0.6);
    box-shadow: none;
}
.bc-flow-step--app {
    background: var(--bc-yellow);
    border-color: var(--bc-yellow);
}
@media (max-width: 900px) {
    .bc-presentation-layout {
        grid-template-columns: 1fr;
    }
    .bc-flow {
        max-width: 22rem;
        margin: 0 auto;
        width: 100%;
    }
}

/* =========================================================
   SITUATIONS
   ========================================================= */
.bc-situations {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.bc-situation {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    background: rgba(230, 216, 0, 0.08);
    border-radius: 10px;
    padding: 1.15rem 1.25rem;
}
.bc-situation-mark {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    margin-top: 0.45rem;
    border-radius: 50%;
    background: var(--bc-yellow-dark);
}
.bc-situation p {
    margin: 0;
    line-height: 1.55;
    font-size: 0.95rem;
    color: var(--bc-text);
}
@media (max-width: 1000px) {
    .bc-situations {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 680px) {
    .bc-situations {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   NOS APPLICATIONS — composition asymétrique
   ========================================================= */
.bc-services > p {
    line-height: 1.65;
    color: var(--bc-text);
    /*max-width: 48rem;*/
    margin-bottom: 1rem;
}
.bc-apps {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-areas:
        "saisie saisie saisie mobile mobile suivi"
        "saisie saisie saisie automa automa inter"
        "metier metier metier metier metier inter";
    gap: 1.5rem;
}
.bc-app--saisie     { grid-area: saisie; }
.bc-app--mobile     { grid-area: mobile; }
.bc-app--suivi      { grid-area: suivi; }
.bc-app--auto       { grid-area: automa; }
.bc-app--interfaces { grid-area: inter; }
.bc-app--metier     { grid-area: metier; }

.bc-app {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 2rem 1.75rem;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}
.bc-app--saisie {
    background: linear-gradient(180deg, #ffffff, rgba(230, 216, 0, 0.06));
    border: 1px solid rgba(230, 216, 0, 0.4);
    box-shadow: 0 15px 40px rgba(230, 216, 0, 0.18);
    display: flex;
    flex-direction: column;
}
.bc-number {
    position: absolute;
    top: 0.4rem;
    right: 1.1rem;
    font-size: 5rem;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.05);
    line-height: 1;
    pointer-events: none;
}
.bc-app--saisie .bc-number {
    font-size: 8rem;
    color: rgba(230, 216, 0, 0.18);
}
.bc-app--saisie .bc-app-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.bc-app-figure {
    position: relative;
    flex: 1;            /* prend l'espace libre */
    min-height: 0;      /* autorise la figure à rétrécir */
    margin: 1.5rem 0 0;
    border-radius: 8px;
    overflow: hidden;
}
.bc-app-figure img {
    position: absolute; /* sort l'image du calcul de hauteur */
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;  /* remplit sans déformer, recadre si besoin */
    object-position: center;
}
.bc-app-inner {
    position: relative;
    z-index: 1;
}
.bc-app h3 {
    font-size: 1.2rem;
    margin-bottom: 0.85rem;
    max-width: 20rem;
}
.bc-app p {
    line-height: 1.6;
    color: var(--bc-text);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}
.bc-app ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}
.bc-app li {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 0.55rem;
    font-size: 0.93rem;
}
.bc-app li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--bc-yellow-dark);
}
.bc-app a {
    color: #000;
    text-decoration: underline;
    text-decoration-color: var(--bc-yellow);
    text-decoration-thickness: 2px;
}
@media (max-width: 1000px) {
    .bc-apps {
        grid-template-columns: repeat(2, 1fr);
        grid-template-areas:
            "saisie saisie"
            "mobile suivi"
            "automa inter"
            "metier metier";
    }
    .bc-app-figure {
        flex: none;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}
@media (max-width: 680px) {
    .bc-apps {
        grid-template-columns: 1fr;
        grid-template-areas:
            "saisie"
            "mobile"
            "suivi"
            "automa"
            "inter"
            "metier";
    }
}

/* =========================================================
   ERP
   ========================================================= */
.bc-erp-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.bc-erp-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.6rem 1.5rem;
    border-top: 4px solid var(--bc-yellow);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}
.bc-erp-card h3 {
    font-size: 1.05rem;
    line-height: 1.35;
    margin-bottom: 0.7rem;
}
.bc-erp-card p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--bc-text-light);
    margin: 0;
}
.bc-erp-card a {
    color: #000;
    text-decoration: underline;
    text-decoration-color: var(--bc-yellow);
}
.bc-erp-card--other {
    background: rgba(230, 216, 0, 0.08);
    border-top-color: rgba(212, 201, 0, 0.5);
    border-top-style: dashed;
    box-shadow: none;
}
.bc-erp-note {
    margin-top: 2rem;
    padding: 1.2rem 1.4rem;
    border-left: 3px solid var(--bc-yellow);
    background: #f5f5f5;
    border-radius: 0 8px 8px 0;
    font-size: 0.93rem;
    line-height: 1.6;
    color: var(--bc-text-light);
    max-width: 52rem;
}
@media (max-width: 1000px) {
    .bc-erp-list {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 680px) {
    .bc-erp-list {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   MÉTHODE — progression en escalier
   ========================================================= */
.bc-method {
    background: #f5f5f5;
    max-width: none;
    padding-left: 2rem;
    padding-right: 2rem;
}
.bc-method > h2,
.bc-method > p {
    max-width: 75rem;
    margin-left: auto;
    margin-right: auto;
}
.bc-method > p {
    color: var(--bc-text-light);
    margin-bottom: 3rem;
    line-height: 1.6;
}
.bc-method-steps {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 75rem;
    display: flex;
    gap: 1.5rem;
}
.bc-method-step {
    position: relative;
    flex: 1;
    background: #fff;
    border-radius: 12px;
    padding: 2rem 1.4rem 1.6rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}
.bc-method-step:nth-child(even) {
    transform: translateY(1.75rem);
}
.bc-method-step .bc-number {
    position: static;
    display: block;
    font-size: 2.75rem;
    color: var(--bc-yellow-dark);
    opacity: 0.35;
    margin-bottom: 0.25rem;
}
.bc-method-step h3 {
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
}
.bc-method-step p {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--bc-text-light);
    margin-bottom: 0.6rem;
}
@media (max-width: 1000px) {
    .bc-method-steps {
        flex-direction: column;
    }
    .bc-method-step:nth-child(even) {
        transform: none;
    }
}

/* =========================================================
   ÉCHANGES DE DONNÉES
   ========================================================= */
.bc-exchange {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.bc-exchange-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.8rem 1.6rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}
.bc-exchange-arrow {
    display: inline-block;
    background: rgba(230, 216, 0, 0.18);
    color: #000;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 5px 12px;
    border-radius: 6px;
    margin-bottom: 1rem;
}
.bc-exchange-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
}
.bc-exchange-card p {
    font-size: 0.93rem;
    line-height: 1.6;
    color: var(--bc-text-light);
    margin: 0;
}
@media (max-width: 1000px) {
    .bc-exchange {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   FAQ — accordéon natif
   ========================================================= */
.bc-faq-list {
    max-width: 48rem;
}
.bc-faq .faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1.2rem 0;
}
.bc-faq .faq-item summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.bc-faq .faq-item summary::-webkit-details-marker {
    display: none;
}
.bc-faq .faq-item summary::after {
    content: "+";
    flex-shrink: 0;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--bc-yellow-dark);
}
.bc-faq .faq-item[open] summary::after {
    content: "–";
}
.bc-faq .faq-item p {
    margin-top: 0.9rem;
    line-height: 1.6;
    color: var(--bc-text);
}

/* =========================================================
   SECTION FINALE
   ========================================================= */
.bc-target {
    position: relative;
    background: #000;
    color: #fff;
    max-width: none;
    padding: 5rem 2rem;
    overflow: hidden;
}
.bc-target > * {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}
.bc-target h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    text-align: center;
}
.bc-target p {
    line-height: 1.6;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
}
.bc-target strong {
    color: var(--bc-yellow);
}
.bc-lead {
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    margin: 1.5rem auto;
}
.bc-target-shape {
    position: absolute;
    width: 34rem;
    height: 34rem;
    border-radius: 50%;
    border: 1px solid rgba(230, 216, 0, 0.15);
    top: -12rem;
    right: -10rem;
    z-index: 0;
    max-width: none;
    margin: 0;
}
@media (max-width: 700px) {
    .bc-lead {
        font-size: 1.5rem;
    }
}

/* =========================================================
   CTA FINAL
   ========================================================= */
.bc-contact {
    text-align: center;
    padding-top: 5rem;
    padding-bottom: 6rem;
}
.bc-contact p {
    color: var(--bc-text-light);
    line-height: 1.6;
    max-width: 34rem;
    margin: 0 auto 1.25rem;
}
.bc-contact .cta {
    display: inline-block;
    padding: 14px 32px;
    background: var(--bc-yellow);
    color: #000;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}
.bc-contact .cta:hover {
    background: var(--bc-yellow-dark);
    transform: translateY(-2px);
}
.bc-contact a:not(.cta) {
    color: #000;
    text-decoration: underline;
    text-decoration-color: var(--bc-yellow);
}

/* =========================================================
   RESPONSIVE GLOBAL
   ========================================================= */
@media (max-width: 600px) {
    .bc-intro,
    .bc-presentation,
    .bc-situations-section,
    .bc-services,
    .bc-erp-section,
    .bc-method,
    .bc-exchange-section,
    .bc-faq,
    .bc-target,
    .bc-contact {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    .bc-presentation p {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bc-contact .cta,
    .bc-hero-btn.services-btn {
        transition: none;
    }
}
