/* --- Composants complémentaires des pages professionnelles (organismes de formation) ---
   S'appuie sur les variables de style.css ; à charger après lui. */

main.b2b {
    max-width: 960px;
    /* Texte secondaire plus foncé que dans style.css, pour la lisibilité */
    --text-light: #475569;
    color: #1e293b;
}

.b2b .faq-content p {
    color: #1e293b;
}

.b2b section {
    margin: 48px 0;
}

.b2b h2 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.b2b .section-intro {
    color: var(--text-light);
    margin: 0 0 24px;
    max-width: 680px;
}

/* En-tête de page */
.b2b-hero {
    background: var(--bg-card);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px 36px;
    position: relative;
    overflow: hidden;
}

.b2b-hero::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(#002395 0 33%, #ffffff 33% 66%, #ED2939 66%);
}

.b2b-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #002395;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    padding: 4px 12px;
    margin-bottom: 16px;
}

.b2b-hero h1,
.b2b-hero h2 {
    font-size: 2rem;
    line-height: 1.2;
    color: #002395;
    font-weight: 800;
    margin-bottom: 12px;
}

.b2b-hero p {
    font-size: 1.05rem;
    color: #1e293b;
    max-width: 640px;
    margin: 0 0 24px;
}

.b2b-hero p.b2b-preuve {
    font-size: 0.9rem;
    color: #475569;
    max-width: none;
    margin: 20px 0 0;
}

.b2b-preuve a {
    color: var(--primary);
}

.b2b-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.b2b-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 2px solid var(--primary);
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.b2b-btn:hover { transform: translateY(-1px); }

.b2b-btn--plein {
    background: var(--primary);
    color: #ffffff;
}

.b2b-btn--plein:hover { background: #1d4ed8; border-color: #1d4ed8; }

.b2b-btn--contour {
    background: transparent;
    color: var(--primary);
}

.b2b-btn--contour:hover { background: #eff6ff; }

/* Chiffres clés */
.b2b-chiffres {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 28px;
}

.b2b-chiffre {
    border-top: 3px solid #002395;
    padding-top: 10px;
}

.b2b-chiffre strong {
    display: block;
    font-size: 1.6rem;
    color: #002395;
    font-weight: 800;
    line-height: 1.1;
}

.b2b-chiffre span {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Grilles de cartes */
.b2b-grille {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.b2b-grille--2 { grid-template-columns: repeat(2, 1fr); }

.b2b-carte {
    background: var(--bg-card);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
}

.b2b-carte h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    color: var(--text-main);
}

.b2b-carte p {
    margin: 0;
    color: #1e293b;
    font-size: 0.95rem;
}

.b2b-carte .b2b-icone {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #eff6ff;
    color: #002395;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.b2b-parcours strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #002395;
    line-height: 1;
    margin: 6px 0 4px;
}

.b2b-niveau {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    background: #002395;
    border-radius: 6px;
    padding: 2px 8px;
}

/* Liste à coches */
.b2b-coches {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.b2b-coches li {
    position: relative;
    padding-left: 30px;
    color: #1e293b;
}

.b2b-coches li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Titre du site dans l'en-tête : un <p> ici, le <h1> de la page est le titre de l'offre */
.site-title .site-title-texte {
    font-size: 2.0rem;
    color: #002395;
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

/* Schéma de la méthode */
.b2b-methode-titre {
    margin: 32px 0 12px;
    color: #002395;
}
.b2b-methode {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 10px 14px;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
}
.b2b-methode > .m-entree,
.b2b-methode > .m-sortie,
.b2b-methode > .m-fleche {
    grid-column: 2;
}
/* Placement explicite (sinon la grille décale les encadrés latéraux) */
.b2b-methode > :nth-child(1)  { grid-row: 1; }
.b2b-methode > :nth-child(2)  { grid-row: 2; }
.b2b-methode > :nth-child(3)  { grid-row: 3; grid-column: 1; }
.b2b-methode > :nth-child(4)  { grid-row: 3; grid-column: 2; }
.b2b-methode > :nth-child(5)  { grid-row: 3; grid-column: 3; }
.b2b-methode > :nth-child(6)  { grid-row: 4; }
.b2b-methode > :nth-child(7)  { grid-row: 5; grid-column: 1; }
.b2b-methode > :nth-child(8)  { grid-row: 5; grid-column: 2; }
.b2b-methode > :nth-child(9)  { grid-row: 5; grid-column: 3; }
.b2b-methode > :nth-child(10) { grid-row: 6; }
.b2b-methode > :nth-child(11) { grid-row: 7; }
.m-entree, .m-sortie {
    text-align: center;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 600;
    color: #1e293b;
    background: #eef2ff;
}
.m-sortie { background: #ecfdf5; }
.m-entree small, .m-sortie small {
    display: block;
    font-weight: 400;
    color: #475569;
    font-size: 0.85rem;
}
.m-etiquette {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #475569;
    margin-bottom: 2px;
}
.m-boite {
    border: 2px solid #002395;
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    color: #002395;
    background: #f8faff;
}
.m-boite--humaine { border-color: #059669; color: #065f46; background: #f0fdf4; }
.m-puces {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}
.m-puces li {
    font-size: 0.82rem;
    color: #1e293b;
    background: #ffffff;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    padding: 3px 10px;
}
.m-cote {
    position: relative;
    font-size: 0.88rem;
    color: #1e293b;
    border: 1px dashed #94a3b8;
    border-radius: 10px;
    padding: 10px 12px;
}
.m-gauche { padding-right: 34px; }
.m-droite { padding-left: 34px; }
.m-lien {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    font-weight: 700;
    color: #002395;
}
.m-gauche .m-lien { right: 8px; }
.m-droite .m-lien { left: 8px; }
.m-v { display: none; }
.m-fleche {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #002395;
    line-height: 1.2;
}
.m-avec-texte span {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
}

/* Téléchargements de l'échantillon */
.b2b-telechargements {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.b2b-fichier {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    text-decoration: none;
    color: var(--text-main);
    transition: border-color 0.2s, transform 0.2s;
}

.b2b-fichier:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.b2b-fichier .format {
    flex: none;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #ffffff;
    background: #002395;
    border-radius: 6px;
    padding: 6px 8px;
}

.b2b-fichier small {
    display: block;
    color: var(--text-light);
    font-size: 0.8rem;
}

/* Tarifs */
.b2b-tarifs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    align-items: stretch;
}

.b2b-tarif {
    background: var(--bg-card);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
}

.b2b-tarif--avant {
    border: 2px solid var(--primary);
    position: relative;
}


.b2b-tarif h3 {
    margin: 0 0 4px;
    font-size: 1rem;
}

.b2b-tarif .pour {
    font-size: 0.85rem;
    color: var(--text-light);
    min-height: 2.6em;
}

.b2b-tarif .prix {
    font-size: 1.8rem;
    font-weight: 800;
    color: #002395;
    margin: 12px 0 0;
}

.b2b-tarif .prix small {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
}

.b2b-tarif .renouvellement {
    font-size: 0.85rem;
    color: #1e293b;
    margin: 4px 0 0;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
}

.b2b-tarifs--appel {
    grid-template-columns: 3fr 2fr;
}

.b2b-tarif .prix small.des {
    font-size: 0.85rem;
    margin-bottom: 2px;
}


.b2b-note {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 14px;
}

/* Étapes */
.b2b-etapes {
    list-style: none;
    counter-reset: etape;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.b2b-etapes li {
    counter-increment: etape;
    background: var(--bg-card);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 14px;
    font-size: 0.9rem;
    color: #1e293b;
}

.b2b-etapes li::before {
    content: counter(etape);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #002395;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 10px;
}

.b2b-etapes strong {
    display: block;
    color: var(--text-main);
    margin-bottom: 2px;
}

/* Bandeau d'appel final */
.b2b-appel {
    background: #002395;
    color: #ffffff;
    border-radius: var(--radius);
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.b2b-appel h2 { color: #ffffff; margin: 0 0 4px; }

.b2b-appel p { margin: 0; color: #dbeafe; }

.b2b-appel .b2b-btn--plein {
    background: #ffffff;
    color: #002395;
    border-color: #ffffff;
}

.b2b-appel .b2b-btn--plein:hover { background: #eff6ff; }

/* Texte juridique (conditions générales) */
.b2b-juridique {
    background: var(--bg-card);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
    color: #1e293b;
}

.b2b-juridique h3 {
    color: #002395;
    font-size: 1.05rem;
    margin: 24px 0 6px;
}

.b2b-juridique h3:first-of-type { margin-top: 0; }

.b2b-encadre {
    background: #eff6ff;
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    padding: 14px 18px;
    margin: 0 0 24px;
}

.b2b-encadre--alerte {
    background: #fef2f2;
    border-left-color: #ED2939;
    margin-top: 24px;
}

/* Formulaire de demande de devis */
.b2b-form {
    background: var(--bg-card);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
    margin: 24px 0 48px;
}

.b2b-form fieldset {
    border: none;
    padding: 0;
    margin: 0 0 28px;
    min-width: 0;
}

.b2b-form legend {
    font-size: 1.05rem;
    font-weight: 700;
    color: #002395;
    padding: 0;
    margin-bottom: 14px;
}

.b2b-ligne {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.b2b-champ {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
    min-width: 0;
}

.b2b-libelle {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

.b2b-libelle small {
    font-weight: 400;
    color: var(--text-light);
}

.b2b-form input[type="text"],
.b2b-form input[type="email"],
.b2b-form input[type="tel"],
.b2b-form select,
.b2b-form textarea {
    width: 100%;
    box-sizing: border-box;
    font: inherit;
    font-size: 0.95rem;
    color: var(--text-main);
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 11px 12px;
}

.b2b-form input:focus,
.b2b-form select:focus,
.b2b-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px #dbeafe;
}

.b2b-form textarea { resize: vertical; }

.b2b-choix {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.b2b-choix label,
.b2b-case {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    color: #1e293b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
}

.b2b-case {
    border-radius: 10px;
    align-self: flex-start;
}

.b2b-choix input,
.b2b-case input {
    accent-color: var(--primary);
    margin: 0;
}

.b2b-erreur {
    font-size: 0.85rem;
    color: #b91c1c;
}

.b2b-form button {
    cursor: pointer;
    font-family: inherit;
}

.b2b-pot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Adaptation mobile */
@media (max-width: 860px) {
    .b2b-tarifs { grid-template-columns: repeat(2, 1fr); }
    .b2b-methode {
        grid-template-columns: 1fr;
        padding: 14px;
    }
    .b2b-methode > * {
        grid-column: 1 !important;
        grid-row: auto !important;
    }
    .m-vide { display: none; }
    .m-gauche, .m-droite { padding: 10px 12px 30px; text-align: center; }
    .m-droite { padding: 30px 12px 10px; }
    .m-lien { top: auto; transform: none; left: 50% !important; right: auto !important; margin-left: -0.4em; }
    .m-gauche .m-lien { bottom: 2px; }
    .m-droite .m-lien { top: 2px; }
    .m-h { display: none; }
    .m-v { display: inline; }
    .b2b-tarifs--appel { grid-template-columns: 1fr; }
    .b2b-etapes { grid-template-columns: 1fr; }
    .b2b-chiffres { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .b2b-hero { padding: 28px 22px; }
    .b2b-hero h1, .b2b-hero h2 { font-size: 1.5rem; }
    .b2b-grille,
    .b2b-grille--2,
    .b2b-telechargements,
    .b2b-tarifs { grid-template-columns: 1fr; }
    .b2b-tarif .pour { min-height: 0; }
    .b2b-juridique { padding: 22px; }
    .b2b-appel { padding: 24px; }
    .b2b-form { padding: 22px; }
    .b2b-ligne { grid-template-columns: 1fr; gap: 0; }
}
