/**
 * Page /entreprises/ - Bureau des Entreprises.
 * Refonte : une colonne lisible (.site-container, sans padding latéral modern-theme), peu de boîtes.
 */

.entreprises-bde-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-light, #f8fafc);
}

.bde-main {
    flex: 1 1 auto;
    padding-bottom: 3rem;
}

/* Largeur alignée sur le gabarit site (--site-content-max-width). Lisibilité : blocs internes (lead, cartes). */
.entreprises-bde-page .site-container {
    max-width: var(--site-content-max-width);
    margin-left: auto;
    margin-right: auto;
}

.bde-page-lead {
    margin: 0 auto 1.75rem;
    max-width: 58rem;
    padding: 0;
    text-align: center;
    border: 1px solid rgba(98, 123, 234, 0.2);
    border-radius: 20px;
    background:
        radial-gradient(120% 160% at 0% 0%, rgba(102, 126, 234, 0.14) 0%, rgba(102, 126, 234, 0) 55%),
        radial-gradient(120% 150% at 100% 100%, rgba(118, 75, 162, 0.1) 0%, rgba(118, 75, 162, 0) 62%),
        linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    box-shadow:
        0 16px 38px rgba(34, 49, 94, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    overflow: hidden;
    position: relative;
}

.bde-page-lead::before {
    content: "";
    display: block;
    height: 5px;
    background: var(--primary-gradient, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
}

.bde-page-lead__inner {
    margin: 0 auto;
    max-width: 44rem;
    padding: 1.9rem 1.5rem 1.9rem;
}

.bde-page-lead__hook {
    display: inline-flex;
    align-items: center;
    margin: 0 0 1rem;
    padding: 0.38rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(102, 126, 234, 0.28);
    background: rgba(102, 126, 234, 0.08);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #4d63d8;
}

.bde-page-lead__text {
    margin: 0 auto;
    max-width: 52ch;
    font-size: clamp(1.1rem, 2.1vw, 1.24rem);
    line-height: 1.62;
    font-weight: 400;
    color: #445067;
    letter-spacing: -0.012em;
}

.bde-page-lead__text strong {
    font-weight: 800;
    color: #1f2b45;
}

.bde-page-lead__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.85rem 1.25rem;
    margin-top: 1.5rem;
    padding-top: 1.35rem;
    border-top: 1px solid rgba(102, 126, 234, 0.16);
}

.bde-page-lead__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.66rem 1.35rem;
    font-size: 0.93rem;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    border-radius: var(--radius-full, 50px);
    background: var(--primary-gradient, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    box-shadow: 0 8px 18px rgba(102, 126, 234, 0.3);
    transition: transform var(--transition-fast, 0.2s ease), box-shadow var(--transition-fast, 0.2s ease);
}

.bde-page-lead__cta::after {
    content: "→";
    font-weight: 800;
}

.bde-page-lead__cta:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover, 0 12px 40px rgba(102, 126, 234, 0.2));
}

.bde-page-lead__cta:focus-visible {
    outline: 2px solid var(--primary-blue, #667eea);
    outline-offset: 3px;
}

@media (max-width: 768px) {
    .bde-page-lead {
        border-radius: 16px;
    }

    .bde-page-lead__inner {
        padding: 1.5rem 1rem 1.4rem;
    }

    .bde-page-lead__hook {
        margin-bottom: 0.8rem;
    }

    .bde-page-lead__text {
        font-size: 1rem;
        line-height: 1.58;
    }

    .bde-page-lead__actions {
        margin-top: 1.2rem;
        padding-top: 1.05rem;
    }
}

/* Une seule grande image, pas de mosaïque */
.bde-editorial-photo {
    margin: 0 0 2.5rem;
    padding: 0;
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    border: 1px solid var(--border-color, #e2e8f0);
    background: var(--bg-white, #fff);
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.06));
}

.bde-editorial-photo__img {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(52vh, 420px);
    object-fit: cover;
    object-position: center 30%;
}

.bde-block {
    margin-bottom: 2.75rem;
}

.bde-block:last-child {
    margin-bottom: 0;
}

.bde-block__title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.35rem, 2.2vw, 1.65rem);
    font-weight: 800;
    color: var(--text-dark, #2d3748);
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-align: center;
}

.bde-block__intro {
    margin: 0 auto 1.25rem;
    max-width: 52ch;
    color: var(--text-light, #718096);
    font-size: 1rem;
    line-height: 1.55;
    text-align: center;
}

/* Services + compétences côte à côte (desktop) */
.bde-layout-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
    align-items: start;
    margin-bottom: 2.75rem;
}

.bde-layout-split > .bde-block {
    margin-bottom: 0;
    min-width: 0;
}

.bde-layout-split .bde-block__intro {
    max-width: none;
    padding: 0 0.25rem;
}

.bde-layout-split .bde-service-list,
.bde-layout-split .bde-skill-dl {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

@media (max-width: 960px) {
    .bde-layout-split {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .bde-layout-split > .bde-block:first-child {
        margin-bottom: 0;
    }
}

/* Services : icône colonne gauche, texte à droite (typo alignée sur .bde-skill-dl) */
.bde-service-list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: min(52rem, 100%);
    width: 100%;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-lg, 16px);
    background: var(--bg-white, #fff);
    overflow: hidden;
    font-family: inherit;
}

.bde-service-list__item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.1rem 1.25rem;
    padding: 1.25rem 1.35rem;
    border-bottom: 1px solid var(--border-light, #f0f0f0);
    text-align: left;
}

.bde-service-list__item:last-child {
    border-bottom: 0;
}

.bde-service-list__icon {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md, 12px);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.14), rgba(118, 75, 162, 0.1));
    color: var(--primary-blue, #667eea);
    font-size: 1.05rem;
}

.bde-service-list__body {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
}

/* Titres de ligne : même typo que .bde-skill-dl__term-label */
.bde-service-list__heading,
.bde-skill-dl__term-label {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.38;
    letter-spacing: -0.012em;
    color: var(--text-dark, #2d3748);
}

.bde-service-list__heading {
    margin: 0 0 0.4rem;
}

/* Corps de ligne : même typo que .bde-skill-dl dd */
.bde-service-list__text,
.bde-skill-dl dd {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-medium, #4a5568);
}

@media (max-width: 480px) {
    .bde-service-list__item {
        padding: 1.1rem 1rem;
        gap: 0.85rem 1rem;
    }

    .bde-service-list__icon {
        width: 2.4rem;
        height: 2.4rem;
        font-size: 0.95rem;
    }
}

/* Compétences : icône colonne gauche (comme .bde-service-list), titre + dd à droite */
.bde-skill-dl {
    margin: 0 auto;
    max-width: min(52rem, 100%);
    width: 100%;
    display: grid;
    gap: 0;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-lg, 16px);
    background: var(--bg-white, #fff);
    overflow: hidden;
    font-family: inherit;
}

.bde-skill-dl__row {
    display: grid;
    grid-template-columns: 2.75rem 1fr;
    column-gap: 1.1rem;
    row-gap: 0.4rem;
    align-items: start;
    padding: 1.25rem 1.35rem;
    border-bottom: 1px solid var(--border-light, #f0f0f0);
    text-align: left;
}

.bde-skill-dl__row:last-child {
    border-bottom: 0;
}

/* Les enfants du dt participent à la grille de la ligne (HTML dl valide) */
.bde-skill-dl__term {
    display: contents;
}

.bde-skill-dl__icon {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: start;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-md, 12px);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.14), rgba(118, 75, 162, 0.1));
    color: var(--primary-blue, #667eea);
    font-size: 1.05rem;
}

.bde-skill-dl__term-label {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
}

.bde-skill-dl dd {
    grid-column: 2;
    grid-row: 2;
    max-width: none;
}

@media (max-width: 480px) {
    .bde-skill-dl__row {
        grid-template-columns: 2.4rem 1fr;
        column-gap: 0.85rem;
        padding: 1.05rem 1rem;
    }

    .bde-skill-dl__icon {
        width: 2.4rem;
        height: 2.4rem;
        font-size: 0.95rem;
    }
}

/* Bandeaux documents / contact */
.bde-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-white, #fff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-lg, 16px);
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.05));
}

.bde-band--with-icon .bde-band__lead {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-width: 0;
    flex: 1 1 12rem;
}

.bde-band__icon {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md, 12px);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.16), rgba(118, 75, 162, 0.12));
    color: var(--primary-blue, #667eea);
    font-size: 1.2rem;
}

.bde-band__title {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark, #2d3748);
}

.bde-band__text p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-medium, #4a5568);
    line-height: 1.5;
}

.bde-band__meta {
    font-size: 0.9rem;
    color: var(--text-light, #718096);
}

.bde-band__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bde-band .btn-modern {
    padding: 0.6rem 1.2rem;
    font-size: 0.92rem;
    white-space: nowrap;
}

/* Réassurance : grille 50/50 (texte | liste) ; centrage via flex sur le parent */
.bde-block--reassurance {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
}

.bde-reassurance-layout {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.75rem 2.5rem;
    align-items: start;
    width: min(76rem, 100%);
    max-width: 100%;
    min-width: 0;
}

.bde-reassurance-head .bde-block__title {
    text-align: left;
}

.bde-reassurance-head .bde-reassurance-intro {
    margin: 0.45rem 0 0;
    max-width: none;
    text-align: left;
}

.bde-block--reassurance .bde-reassurance-layout .bde-trust-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
}

.bde-trust-list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: min(72rem, 100%);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.bde-block--reassurance .bde-trust-list__item {
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    flex-wrap: nowrap;
}

.bde-trust-list__item {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem 0.65rem;
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--text-medium, #4a5568);
    text-align: center;
}

.bde-trust-list__icon {
    flex-shrink: 0;
    color: #16a34a;
    font-size: 0.85rem;
    margin-top: 0.2rem;
}

.bde-block--reassurance .bde-trust-list__label {
    flex: 1 1 auto;
    max-width: none;
    text-align: left;
}

.bde-trust-list__label {
    flex: 1 1 auto;
    max-width: min(68ch, 100%);
    text-align: center;
}

@media (max-width: 860px) {
    .bde-reassurance-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .bde-reassurance-head .bde-block__title,
    .bde-reassurance-head .bde-reassurance-intro {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .bde-reassurance-head .bde-reassurance-intro {
        max-width: 52ch;
    }

    .bde-block--reassurance .bde-reassurance-layout .bde-trust-list {
        align-items: center;
    }

    .bde-block--reassurance .bde-trust-list__item {
        justify-content: center;
        align-items: center;
        text-align: center;
        flex-wrap: wrap;
    }

    .bde-block--reassurance .bde-trust-list__label {
        text-align: center;
        max-width: min(68ch, 100%);
    }

    .bde-trust-list__icon {
        margin-top: 0;
    }
}

/* Formulaire : largeur confortable sur desktop (grille 2 colonnes + cases à cocher) */
.bde-form-frame {
    max-width: min(68rem, 100%);
    width: 100%;
    margin: 0 auto;
    padding: 1.35rem 1.5rem;
    background: var(--bg-white, #fff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-lg, 16px);
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.05));
}

.bde-form-frame .contact-form {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.bde-form-frame .contact-form h3 {
    margin: 0 0 1rem;
    color: var(--text-dark, #2d3748);
    font-size: 1.1rem;
    font-weight: 700;
}

.bde-form-frame form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1rem;
}

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

.bde-form-frame .form-label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--text-light, #718096);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.bde-form-frame .form-control {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-sm, 8px);
    background: var(--bg-light, #f8fafc);
    color: var(--text-dark, #2d3748);
    padding: 0.6rem 0.75rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.bde-form-frame .form-control:focus {
    outline: none;
    border-color: var(--primary-blue, #667eea);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    background: var(--bg-white, #fff);
}

.bde-form-frame textarea.form-control {
    min-height: 110px;
    resize: vertical;
}

.bde-form-frame .checkbox-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.bde-form-frame .checkbox-label {
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-sm, 8px);
    padding: 0.5rem 0.65rem;
    background: var(--bg-white, #fff);
    display: flex;
    align-items: center;
    gap: 0.45rem;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.bde-form-frame .checkbox-label:hover {
    border-color: rgba(102, 126, 234, 0.35);
    background: var(--bg-lighter, #f1f3f5);
}

.bde-form-frame .checkbox-label span {
    font-size: 0.82rem;
    color: var(--text-medium, #4a5568);
}

.bde-form-frame .btn {
    min-height: 44px;
    border-radius: var(--radius-md, 12px);
    background: var(--primary-gradient, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    color: #fff;
    border: 0;
    width: 100%;
    max-width: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.22);
    transition: transform var(--transition-fast, 0.2s ease), box-shadow var(--transition-fast, 0.2s ease);
}

.bde-form-frame .btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover, 0 12px 40px rgba(102, 126, 234, 0.2));
}

.bde-form-frame .form-message {
    border-radius: var(--radius-sm, 8px);
    font-size: 0.88rem;
    padding: 0.65rem 0.9rem;
}

@media (max-width: 768px) {
    .bde-form-frame form,
    .bde-form-frame .checkbox-group {
        grid-template-columns: 1fr;
    }

    .bde-band {
        flex-direction: column;
        align-items: stretch;
    }

    .bde-band .btn-modern {
        width: 100%;
        justify-content: center;
    }

    .bde-band__actions {
        width: 100%;
    }

    .bde-band__actions .btn-modern {
        flex: 1;
        justify-content: center;
    }
}
