/* =========================================================================
   Charte du site HRLICENSE — couleurs, typographie et composants
   ========================================================================= */

/* Inter (licence SIL OFL), hébergée sur le site : la CSP n'autorise que nos propres polices */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-latin-wght-normal-XNcuA7u.woff2") format('woff2');
}

:root {
    --ink: #0f1b2d;
    --muted: #5b6b82;
    --line: #e3e9f2;
    --soft: #f4f7fc;
    --navy-950: #0b1f3f;
    --navy: #1f4a87;
    --blue: #2f6fdb;
    --sky: #3d8bfd;
    --success: #16a34a;
    --radius: 16px;
    --shadow-sm: 0 1px 2px rgba(15, 27, 45, .05), 0 1px 3px rgba(15, 27, 45, .06);
    --shadow-lg: 0 24px 48px -20px rgba(15, 27, 45, .25);
    --header-h: 72px;

    /* Bootstrap */
    --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --bs-body-color: var(--ink);
    --bs-body-color-rgb: 15, 27, 45;
    --bs-secondary-color: var(--muted);
    --bs-primary: #1f4a87;
    --bs-primary-rgb: 31, 74, 135;
    --bs-link-color: #1f4a87;
    --bs-link-color-rgb: 31, 74, 135;
    --bs-link-hover-color: #163764;
    --bs-link-hover-color-rgb: 22, 55, 100;
    --bs-border-color: var(--line);
    --bs-border-radius: .625rem;
    --bs-border-radius-lg: 1rem;
}

html {
    scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-feature-settings: 'cv11', 'ss01';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

main {
    flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
}

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

.icon {
    width: 1.15em;
    height: 1.15em;
    vertical-align: -0.2em;
    flex-shrink: 0;
}

/* --- Boutons ------------------------------------------------------------ */
.btn {
    --bs-btn-font-weight: 600;
    --bs-btn-border-radius: .625rem;
    --bs-btn-padding-x: 1.1rem;
    --bs-btn-padding-y: .6rem;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}

.btn-lg {
    --bs-btn-padding-x: 1.4rem;
    --bs-btn-padding-y: .8rem;
    --bs-btn-font-size: 1rem;
    --bs-btn-border-radius: .75rem;
}

.btn-primary {
    --bs-btn-bg: var(--navy);
    --bs-btn-border-color: var(--navy);
    --bs-btn-hover-bg: #163764;
    --bs-btn-hover-border-color: #163764;
    --bs-btn-active-bg: #102a4d;
    --bs-btn-active-border-color: #102a4d;
    --bs-btn-disabled-bg: var(--navy);
    --bs-btn-disabled-border-color: var(--navy);
    box-shadow: 0 6px 16px -6px rgba(31, 74, 135, .55);
}

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

.btn-outline-primary {
    --bs-btn-color: var(--navy);
    --bs-btn-border-color: rgba(31, 74, 135, .35);
    --bs-btn-hover-bg: var(--navy);
    --bs-btn-hover-border-color: var(--navy);
    --bs-btn-active-bg: var(--navy);
    --bs-btn-active-border-color: var(--navy);
}

.btn-light {
    --bs-btn-color: var(--navy);
    --bs-btn-bg: #fff;
    --bs-btn-border-color: #fff;
    --bs-btn-hover-color: var(--navy);
    --bs-btn-hover-bg: #eaf2ff;
    --bs-btn-hover-border-color: #eaf2ff;
    box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45);
}

.btn-ghost-light {
    --bs-btn-color: #fff;
    --bs-btn-border-color: rgba(255, 255, 255, .35);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: rgba(255, 255, 255, .1);
    --bs-btn-hover-border-color: rgba(255, 255, 255, .6);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: rgba(255, 255, 255, .15);
}

/* --- Formulaires, cartes, alertes --------------------------------------- */
.form-label {
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: .4rem;
}

.form-control,
.form-select {
    border-color: var(--line);
    border-radius: .625rem;
    padding: .7rem .9rem;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: var(--sky);
    box-shadow: 0 0 0 4px rgba(61, 139, 253, .15);
}

.form-check-input:checked {
    background-color: var(--navy);
    border-color: var(--navy);
}

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

.card {
    border-color: var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.card-surface {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.alert {
    border-radius: .75rem;
}

.note {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    color: var(--muted);
    font-size: .92rem;
    background: var(--soft);
    padding: .9rem 1rem;
    border-radius: .75rem;
}

.note .icon {
    color: var(--blue);
    margin-top: .15rem;
}

/* --- En-tête ------------------------------------------------------------ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid rgba(227, 233, 242, .8);
}

.site-header .navbar {
    min-height: var(--header-h);
}

/* Logo HRLICENSE : emblème + nom (couleurs reprises du logo de la société) */
.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
}

.brand-lockup img {
    width: 44px;
    height: 44px;
}

.brand-name {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: .01em;
    color: #0c2249;
}

.brand-name b {
    font-weight: 800;
    color: #1d5fae;
}

.brand-lockup.is-dark .brand-name {
    color: #fff;
}

.brand-lockup.is-dark .brand-name b {
    color: #8ec5ff;
}

.site-header .nav-link,
.header-actions .btn {
    white-space: nowrap;
}

.site-header .nav-link {
    color: var(--muted);
    font-weight: 500;
    padding: .45rem .9rem !important;
    border-radius: 999px;
}

.site-header .nav-link:hover {
    color: var(--ink);
    background: var(--soft);
}

.site-header .nav-link.active {
    color: var(--navy);
    background: rgba(31, 74, 135, .08);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem 0;
}

.lang-switch {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
}

.lang-switch a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .75rem;
    font-weight: 600;
    padding: .3rem .6rem;
    border-radius: 999px;
    color: var(--muted);
    text-decoration: none;
}

.lang-switch a:hover {
    color: var(--ink);
}

.lang-switch a.active {
    background: var(--navy);
    color: #fff;
}

/* Drapeau de langue (sélecteur du site et des pages de connexion) */
.flag {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(15, 27, 45, .12);
}

/* --- Bandeaux ----------------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 5rem 0 5.5rem;
    background:
        radial-gradient(1100px 560px at 90% -15%, rgba(61, 139, 253, .55), transparent 60%),
        radial-gradient(700px 480px at -10% 115%, rgba(56, 189, 248, .22), transparent 60%),
        linear-gradient(160deg, var(--navy-950), #163a70 60%, var(--navy));
}

/* Quadrillage discret en fond */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
    mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
    pointer-events: none;
}

.hero > .container {
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .35rem .85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .01em;
}

.hero-badge .icon {
    color: #9cc8ff;
}

.hero-title {
    font-size: clamp(2.2rem, 4.6vw, 3.6rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.035em;
    margin: 1.25rem 0 1.1rem;
    color: #fff;
}

.hero-highlight {
    display: block;
    background: linear-gradient(90deg, #a9d0ff, #67e8f9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    font-size: 1.15rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, .8);
    max-width: 36rem;
    margin-bottom: 2rem;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.5rem;
    margin: 0;
    font-size: .9rem;
    color: rgba(255, 255, 255, .82);
}

.hero-trust li {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.hero-trust .icon {
    color: #9cc8ff;
}

.page-hero {
    padding: 4.5rem 0 3.5rem;
    background:
        radial-gradient(900px 320px at 50% -40%, rgba(61, 139, 253, .16), transparent 70%),
        linear-gradient(#fff, #fff);
}

.page-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: .75rem;
}

/* --- Illustration du logiciel ------------------------------------------- */
.app-mockup {
    background: #fff;
    color: var(--ink);
    border-radius: 18px;
    overflow: hidden;
    font-size: .8rem;
    max-width: 560px;
    margin-left: auto;
    box-shadow: 0 40px 80px -24px rgba(3, 15, 40, .65), 0 0 0 1px rgba(255, 255, 255, .08);
    transform: perspective(1600px) rotateY(-7deg) rotateX(3deg);
}

.app-mockup-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: .6rem .9rem;
    background: #f1f4f9;
    border-bottom: 1px solid var(--line);
}

.app-mockup-bar > span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff5f57;
}

.app-mockup-bar > span:nth-child(2) { background: #febc2e; }
.app-mockup-bar > span:nth-child(3) { background: #28c840; }

.app-mockup-url {
    flex: 1;
    max-width: 260px;
    margin-left: .75rem;
    padding: .15rem .75rem;
    border-radius: 6px;
    background: #fff;
    color: var(--muted);
    font-size: .7rem;
}

.app-mockup-body {
    display: grid;
    grid-template-columns: 56px 1fr;
    min-height: 330px;
}

.app-mockup-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .8rem;
    padding: 1rem 0;
    background: #0f2a52;
}

.app-mockup-nav span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: rgba(255, 255, 255, .55);
}

.app-mockup-nav span.active {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.app-mockup-logo {
    margin-bottom: .25rem;
}

.app-mockup-main {
    display: grid;
    gap: .8rem;
    padding: 1.1rem 1.25rem;
}

.app-mockup-title {
    font-weight: 700;
    font-size: .95rem;
}

.app-mockup-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .6rem;
}

.app-mockup-stats > div,
.app-mockup-chart {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: .6rem .75rem;
}

.app-mockup small {
    display: block;
    color: var(--muted);
    font-size: .65rem;
}

.app-mockup-stats strong {
    display: block;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.app-mockup-stats em {
    font-style: normal;
    font-size: .65rem;
    color: var(--muted);
}

.app-mockup-stats em.up {
    color: var(--success);
}

.app-mockup-chart .bars {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 70px;
    margin-top: .4rem;
}

.app-mockup-chart .bars span {
    flex: 1;
    border-radius: 4px 4px 2px 2px;
    background: linear-gradient(var(--sky), var(--navy));
    opacity: .85;
}

.app-mockup-chart .bars span:nth-child(1) { height: 42%; }
.app-mockup-chart .bars span:nth-child(2) { height: 55%; }
.app-mockup-chart .bars span:nth-child(3) { height: 48%; }
.app-mockup-chart .bars span:nth-child(4) { height: 63%; }
.app-mockup-chart .bars span:nth-child(5) { height: 58%; }
.app-mockup-chart .bars span:nth-child(6) { height: 72%; }
.app-mockup-chart .bars span:nth-child(7) { height: 68%; }
.app-mockup-chart .bars span:nth-child(8) { height: 80%; }
.app-mockup-chart .bars span:nth-child(9) { height: 76%; }
.app-mockup-chart .bars span:nth-child(10) { height: 88%; }
.app-mockup-chart .bars span:nth-child(11) { height: 84%; }
.app-mockup-chart .bars span:nth-child(12) { height: 94%; opacity: 1; }

.app-mockup-list .row-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .45rem 0;
    border-top: 1px solid var(--line);
}

.app-mockup-list .avatar {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e8f0fe;
    color: var(--navy);
    font-weight: 700;
    font-size: .62rem;
}

.app-mockup-list .who {
    flex: 1;
}

.app-mockup-list .who b {
    display: block;
    font-size: .75rem;
}

.app-mockup-list .pill {
    font-size: .62rem;
    font-weight: 600;
    padding: .15rem .5rem;
    border-radius: 999px;
}

.app-mockup-list .pill.ok { background: #dcfce7; color: #166534; }
.app-mockup-list .pill.leave { background: #fef3c7; color: #92400e; }

/* --- Sections ----------------------------------------------------------- */
.section {
    padding: 5.5rem 0;
}

.section-soft {
    background: var(--soft);
}

.section-head {
    margin-bottom: 3rem;
}

.eyebrow {
    display: inline-block;
    margin-bottom: .75rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--blue);
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: .75rem;
}

.section-lead {
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 40rem;
    margin: 0 auto;
}

.feature-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(31, 74, 135, .22);
    box-shadow: var(--shadow-lg);
}

.feature-card h3 {
    margin: 1.1rem 0 .5rem;
}

.feature-card p {
    color: var(--muted);
    line-height: 1.6;
}

.feature-icon {
    display: inline-grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 12px;
    color: var(--navy);
    background: linear-gradient(135deg, rgba(61, 139, 253, .16), rgba(31, 74, 135, .08));
}

.feature-icon .icon {
    width: 1.5rem;
    height: 1.5rem;
}

.feature-icon.sm {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
}

.feature-icon.sm .icon {
    width: 1.1rem;
    height: 1.1rem;
}

/* --- Plans -------------------------------------------------------------- */
.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 2rem;
    transition: box-shadow .2s ease, transform .2s ease;
}

.plan-card:hover {
    box-shadow: var(--shadow-lg);
}

.plan-card.highlighted {
    border-color: transparent;
    box-shadow: 0 0 0 2px var(--navy), 0 30px 60px -25px rgba(31, 74, 135, .45);
}

.plan-ribbon {
    position: absolute;
    top: -.8rem;
    left: 2rem;
    padding: .3rem .8rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--navy), var(--sky));
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.plan-name {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: .02em;
    margin: 0;
}

.plan-tagline {
    color: var(--muted);
    margin: .3rem 0 1.25rem;
    min-height: 3em;
}

.plan-from {
    margin-bottom: 1rem;
}

.plan-from small {
    display: block;
    color: var(--muted);
    font-size: .8rem;
}

.plan-from small.plan-from-duration {
    display: inline;
    margin-left: .35rem;
    font-size: .9rem;
}

/* Prix mis en avant : « EUR » en petit, partie entière en grand, centimes en exposant */
.price-display {
    display: inline-flex;
    align-items: flex-start;
    line-height: 1;
    color: var(--ink);
    white-space: nowrap;
}

.price-lg {
    font-size: 3.2rem;
}

.price-md {
    font-size: 2.1rem;
}

.price-currency {
    align-self: center;
    margin: .2em .35em 0 0;
    font-size: .36em;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--muted);
}

.price-integer {
    font-weight: 800;
    letter-spacing: -0.04em;
}

.price-fraction {
    top: 0;
    margin: .12em 0 0 .04em;
    font-size: .42em;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
}

.plan-facts li,
.plan-features li {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    padding: .4rem 0;
    color: #334155;
    font-size: .93rem;
}

.plan-facts {
    margin-bottom: 1.5rem;
}

.plan-facts .icon {
    color: var(--blue);
    margin-top: .15rem;
}

.plan-features li + li {
    border-top: 1px dashed var(--line);
}

.plan-features .icon {
    color: var(--success);
    margin-top: .2rem;
}

.duration-switch {
    display: grid;
    grid-auto-columns: 1fr;
    grid-auto-flow: column;
    gap: 2px;
    padding: 4px;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    background: var(--soft);
}

.duration-switch label {
    margin: 0;
    padding: .5rem .25rem;
    border-radius: 9px;
    text-align: center;
    font-size: .85rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

.duration-switch label:hover {
    color: var(--ink);
}

.duration-switch .btn-check:checked + label {
    background: #fff;
    color: var(--navy);
    box-shadow: 0 1px 3px rgba(15, 27, 45, .12);
}

.duration-switch .btn-check:focus-visible + label {
    outline: 2px solid var(--sky);
    outline-offset: 1px;
}

.plan-price-block {
    margin-bottom: 1.5rem;
}

.plan-price {
    line-height: 1;
}

.plan-price-sub {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem .9rem;
    margin-top: .55rem;
    font-size: .85rem;
    color: var(--muted);
}

.plan-price-sub [hidden] {
    display: none;
}

.plan-employees {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 600;
    margin-bottom: .5rem;
}

.plan-employees .icon {
    color: var(--blue);
}

.plans-reassurance {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem 2rem;
    margin: 2.75rem 0 0;
    font-size: .9rem;
    color: var(--muted);
}

.plans-reassurance li {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.plans-reassurance .icon {
    color: var(--blue);
}

.compare-wrap {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.compare-table {
    --bs-table-bg: transparent;
}

.compare-table th,
.compare-table td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    border-color: var(--line);
}

.compare-table thead th {
    background: #f8fafd;
    font-size: .8rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--muted);
}

.compare-table tbody th {
    font-weight: 500;
}

.compare-table tr:last-child > * {
    border-bottom: 0;
}

.compare-table .is-highlighted {
    background: rgba(61, 139, 253, .06);
}

.compare-table thead .is-highlighted {
    color: var(--navy);
}

.compare-table .yes {
    color: var(--success);
}

.compare-table .no {
    color: #cbd5e1;
}

/* --- Étapes (frise) ----------------------------------------------------- */
.steps-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 0;
}

.steps-timeline li {
    position: relative;
    text-align: center;
    padding: 0 .5rem;
}

.steps-timeline li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 2rem;
    left: calc(50% + 2.75rem);
    right: calc(-50% + 2.75rem);
    border-top: 2px dashed #c9d6ea;
}

.step-badge {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: 1.1rem;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    color: var(--navy);
}

.step-badge .icon {
    width: 1.6rem;
    height: 1.6rem;
}

.step-badge b {
    position: absolute;
    top: -.5rem;
    right: -.5rem;
    display: grid;
    place-items: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-size: .75rem;
}

.steps-timeline p {
    color: var(--muted);
    font-size: .92rem;
    margin: 0;
}

/* --- FAQ ---------------------------------------------------------------- */
.faq {
    --bs-accordion-border-color: var(--line);
    --bs-accordion-border-radius: 14px;
    --bs-accordion-inner-border-radius: 13px;
    --bs-accordion-btn-focus-box-shadow: 0 0 0 4px rgba(61, 139, 253, .2);
    --bs-accordion-active-bg: var(--soft);
    --bs-accordion-active-color: var(--navy);
    --bs-accordion-btn-padding-y: 1.1rem;
}

.faq .accordion-item {
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}

.faq .accordion-item + .accordion-item {
    margin-top: .75rem;
}

.faq .accordion-button {
    font-weight: 600;
}

.faq .accordion-button:not(.collapsed) {
    box-shadow: none;
}

.faq .accordion-body {
    color: var(--muted);
    line-height: 1.65;
}

/* --- Appel à l'action --------------------------------------------------- */
.cta-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 3rem;
    border-radius: 24px;
    color: #fff;
    background:
        radial-gradient(600px 300px at 100% 0, rgba(61, 139, 253, .55), transparent 70%),
        linear-gradient(135deg, var(--navy-950), var(--navy));
}

.cta-band h2 {
    color: #fff;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: .4rem;
}

.cta-band p {
    color: rgba(255, 255, 255, .8);
}

/* --- Société, contact, pages légales ------------------------------------ */
.mission {
    padding: 2rem;
    border-radius: 18px;
    background: var(--soft);
    border-left: 4px solid var(--navy);
}

.mission p {
    color: #334155;
    font-size: 1.05rem;
    line-height: 1.7;
}

.company-card {
    top: calc(var(--header-h) + 1.5rem);
}

.company-details li {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    padding: .65rem 0;
}

.company-details li + li {
    border-top: 1px solid var(--line);
}

.company-details small {
    display: block;
    color: var(--muted);
    font-size: .75rem;
}

.check-list li {
    display: flex;
    gap: .75rem;
    padding: .85rem 0;
}

.check-list li + li {
    border-top: 1px solid var(--line);
}

.check-list .icon {
    color: var(--success);
    margin-top: .2rem;
}

.legal-content {
    max-width: 52rem;
}

.legal-content p,
.legal-content li {
    color: #334155;
    line-height: 1.7;
}

/* Titres saisis dans l'éditeur de l'admin */
.legal-content h1,
.legal-content h2 {
    font-size: 1.25rem;
    margin: 2rem 0 .75rem;
}

/* --- Commande (checkout) ------------------------------------------------ */
.price-option .form-check {
    padding: .65rem .75rem .65rem 2.25rem;
    border: 1px solid var(--line);
    border-radius: .75rem;
    margin-bottom: .5rem;
    transition: border-color .15s ease, background-color .15s ease;
}

.price-option .form-check:has(.form-check-input:checked) {
    border-color: var(--navy);
    background: rgba(31, 74, 135, .04);
}

.price-option fieldset legend {
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--muted);
}

.order-summary {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    margin-right: .5rem;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-size: .9rem;
}

/* Radio et libellé sur une seule ligne (le libellé occupe toute la largeur) */
.payment-option {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .9rem 1rem;
    border: 1px solid var(--line);
    border-radius: .75rem;
    margin-bottom: .5rem;
}

/* Le thème Bootstrap entoure le bouton radio d'un bloc .form-check avec ses propres marges */
.payment-option > .form-check {
    display: flex;
    margin: 0;
    padding: 0;
    min-height: 0;
}

.payment-option .form-check-input {
    float: none;
    flex-shrink: 0;
    margin: 0;
}

.payment-option .form-check-label {
    cursor: pointer;
}

.payment-logos-inline {
    display: inline-flex;
    flex-shrink: 0;
    gap: .25rem;
}

.payment-logos-inline img {
    border: 1px solid var(--line);
    border-radius: 5px;
}

.payment-option:has(.form-check-input:checked) {
    border-color: var(--navy);
    background: rgba(31, 74, 135, .04);
}

.payment-option.is-unavailable {
    opacity: .65;
}

/* Champ piège anti-robots : invisible pour les humains */
.hp-field {
    position: absolute !important;
    left: -10000px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.check {
    color: var(--success);
    font-weight: 700;
}

/* --- Suivi de commande -------------------------------------------------- */
.bank-card {
    border-left: 4px solid var(--navy);
}

.reference-box {
    font-family: var(--bs-font-monospace);
    font-size: 1.25rem;
    letter-spacing: .05em;
}

.tracking-steps li {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem .8rem;
    border-radius: .75rem;
    background: var(--soft);
    color: var(--muted);
}

.tracking-steps .step-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--line);
    font-size: .85rem;
}

.tracking-steps li.done {
    color: #146c43;
    background: #e8f5ee;
}

.tracking-steps li.done .step-dot {
    background: #198754;
    border-color: #198754;
    color: #fff;
}

.tracking-steps li.current {
    color: var(--navy);
    font-weight: 600;
    outline: 2px solid var(--navy);
}

/* --- Pied de page ------------------------------------------------------- */
.site-footer {
    background: var(--navy-950);
    color: rgba(255, 255, 255, .7);
    padding: 4.5rem 0 2rem;
}

.site-footer h6 {
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.site-footer a {
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer li {
    margin-bottom: .6rem;
    font-size: .92rem;
}

.footer-tagline {
    max-width: 22rem;
    font-size: .92rem;
    line-height: 1.6;
}

.footer-contact a {
    display: inline-flex;
    align-items: flex-start;
    gap: .6rem;
}

.footer-contact .icon {
    margin-top: .2rem;
}

.footer-contact .icon {
    color: #9cc8ff;
}

.payment-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}

.payment-logos img {
    height: 32px;
    width: auto;
    border-radius: 6px;
    background: #fff;
}

.payment-soon {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.payment-soon img {
    opacity: .55;
}

.payment-soon .soon {
    font-size: .7rem;
    padding: .15rem .5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.footer-legal {
    margin: 3rem 0 0;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .82rem;
    line-height: 1.8;
    text-align: center;
    color: rgba(255, 255, 255, .6);
}

.footer-legal + .footer-bottom {
    margin-top: 1.25rem;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .85rem;
}

.site-footer .social {
    display: flex;
    gap: .5rem;
}

.site-footer .social a {
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    transition: background-color .15s ease;
}

.site-footer .social a:hover {
    background: rgba(255, 255, 255, .18);
}

.site-footer .social svg {
    width: 1.05rem;
    height: 1.05rem;
    fill: #fff;
}

/* --- En-tête : menu replié sous 1200 px (navbar-expand-xl) --------------- */
@media (max-width: 1199.98px) {
    .site-header .navbar-collapse {
        padding-bottom: .75rem;
    }

    .header-actions {
        justify-content: space-between;
        border-top: 1px solid var(--line);
        margin-top: .5rem;
        padding-top: .75rem;
    }
}

/* Menu déplié mais étroit (1200 à 1400 px) : liens resserrés, drapeaux sans le code de langue */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .site-header .nav-link {
        padding: .45rem .6rem !important;
    }

    .header-actions {
        gap: .5rem;
    }

    .lang-switch .lang-code {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

/* --- Écrans moyens et petits -------------------------------------------- */
@media (max-width: 991.98px) {
    .hero {
        padding: 3.5rem 0 4rem;
    }

    .app-mockup {
        transform: none;
        margin: 0 auto;
    }

    .steps-timeline {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 2.5rem;
    }

    .steps-timeline li::after {
        display: none;
    }

    .section {
        padding: 4rem 0;
    }
}

@media (max-width: 575.98px) {
    /* Cartes compactes : icône à gauche, texte à droite */
    .feature-card {
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 1rem;
        padding: 1.25rem;
    }

    .feature-card .feature-icon {
        grid-row: span 2;
    }

    .feature-card h3 {
        margin: .2rem 0 .3rem;
    }

    .app-mockup-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .app-mockup-stats > div:nth-child(3) {
        display: none;
    }

    .steps-timeline {
        grid-template-columns: 1fr;
    }

    .cta-band,
    .card-surface,
    .plan-card {
        padding: 1.5rem;
    }

    .price-lg {
        font-size: 2.7rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
    }
}

/* --- Guidage vers une erreur du formulaire de commande ------------------ */
.needs-attention {
    border-radius: .625rem;
    animation: needs-attention 1.6s ease-out 1;
}

@keyframes needs-attention {
    0%, 30% { box-shadow: 0 0 0 .35rem rgba(220, 53, 69, .28); background-color: rgba(220, 53, 69, .06); }
    100% { box-shadow: 0 0 0 .35rem rgba(220, 53, 69, 0); background-color: transparent; }
}

@media (prefers-reduced-motion: reduce) {
    .needs-attention {
        animation: none;
        box-shadow: 0 0 0 .2rem rgba(220, 53, 69, .28);
    }
}
