/* ==========================================================================
   Direction artistique « pro » (accueil) — chargé APRÈS css/app.css.
   Principes : surfaces blanches arrondies (22 px), bordures 1 px très claires, ombres douces, pastels,
   les photos vivent DANS des cadres produit (fenêtre, carte, bannière) et ne sont jamais posées « à plat ».
   ========================================================================== */
:root {
    --pro-bg: #f5f7fb;
    --pro-line: #e4e7f0;
    --pro-r: 8px;
    --pro-shadow: 0 1px 2px rgba(20, 20, 58, .05), 0 22px 44px -22px rgba(31, 31, 72, .28);
    --pro-shadow-lg: 0 2px 4px rgba(20, 20, 58, .06), 0 40px 80px -30px rgba(31, 31, 72, .45);
    --pastel-blue: #dcebff; --pastel-lav: #e8e3fb; --pastel-peach: #fde5d3; --pastel-mint: #d7f3e9; --pastel-rose: #fbdfe7;
    --orange: #f5a524; --orange-ink: #1f1f48;
}
.pro-wrap { width: 100%; max-width: 68rem; margin-inline: auto; padding-inline: 1.25rem; }
.pro-section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.pro-center { text-align: center; margin-inline: auto; }
.pro-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem; border-radius: 8px;
    background: #fff; border: 1px solid var(--pro-line); color: var(--color-navy-700, #26264f);
    font-size: .8125rem; font-weight: 600; box-shadow: none;
}
.pro-eyebrow::before { content: ""; width: .5rem; height: .5rem; border-radius: 8px; background: var(--color-cyan-400, #2cabdd); box-shadow: none; }
.pro-title { font-size: clamp(2.1rem, 5.2vw, 3.75rem); line-height: 1.04; letter-spacing: -.03em; font-weight: 700; color: var(--color-navy-800, #1f1f48); text-wrap: balance; }
.pro-h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.1; letter-spacing: -.025em; font-weight: 700; color: var(--color-navy-800, #1f1f48); text-wrap: balance; }
.pro-lead { font-size: clamp(1rem, 1.6vw, 1.175rem); line-height: 1.6; color: #5a5c7e; max-width: 40rem; }

/* ----- Chips de statut ----- */
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .22rem .65rem; border-radius: 8px; font-size: .75rem; font-weight: 600; line-height: 1.25; white-space: nowrap; }
.chip i { width: .45rem; height: .45rem; border-radius: 8px; background: currentColor; }
.chip-cyan { background: #d9f1fb; color: #0b5c80; } .chip-green { background: #d1fadf; color: #166534; }
.chip-amber { background: #ffeccb; color: #8f5009; } .chip-red { background: #fee4e2; color: #8f1d14; } .chip-lav { background: #e8e3fb; color: #3d2f94; }
.chip-live i { animation: pro-pulse 1.8s ease-out infinite; }
@keyframes pro-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ============================ HERO ============================ */
.pro-hero {
    position: relative; overflow: hidden; isolation: isolate;
    background:
        radial-gradient(900px 420px at 10% -10%, #d6effa 0, transparent 62%),
        radial-gradient(760px 400px at 96% 4%, #ffeccb 0, transparent 58%),
        #f7f9fc;
    padding-top: clamp(2.75rem, 6vw, 5rem);
}
.pro-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
    background-image: linear-gradient(#1f1f4809 1px, transparent 1px), linear-gradient(90deg, #1f1f4809 1px, transparent 1px);
    background-size: 56px 56px; -webkit-mask-image: radial-gradient(70% 80% at 50% 25%, #000 30%, transparent 75%); mask-image: radial-gradient(70% 80% at 50% 25%, #000 30%, transparent 75%);
}
.pro-routes { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.pro-routes svg { width: 100%; height: 100%; }
.pro-routes path.route { fill: none; stroke: #2cabdd; stroke-opacity: .35; stroke-width: 2; stroke-dasharray: 3 7; stroke-linecap: round; }
.pro-hero-copy { text-align: center; max-width: 47rem; margin-inline: auto; }
.pro-hero-copy .pro-title { margin-top: 1.25rem; }
.pro-hero-copy .pro-lead { margin: 1.25rem auto 0; }

.pro-search { margin: 2rem auto 0; max-width: 40rem; }
.pro-search-box {
    display: flex; align-items: center; gap: .5rem; padding: .5rem .5rem .5rem 1.1rem; background: #fff;
    border: 1px solid var(--pro-line); border-radius: 8px; box-shadow: none;
    transition: box-shadow .2s, border-color .2s;
}
.pro-search-box:focus-within { border-color: var(--color-cyan-400, #2cabdd); box-shadow: none; }
.pro-search-box .icon { width: 1.25rem; height: 1.25rem; color: #8a8cab; flex: none; }
.pro-search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 1.05rem; letter-spacing: .02em; color: var(--color-navy-800, #1f1f48); padding: .55rem .25rem; }
.pro-search-box input::placeholder { color: #9a9cb8; letter-spacing: 0; }
.pro-search-box .btn { border-radius: 8px; height: 3rem; padding-inline: 1.4rem; font-weight: 600; flex: none; }
.pro-search-hint { margin-top: .85rem; font-size: .875rem; color: #6b6d8f; }
.pro-points { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.4rem; margin-top: 1.1rem; font-size: .875rem; color: #55577a; }
.pro-points span { display: inline-flex; align-items: center; gap: .4rem; }
.pro-points .icon { color: #15803d; width: 1rem; height: 1rem; }

/* ----- Fenêtre « produit » ----- */
.pro-showcase { margin-top: clamp(2.5rem, 6vw, 4.25rem); position: relative; }
.pro-window {
    background: #fff; border: 1px solid var(--pro-line); border-radius: 8px; box-shadow: none; overflow: hidden;
    max-width: 62rem; margin-inline: auto;
}
.pro-win-bar { display: flex; align-items: center; gap: .45rem; padding: .7rem 1rem; background: #f6f7fb; border-bottom: 1px solid var(--pro-line); }
.pro-win-bar > i { width: .65rem; height: .65rem; border-radius: 8px; background: #d9dce8; }
.pro-win-bar > i:nth-child(1) { background: #ff6159; } .pro-win-bar > i:nth-child(2) { background: #ffbd2e; } .pro-win-bar > i:nth-child(3) { background: #28c940; }
.pro-url { margin-left: .75rem; flex: 1; max-width: 24rem; padding: .25rem .8rem; border-radius: 8px; background: #fff; border: 1px solid var(--pro-line); font-size: .75rem; color: #6b6d8f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pro-example { margin-left: auto; }
.pro-win-body { display: grid; grid-template-columns: minmax(0, 23rem) minmax(0, 1fr); }
.pro-panel { padding: 1.4rem 1.4rem 1.6rem; border-right: 1px solid var(--pro-line); display: flex; flex-direction: column; gap: 1.2rem; }
.pro-code-label { font-size: .75rem; color: #7a7c9c; }
.pro-code { font-size: 1.35rem; font-weight: 700; letter-spacing: .02em; color: var(--color-navy-800, #1f1f48); }
.pro-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }

.pro-stepper { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; padding-top: .15rem; }
.pro-stepper::before { content: ""; position: absolute; top: 1.05rem; left: 10%; right: 10%; height: 2px; background: var(--pro-line); }
.pro-stepper::after { content: ""; position: absolute; top: 1.05rem; left: 10%; width: 60%; height: 2px; background: linear-gradient(90deg, #22a559, #2cabdd); }
.pro-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .4rem; text-align: center; font-size: .6875rem; color: #7a7c9c; line-height: 1.2; }
.pro-step b { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 8px; background: #fff; border: 2px solid var(--pro-line); color: #9a9cb8; }
.pro-step b .icon { width: 1rem; height: 1rem; }
.pro-step.done b { background: #22a559; border-color: #22a559; color: #fff; }
.pro-step.now b { background: var(--color-cyan-400, #2cabdd); border-color: var(--color-cyan-400, #2cabdd); color: #fff; box-shadow: none; }
.pro-step.done, .pro-step.now { color: var(--color-navy-800, #1f1f48); font-weight: 600; }

.pro-carrier { display: flex; align-items: center; gap: .75rem; padding: .8rem; border: 1px solid var(--pro-line); border-radius: 8px; background: #fafbfe; }
.pro-avatar { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 8px; background: linear-gradient(135deg, #2cabdd, #1f1f48); color: #fff; font-weight: 700; font-size: .875rem; flex: none; }
.pro-carrier strong { display: block; font-size: .9rem; color: var(--color-navy-800, #1f1f48); }
.pro-carrier span.sub { font-size: .75rem; color: #7a7c9c; }
.pro-call { margin-left: auto; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 8px; background: #fff; border: 1px solid var(--pro-line); color: var(--color-navy-800, #1f1f48); flex: none; }
.pro-call .icon { width: 1rem; height: 1rem; }

.pro-progress { padding: .9rem .9rem 1rem; border: 1px solid var(--pro-line); border-radius: 8px; background: #fff; }
.pro-progress-top { display: flex; justify-content: space-between; font-size: .75rem; color: #6b6d8f; margin-bottom: .55rem; }
.pro-bar { position: relative; height: .5rem; border-radius: 8px; background: #edeff6; }
.pro-bar > span { position: absolute; inset: 0 auto 0 0; width: 62%; border-radius: 8px; background: linear-gradient(90deg, #f5a524, #ff8a1f); }
.pro-bar picture { position: absolute; left: 62%; bottom: .1rem; width: 4rem; transform: translateX(-62%); filter: drop-shadow(0 6px 6px rgba(20, 20, 58, .28)); }
.pro-bar picture img { width: 100%; height: auto; display: block; }
.pro-eta { margin-top: .6rem; font-size: .8125rem; color: var(--color-navy-800, #1f1f48); font-weight: 600; }

.pro-map { position: relative; min-height: 22rem; background: #dfe8f1; }
.pro-map picture, .pro-map img.cover { position: absolute; inset: 0; width: 100%; height: 100%; }
.pro-map img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; display: block; }
.pro-map::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 20, 58, .25) 0, transparent 30%, transparent 62%, rgba(20, 20, 58, .55) 100%); }
.glass {
    position: absolute; z-index: 2; display: flex; align-items: center; gap: .6rem; padding: .6rem .85rem; border-radius: 8px; color: #fff;
    background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
    box-shadow: none; font-size: .8125rem;
}
.glass strong { display: block; font-size: .9375rem; }
.glass small { opacity: .85; font-size: .75rem; }
.glass .icon { width: 1.25rem; height: 1.25rem; }
.pro-map .glass.tl { top: 1rem; left: 1rem; } .pro-map .glass.br { right: 1rem; bottom: 1rem; }
.pro-map .glass.bl { left: 1rem; bottom: 1rem; }

/* ============================ ÉTAPES ============================ */
.pro-steps { list-style: none; display: grid; gap: 1.25rem; padding: 0; margin: 2.75rem 0 0; grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: s; }
.pro-card { position: relative; background: #fff; border: 1px solid var(--pro-line); border-radius: 8px; padding: 1.6rem; box-shadow: none; }
.pro-step-card .num { position: absolute; top: 1.2rem; right: 1.4rem; font-size: 3.2rem; line-height: 1; font-weight: 800; letter-spacing: -.04em; color: #1f1f4810; }
.pro-ico { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 8px; margin-bottom: 1.1rem; }
.pro-ico .icon { width: 1.4rem; height: 1.4rem; }
.t-blue { background: var(--pastel-blue); color: #1d4f9f; } .t-peach { background: var(--pastel-peach); color: #a24a0f; }
.t-mint { background: var(--pastel-mint); color: #166534; } .t-lav { background: var(--pastel-lav); color: #4631a8; } .t-rose { background: var(--pastel-rose); color: #a3173f; }
.pro-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--color-navy-800, #1f1f48); letter-spacing: -.01em; }
.pro-card p { margin-top: .5rem; color: #5a5c7e; line-height: 1.6; font-size: .97rem; }

.pro-banner { position: relative; margin: 1.25rem 0 0; border-radius: 8px; overflow: hidden; min-height: 21rem; box-shadow: none; background: #d9e2ea; isolation: isolate; }
.pro-banner picture, .pro-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.pro-banner::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(20, 20, 58, .72) 0, rgba(20, 20, 58, .15) 55%, transparent 100%); }
.pro-banner figcaption { position: absolute; z-index: 2; left: clamp(1.25rem, 4vw, 2.75rem); bottom: clamp(1.25rem, 4vw, 2.5rem); max-width: 22rem; color: #fff; }
.pro-banner figcaption h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.pro-banner figcaption p { margin-top: .5rem; opacity: .9; font-size: .97rem; }
.pro-banner .glass { right: 1.25rem; top: 1.25rem; }

/* ============================ ENTREPRISES (section sombre) ============================ */
.pro-dark-wrap { padding-block: clamp(1rem, 3vw, 2rem) clamp(3rem, 6vw, 5rem); }
.pro-dark {
    position: relative; overflow: hidden; isolation: isolate; border-radius: 8px; color: #fff;
    background: radial-gradient(700px 360px at 85% 0, #3a3a8a55 0, transparent 60%), linear-gradient(160deg, #1f1f48 0, #14143a 100%);
    padding: clamp(1.75rem, 5vw, 4rem); display: grid; gap: clamp(2rem, 4vw, 3rem); grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center;
}
.pro-dark-bg { position: absolute; inset: 0; z-index: -1; opacity: .22; mix-blend-mode: luminosity; -webkit-mask-image: linear-gradient(270deg, #000 0, transparent 70%); mask-image: linear-gradient(270deg, #000 0, transparent 70%); }
.pro-dark-bg picture, .pro-dark-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pro-dark .pro-eyebrow { background: #ffffff14; border-color: #ffffff26; color: #fff; }
.pro-dark .pro-h2 { color: #fff; margin-top: 1.1rem; }
.pro-dark .pro-lead { color: #c8c9e6; margin-top: 1rem; }
.pro-feats { grid-column: 1 / -1; list-style: none; display: grid; gap: 1.4rem 1.6rem; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 2rem 0 0; margin: .5rem 0 0; border-top: 1px solid #ffffff1f; }
.pro-feats li { display: flex; gap: .8rem; }
.pro-feats .pro-ico { width: 2.6rem; height: 2.6rem; margin: 0; flex: none; background: #ffffff14; color: #fff; border: 1px solid #ffffff22; }
.pro-feats h3 { font-size: .97rem; font-weight: 600; color: #fff; }
.pro-feats p { margin-top: .2rem; font-size: .84rem; line-height: 1.5; color: #b6b8dc; }
.pro-dark .pro-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.pro-dark .btn[data-variant="outline"] { background: transparent; color: #fff; border-color: #ffffff40; }

.pro-dash { max-width: none; border-radius: 8px; transform: perspective(1400px) rotateY(-7deg) rotateX(2deg); transform-origin: 0% 50%; box-shadow: none; margin-right: -2.5rem; }
.pro-dash-body { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); }
.pro-side { display: flex; flex-direction: column; align-items: center; gap: .9rem; padding: 1rem 0; background: #fafbfe; border-right: 1px solid var(--pro-line); color: #8a8cab; }
.pro-side .icon { width: 1.15rem; height: 1.15rem; }
.pro-side .on { color: #fff; background: var(--color-navy-800, #1f1f48); width: 2.1rem; height: 2.1rem; border-radius: 8px; display: grid; place-items: center; }
.pro-dash-main { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 1rem; color: var(--color-navy-800, #1f1f48); }
.pro-dash-main h4 { font-size: 1rem; font-weight: 700; }
.pro-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.pro-kpi { padding: .7rem .8rem; border-radius: 8px; }
.pro-kpi small { display: block; font-size: .6875rem; color: #55577a; }
.pro-kpi strong { display: flex; align-items: baseline; gap: .4rem; font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em; }
.pro-kpi em { font-style: normal; font-size: .6875rem; font-weight: 600; color: #166534; }
.pro-table { width: 100%; border-collapse: collapse; font-size: .75rem; }
.pro-table th { text-align: left; font-weight: 500; color: #8a8cab; padding: .4rem .5rem; border-bottom: 1px solid var(--pro-line); }
.pro-table td { padding: .55rem .5rem; border-bottom: 1px solid #f0f1f7; white-space: nowrap; }
.pro-table td:first-child { font-weight: 600; }

/* ============================ BANDEAU CALCULATEUR ============================ */
.pro-cta {
    position: relative; overflow: hidden; isolation: isolate; border-radius: 8px; color: var(--color-navy-800, #1f1f48);
    background: linear-gradient(120deg, #f5a524 0, #ffb84a 55%, #ffc971 100%); padding: clamp(1.75rem, 5vw, 3.5rem);
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 2rem; box-shadow: none;
}
.pro-cta h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; }
.pro-cta p { margin-top: .8rem; font-size: 1.05rem; max-width: 30rem; color: #3a2a08; }
.pro-cta .pro-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.pro-cta .btn[data-variant="primary"], .pro-cta .btn-dark { background: var(--color-navy-800, #1f1f48); color: #fff; }
.pro-cta-img { position: absolute; inset: 0 0 0 46%; z-index: -1; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 38%); mask-image: linear-gradient(90deg, transparent 0, #000 38%); }
.pro-cta-img picture, .pro-cta-img img { width: 100%; height: 100%; object-fit: cover; display: block; mix-blend-mode: multiply; opacity: .9; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 980px) {
    .pro-dark { grid-template-columns: 1fr; } .pro-dash { margin-right: 0; transform: none; } .pro-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pro-cta { grid-template-columns: 1fr; } .pro-cta-img { inset: 0; opacity: .25; -webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 820px) {
    .pro-win-body { grid-template-columns: 1fr; }
    .pro-panel { border-right: 0; border-bottom: 1px solid var(--pro-line); }
    .pro-map { min-height: 15rem; }
    .pro-steps { grid-template-columns: 1fr; }
    .pro-feats { grid-template-columns: 1fr; }
    .pro-banner { min-height: 18rem; }
    .pro-url { display: none; } .pro-example { margin-left: auto; }
}
@media (max-width: 560px) {
    .pro-search-box { padding-left: .85rem; } .pro-search-box .btn { padding-inline: 1rem; }
    .pro-search-box .btn .label-long { display: none; }
    .pro-kpis { grid-template-columns: repeat(2, 1fr); } .pro-kpis .pro-kpi:nth-child(3) { display: none; }
    .pro-table th:nth-child(3), .pro-table td:nth-child(3) { display: none; }
    .pro-dash-body { grid-template-columns: 1fr; } .pro-side { display: none; }
}
@media (prefers-reduced-motion: reduce) { .chip-live i { animation: none; } .pro-dash { transform: none; } }

/* ============================ CONNEXION (formulaire unique) ============================ */
.pro-login-page { background: radial-gradient(800px 380px at 8% 0, #d6effa 0, transparent 60%), radial-gradient(700px 360px at 100% 10%, #ffeccb 0, transparent 58%), #f7f9fc; padding-block: clamp(2rem, 5vw, 4rem); min-height: 70vh; }
.pro-login { display: grid; grid-template-columns: minmax(0, 29rem) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.25rem); align-items: stretch; }
.pro-login-card { background: #fff; border: 1px solid var(--pro-line); border-radius: 8px; padding: clamp(1.5rem, 4vw, 2.4rem); box-shadow: none; }
.pro-login-card .pro-ico { margin-bottom: 1.1rem; }
.pro-login-visual { position: relative; overflow: hidden; border-radius: 8px; min-height: 30rem; background: #1f1f48; box-shadow: none; isolation: isolate; }
.pro-login-visual picture, .pro-login-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pro-login-visual::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(20, 20, 58, .15) 0, rgba(20, 20, 58, .15) 40%, rgba(20, 20, 58, .85) 100%); }
.pro-login-copy { position: absolute; z-index: 2; left: 1.75rem; right: 1.75rem; bottom: 1.75rem; color: #fff; }
.pro-login-copy h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.12; }
.pro-login-copy p { margin-top: .6rem; max-width: 26rem; opacity: .92; }
.pro-login-visual .glass.tl { top: 1.25rem; left: 1.25rem; } .pro-login-visual .glass.br { top: 1.25rem; right: 1.25rem; }
@media (max-width: 900px) { .pro-login { grid-template-columns: 1fr; } .pro-login-visual { display: none; } }

/* ============================ FREEMIUM ============================ */
.pro-free { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; padding: clamp(1.5rem, 4.5vw, 3.25rem);
    background: linear-gradient(135deg, #ecf8fd 0, #fff 55%, #fff8eb 100%); border: 1px solid var(--pro-line); border-radius: 8px; box-shadow: none; }
.pro-free-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.pro-free-list li { display: flex; align-items: center; gap: .9rem; padding: .95rem 1.1rem; background: #fff; border: 1px solid var(--pro-line); border-radius: 8px; font-weight: 600; color: var(--color-navy-800, #1f1f48); box-shadow: none; }
.pro-free-list .pro-ico { margin: 0; width: 2.6rem; height: 2.6rem; flex: none; }
@media (max-width: 820px) { .pro-free { grid-template-columns: 1fr; } }

/* Ajustements de rythme vertical et de fenêtre tableau de bord */
.pro-dash { margin-right: 0; }
.pro-dark-wrap { padding-bottom: 0; }
#gratuit.pro-section { padding-top: clamp(2.5rem, 5vw, 4.5rem); padding-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.pro-free .pro-h2 { line-height: 1.12; }
.pro-free .pro-lead { margin-top: 1rem !important; }


/* ==========================================================================
   FLAT : aucune ombre, aucun dégradé, rayon 8 px. (Ces règles complètent/écrasent les précédentes.)
   ========================================================================== */
*, *::before, *::after { box-shadow: none !important; text-shadow: none !important; }
:focus-visible { outline: 2px solid var(--color-cyan-600, #0f739e) !important; outline-offset: 2px; }
.btn, .input, .card, .field input, .field select, .field textarea, dialog, .dialog, .accordion, .accordion details,
.pill, .chip, .badge, .photo-frame, .rounded-sm, .rounded-md, .rounded-lg, .rounded-xl, .rounded-2xl, .rounded-3xl { border-radius: 8px !important; }
.pro-window { border-radius: 8px 8px 0 0 !important; border: 1px solid #d5dae8; }
.pro-dash { border-radius: 8px !important; transform: none !important; margin-right: 0 !important; }
.pro-url, .pro-avatar, .pro-call, .pro-bar, .pro-bar > span, .pro-step b, .pro-eyebrow, .pro-search-box, .pro-search-box .btn, .glass { border-radius: 8px !important; }
.pro-search-box:focus-within { outline: 2px solid var(--color-cyan-600, #0f739e); outline-offset: 2px; border-color: var(--color-cyan-600, #0f739e); }
.pro-eyebrow::before { box-shadow: none !important; border-radius: 2px; }
.pro-step.now b { border-width: 3px; border-color: #0f739e; }
.chip-live i { animation: pro-pulse 1.6s ease-in-out infinite; }

/* Surfaces unies (pas de dégradés) */
.pro-hero { background: #f2f6fb; }
.pro-hero::before { -webkit-mask-image: none; mask-image: none; opacity: .7; }
.pro-dark { background: #1f1f48; }
.pro-dark-bg { opacity: .16; -webkit-mask-image: none; mask-image: none; }
.pro-cta { background: #f5a524; }
.pro-cta-img { inset: 0 0 0 52%; -webkit-mask-image: none; mask-image: none; border-radius: 0 8px 8px 0; overflow: hidden; }
.pro-cta-img picture, .pro-cta-img img { mix-blend-mode: normal; opacity: 1; }
.pro-free { background: #f2f6fb; }
.pro-login-page { background: #f2f6fb; }
.pro-avatar { background: #1f1f48; }
.pro-bar > span { background: #f5a524; }
.pro-stepper::after { background: #22a559; }
.pro-map::after, .pro-banner::after, .pro-login-visual::after { background: rgba(20, 20, 58, .38); }
.pro-banner::after { background: rgba(20, 20, 58, .5); }
.pro-login-visual::after { background: rgba(20, 20, 58, .55); }
.glass { background: rgba(20, 20, 58, .78); border: 1px solid rgba(255, 255, 255, .22); -webkit-backdrop-filter: none; backdrop-filter: none; }
.pro-login-copy h2, .pro-banner figcaption h3 { color: #fff; }
.pro-card, .pro-login-card, .pro-free-list li, .pro-panel, .pro-carrier, .pro-progress { box-shadow: none !important; }
@media (max-width: 980px) { .pro-cta-img { inset: 0; opacity: .22; border-radius: 8px; } }

/* Classes utilitaires (remplacent les styles en ligne, interdits par la CSP) */
.pro-narrow { max-width: 40rem; }
.mt-s { margin-top: .9rem; } .mt-m { margin-top: 1rem; }
.k-blue { background: var(--pastel-blue); } .k-mint { background: var(--pastel-mint); } .k-peach { background: var(--pastel-peach); }
.pro-actions.row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.pro-cta-sec { padding-bottom: clamp(3rem, 6vw, 5rem); }
.pro-white-band { background: #fff; border-top: 1px solid var(--pro-line); }
.pro-faq-list { max-width: 48rem; margin: 2.5rem auto 0; }
.pro-contact-band { background: var(--pro-bg); }
.pro-title-sm { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.pro-lead-c { margin: .8rem auto 1.6rem; }
.pro-login-h1 { font-size: clamp(1.7rem, 3.2vw, 2.2rem); }
.pro-login-lead { margin-top: .7rem; font-size: 1rem; }
.pro-login-form { margin-top: 1.6rem; }
.pro-center .pro-lead, .pro-lead.pro-center { margin-left: auto; margin-right: auto; }

/* Connexion simplifiée : une seule carte centrée */
.pro-login-solo { display: flex; justify-content: center; }
.pro-login-solo .pro-login-card { width: 100%; max-width: 26rem; }
.pro-login-solo .pro-login-h1 { margin: 0; }
.pro-login-page { min-height: 60vh; }

/* ---------- Fenêtre de suivi : finition (fermée, photo recadrée, repère de progression plat) ---------- */
.pro-hero { padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.pro-window { border-radius: 8px !important; border: 1px solid #d5dae8; background: #fff; overflow: hidden; }
.pro-win-body { align-items: stretch; }
.pro-map { min-height: 24rem; }
.pro-map img { object-position: 4% 58% !important; }
.pro-panel { justify-content: space-between; }
.pro-bar { height: .5rem; background: #e6e9f3; border-radius: 8px; overflow: visible; }
.pro-bar > span { border-radius: 8px; }
.pro-bar .pro-bar-pin {
    position: absolute; left: 62%; top: 50%; width: 2rem; height: 2rem; transform: translate(-50%, -50%);
    display: grid; place-items: center; border-radius: 8px; background: #1f1f48; color: #fff; border: 2px solid #fff;
}
.pro-bar .pro-bar-pin .icon { width: 1rem; height: 1rem; }
.pro-progress-top { margin-bottom: .9rem; }
.pro-progress { padding-bottom: 1rem; }
@media (max-width: 820px) { .pro-map { min-height: 15rem; } .pro-map img { object-position: 10% 55% !important; } }

/* Connexion : carte transparente, sans bordure */
.pro-login-card, .pro-login-solo .pro-login-card { background: transparent !important; border: 0 !important; padding: 0 !important; }
.pro-login-solo .pro-login-card { max-width: 24rem; }
.pro-login-card .btn[data-variant="outline"] { background: #fff; }

/* Pied de page : dégradé de bas en haut (marine -> fond de page) */
.site-footer{background:linear-gradient(to bottom,color-mix(in srgb,#1f1f48 0%,var(--ft,#fff)) 0%,color-mix(in srgb,#1f1f48 4%,var(--ft,#fff)) 10%,color-mix(in srgb,#1f1f48 16%,var(--ft,#fff)) 20%,color-mix(in srgb,#1f1f48 32%,var(--ft,#fff)) 30%,color-mix(in srgb,#1f1f48 50%,var(--ft,#fff)) 40%,color-mix(in srgb,#1f1f48 68%,var(--ft,#fff)) 50%,color-mix(in srgb,#1f1f48 84%,var(--ft,#fff)) 60%,color-mix(in srgb,#1f1f48 96%,var(--ft,#fff)) 70%,color-mix(in srgb,#1f1f48 100%,var(--ft,#fff)) 80%,#1f1f48 100%)!important;padding-top:64px}
.site-footer .road{border-bottom-color:rgba(255,255,255,.28)}

/* Pages intérieures : en-tête, carte de suivi, bandeau « expédier » (à plat, 8 px) */
.pro-head { background: #f2f6fb; padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 3rem); margin-bottom: 2rem; }
.pro-head .pro-lead { margin-top: .9rem; max-width: 40rem; }
.pro-head-search { text-align: center; margin-bottom: 0; }
.pro-head-search .pro-lead { margin-inline: auto; }
.pro-head-search .pro-search { margin: 1.75rem auto 0; max-width: 40rem; }
.pro-track-alert { max-width: 40rem; margin: 1.5rem auto 0; text-align: left; }
.pro-track-link { margin-top: 1rem; font-size: .95rem; }
.pro-track-visual { padding-top: 2rem; }
.pro-mapfig { position: relative; margin: 0; border-radius: 8px; overflow: hidden; border: 1px solid #d5dae8; min-height: 22rem; background: #eef0f8; isolation: isolate; }
.pro-mapfig picture, .pro-mapfig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pro-mapfig .glass.tl { top: 1.25rem; left: 1.25rem; right: auto; }
.pro-mapfig .glass.br { right: 1.25rem; bottom: 1.25rem; top: auto; }
.pro-ship-sec { padding-top: 2rem; padding-bottom: 4rem; }
.pro-ship { display: flex; align-items: center; gap: 1.25rem; padding: 1.5rem 1.75rem; border: 1px solid #d5dae8; border-radius: 8px; background: #fff; }
.pro-ship > div { flex: 1; min-width: 0; }
.pro-ship h2 { font-size: 1.25rem; font-weight: 700; color: #1f1f48; }
.pro-ship p { margin-top: .25rem; color: #5b5d80; }
@media (max-width: 720px) { .pro-ship { flex-direction: column; align-items: flex-start; } .pro-mapfig { min-height: 16rem; } }
.pro-map::after { display: none; }
.pro-map img { object-position: 50% 50% !important; }

/* Pied de page : le dégradé part de la couleur de fond de la page qui précède */
main:has(.pro-login-page) ~ .site-footer, main:has(.pro-head-search):not(:has(.pro-ship)) ~ .site-footer { --ft: #f2f6fb; }
.pro-login-page { padding-bottom: 5rem; }
.pro-login-form + p[role="separator"], .pro-login-card p[role="separator"] { margin: 1.5rem 0; }
.pro-login-card p[role="separator"] .bg-border { background: #d5dae8; }

/* Accueil : vidéo de carte en arrière-plan (voile clair pour la lisibilité) */
.pro-hero { overflow: hidden; padding-block: clamp(4rem, 9vw, 7rem); }
.pro-hero-bg { position: absolute; inset: 0; z-index: 0; background: #eef0f8; }
.pro-hero-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pro-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(242,246,251,.9) 0, rgba(242,246,251,.74) 55%, rgba(242,246,251,.94) 100%); }
.pro-hero > .pro-wrap { position: relative; z-index: 1; }
.pro-hero { background: linear-gradient(180deg, #f2f6fb 0, #f2f6fb 55%, #fff 100%) !important; }
.pro-hero-bg { -webkit-mask-image: linear-gradient(180deg, #000 0, #000 55%, rgba(0,0,0,.6) 75%, transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 55%, rgba(0,0,0,.6) 75%, transparent 100%); }
.pro-hero-bg::after { background: linear-gradient(180deg, rgba(242,246,251,.9) 0, rgba(242,246,251,.7) 50%, rgba(242,246,251,.55) 100%); }

.pro-ship .btn { background: #1f1f48; color: #fff; border-color: #1f1f48; }
.pro-ship .btn:hover { background: #2b2b63; }

/* Champ de recherche : aucun anneau de focus (seule la bordure du bloc s'assombrit légèrement) */
.pro-search-box input, .pro-search-box input:focus, .pro-search-box input:focus-visible { outline: 0 !important; box-shadow: none !important; border-color: transparent !important; background: transparent !important; }
.pro-search-box:focus-within { outline: 0 !important; box-shadow: none !important; border-color: #b9c0d8; }

/* En-têtes de pages intérieures : dégradé qui se fond dans le blanc */
.pro-head { background: radial-gradient(700px 300px at 10% 0, #dcecf9 0, transparent 70%), radial-gradient(600px 280px at 95% 10%, #fdeccd 0, transparent 70%), linear-gradient(180deg, #f2f6fb 0, #f2f6fb 45%, #fff 100%) !important; padding-bottom: clamp(3rem, 7vw, 5rem); margin-bottom: 0; }

/* Annuaire des transitaires */
.pro-ship-head { text-align: center; margin-bottom: 1.5rem; }
.pro-ship-head h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; letter-spacing: -.02em; color: #1f1f48; }
.pro-ship-head p { margin-top: .4rem; color: #5b5d80; }
.pro-carriers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; }
.pro-carrier-card { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; border: 1px solid #d5dae8; border-radius: 8px; background: #fff; color: #1f1f48; text-decoration: none; transition: border-color .15s, background .15s; }
.pro-carrier-card:hover { border-color: #1f1f48; background: #f8f9fd; }
.pro-carrier-logo { position: relative; flex: none; width: 56px; height: 56px; border-radius: 8px; background: #eef0f8; overflow: hidden; display: grid; place-items: center; }
.pro-carrier-logo b { font-size: 1rem; color: #1f1f48; }
.pro-carrier-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.pro-carrier-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.pro-carrier-meta strong { font-size: 1rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pro-carrier-meta small { display: inline-flex; align-items: center; gap: .35rem; color: #5b5d80; font-size: .88rem; }
.pro-carrier-meta small .icon { width: 14px; height: 14px; }
.pro-carrier-go { flex: none; color: #5b5d80; } .pro-carrier-card:hover .pro-carrier-go { color: #1f1f48; }
.pro-ship-empty { text-align: center; }

/* Annuaire : liste verticale uniquement */
.pro-carriers { display: flex !important; flex-direction: column; gap: .6rem !important; max-width: 44rem; margin-inline: auto !important; }

/* Boutons : l'icône prend toujours la couleur du texte */
.btn .icon, .btn svg { color: inherit !important; stroke: currentColor; opacity: 1 !important; }
.pro-search-box .btn .icon { color: inherit !important; }

/* Voir plus + annuaire */
.pro-more { text-align: center; margin: 1.25rem 0 0; }
.pro-more-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: #1f1f48; text-decoration: none; border-bottom: 1px solid transparent; }
.pro-more-link:hover { border-bottom-color: #1f1f48; }
.pro-more-link .icon { width: 16px; height: 16px; color: inherit; }
.pro-dir { padding-bottom: 4rem; }
.pro-dir-bar { display: flex; flex-wrap: wrap; gap: .75rem; max-width: 44rem; margin: 0 auto 1.25rem; }
.pro-dir-field { display: flex; align-items: center; gap: .5rem; height: 48px; padding: 0 .9rem; background: #fff; border: 1px solid #d5dae8; border-radius: 8px; color: #5b5d80; }
.pro-dir-field input, .pro-dir-field select { border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important; height: 100%; width: 100%; font: inherit; color: #1f1f48; }
.pro-dir-search { flex: 1 1 14rem; }
.pro-dir-country { flex: 0 1 13rem; }
.pro-dir-bar .btn { height: 48px; }
.pro-dir-note { max-width: 44rem; margin: 0 auto 1rem; padding: .7rem 1rem; border-radius: 8px; background: #eef6ff; color: #1f1f48; font-size: .95rem; }
.pro-dir-note[data-tone="ok"] { background: #e8f7ee; } .pro-dir-note[data-tone="warn"] { background: #fff4e0; }
.pro-dir-empty { text-align: center; color: #5b5d80; }

/* FAQ : texte plus grand */
.pro-faq-list summary { font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 600; padding-block: 1.25rem; }
.pro-faq-list details p { font-size: 1.1rem; line-height: 1.65; padding-bottom: 1.25rem; }
.pro-faq-list summary .icon { width: 22px; height: 22px; }

.pro-dir-detect { width: 48px; padding: 0 !important; flex: none; }

.pro-pager { display: flex; justify-content: center; gap: .4rem; margin-top: 1.5rem; flex-wrap: wrap; }
.pro-page { min-width: 40px; height: 40px; padding: 0 .6rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #d5dae8; border-radius: 8px; background: #fff; color: #1f1f48; text-decoration: none; font-weight: 500; }
.pro-page:hover { border-color: #1f1f48; }
.pro-page.is-current { background: #1f1f48; border-color: #1f1f48; color: #fff; }

/* Case de consentement : sans bordure */
label:has(> input[type="checkbox"]) { border: 0 !important; padding-left: 0 !important; background: transparent !important; }

/* Zones de texte : pas de redimensionnement */
textarea, .textarea { resize: none !important; min-height: 9rem; }

/* Cartes transitaires : transitions de 0,2 s */
.pro-carrier-card { transition: border-color .2s ease, background-color .2s ease, transform .2s ease; }
.pro-carrier-go { transition: transform .2s ease, color .2s ease; }
.pro-carrier-card:hover .pro-carrier-go { transform: translateX(4px); }
.pro-more-link, .pro-more-link .icon { transition: border-color .2s ease, transform .2s ease; }
.pro-more-link:hover .icon { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .pro-carrier-card, .pro-carrier-go, .pro-more-link, .pro-more-link .icon { transition: none; } .pro-carrier-card:hover .pro-carrier-go, .pro-more-link:hover .icon { transform: none; } }

.pro-contact-visual { display: none; justify-content: center; }
.pro-contact-visual picture, .pro-contact-visual img { display: block; width: 260px; max-width: 100%; height: auto; background: transparent; }
@media (min-width: 768px) { .pro-contact-visual { display: flex; } }

/* Champs de formulaire : hauteur 40 px */
.input, input.input, select.select, .select { height: 40px !important; min-height: 40px; }

/* Contact : colonne de droite centrée (illustration + note) */
form#form_25240 ~ aside { align-self: center; justify-content: center; align-items: center; text-align: center; gap: 1.5rem; }
form#form_25240 ~ aside p { max-width: 22rem; font-size: .95rem; line-height: 1.6; }

.pro-contact-note { margin-top: 1.5rem; max-width: 36rem; color: #5b5d80; font-size: .95rem; line-height: 1.6; }
form#form_25240 ~ aside { align-self: start !important; justify-content: flex-start !important; }

/* Pied de page blanc */
.site-footer { background: #fff !important; padding-top: 2rem !important; color: #5b5d80 !important; border-top: 1px solid #e4e7f0; }
.site-footer .road { border-bottom: 1px solid #d5dae8 !important; }
.site-footer a { color: #1f1f48 !important; }
.site-footer a:hover { color: #1f1f48; text-decoration: underline; }
.site-footer p { color: #5b5d80 !important; border-top-color: #e4e7f0 !important; }
.site-footer p.border-t { border-top: 1px solid #e4e7f0 !important; }
.site-footer { border-top: 0 !important; }
main#contenu { border-bottom: 0 !important; }
.site-footer .road { border-bottom: 0 !important; }
.site-footer { padding-top: 0 !important; }

/* Fond #f2f6fc uniquement pour la page de connexion (page + pied de page) ; ailleurs, fond blanc */
.pro-login-page { background: #f2f6fc !important; }
main:has(.pro-login-page) ~ .site-footer { background: #f2f6fc !important; }
main:has(.pro-login-page) ~ .site-footer p.border-t { border-top-color: #dfe5f0 !important; }
main:not(:has(.pro-login-page)) ~ .site-footer { background: #fff !important; }

/* Texte d'introduction : graisse medium (500) */
.pro-lead { font-weight: 500 !important; }

/* Cartes transitaires : bordure #bac0d8 au survol, à l'activation et au focus */
.pro-carrier-card:hover, .pro-carrier-card:active, .pro-carrier-card:focus, .pro-carrier-card:focus-visible { border-color: #bac0d8 !important; outline: 0 !important; box-shadow: none !important; }

/* Pied de page : lien de la page active souligné */
.site-footer nav a { display: inline-block; padding: 6.4px 0; border-bottom: 2px solid transparent; text-decoration: none !important; }
.site-footer nav a[aria-current="page"] { border-bottom-color: var(--color-brand); color: #1f1f48; }

/* Défilé des véhicules juste après le hero (défile vers la droite : les véhicules regardent à droite) */
.pro-fleet { overflow: hidden; background: #fff; padding: 1.5rem 0 1.25rem; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%); }
.pro-fleet-track { display: flex; align-items: flex-end; width: max-content; animation: pro-fleet-scroll 60s linear infinite; }
.pro-fleet-item { position: relative; margin: 0 4rem 0 0; flex: none; display: block; }
.pro-fleet-item.h48 { height: 48px; } .pro-fleet-item.h52 { height: 52px; } .pro-fleet-item.h72 { height: 72px; } .pro-fleet-item.h76 { height: 76px; }
.pro-fleet-item picture, .pro-fleet-item img { display: block; height: 100%; width: auto; max-width: none; filter: none !important; box-shadow: none !important; }
.pro-wheel { position: absolute; border-radius: 50%; background-repeat: no-repeat; animation: pro-wheel-spin 2s linear infinite; pointer-events: none; }
@keyframes pro-fleet-scroll { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes pro-wheel-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pro-fleet-track, .pro-wheel { animation: none; } }

/* Pied de page toujours en bas de la fenêtre (pages courtes) */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main#contenu { flex: 1 0 auto; }
body > .site-footer { margin-top: auto; flex: none; }
@media (max-width: 767px) { body > .site-footer { display: none !important; } }

/* Toasts */
.toasts { position: fixed; z-index: 100; right: 1rem; bottom: 1rem; display: flex; flex-direction: column; gap: .6rem; max-width: min(24rem, calc(100vw - 2rem)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: .7rem; padding: .85rem 1rem; background: #fff; border: 1px solid #d5dae8; border-radius: 8px; color: #1f1f48; font-size: .95rem; line-height: 1.45; animation: toast-in .2s ease; }
.toast.is-out { opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.toast i { flex: none; width: 10px; height: 10px; border-radius: 3px; margin-top: .4rem; background: #2cabdd; }
.toast-success i { background: #22a559; } .toast-error i { background: #d92d20; } .toast-warn i { background: #f5a524; }
.toast p { margin: 0; flex: 1; }
.toast button { flex: none; border: 0; background: transparent; color: #5b5d80; font-size: 1.25rem; line-height: 1; cursor: pointer; padding: 0 .1rem; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 767px) { .toasts { bottom: 5rem; } }

/* Connexion : le fond couvre toute la hauteur du main (pied de page collé en bas) */
main:has(.pro-login-page) { background: #f2f6fc; display: flex; flex-direction: column; }
main:has(.pro-login-page) > .pro-login-page { flex: 1 0 auto; }

/* Focus des champs : même comportement que le champ de suivi — aucun anneau, seule la bordure passe à #b9c0d8 */
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):focus,
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):focus-visible,
select:focus, select:focus-visible, textarea:focus, textarea:focus-visible,
.input:focus, .input:focus-visible, .select:focus, .select:focus-visible, .textarea:focus, .textarea:focus-visible { outline: 0 !important; box-shadow: none !important; border-color: #b9c0d8 !important; }
.pro-dir-field:focus-within { border-color: #b9c0d8; outline: 0; box-shadow: none; }
.pro-dir-field input:focus, .pro-dir-field select:focus { border-color: transparent !important; }

/* Bordure normale des champs : identique au champ de suivi (1 px #e4e7f0) */
.input, .select, .textarea,
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
select, textarea { border: 1px solid #e4e7f0; border-radius: 8px; }
.pro-search-box input, .pro-dir-field input, .pro-dir-field select { border: 0; }

/* Bordure des champs de formulaire : #bac0d8 (le champ de suivi et l'annuaire gardent leur bloc à bordure claire) */
.input, .select, .textarea,
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
select, textarea { border-color: #bac0d8; }
.pro-search-box input, .pro-dir-field input, .pro-dir-field select { border: 0; }

/* Défilé des véhicules : décor à peine visible */
.pro-fleet-track { opacity: .22; }

/* Titre d'accueil : toujours sur 2 lignes + animation « motion design » (mots qui montent depuis un masque, puis trait orange sous le dernier mot) */
.pro-hero-copy { max-width: 64rem; }
.pro-hero-copy .pro-lead, .pro-hero-copy .pro-search, .pro-hero-copy .pro-points { max-width: 47rem; margin-inline: auto; }
.pro-title-motion { font-size: clamp(.95rem, 4vw, 3.1rem); line-height: 1.12; text-wrap: nowrap; }
.pro-title-motion .ln { display: block; white-space: nowrap; }
.pro-title-motion .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .04em .02em .12em; margin: -.04em -.02em -.12em; position: relative; }
.pro-title-motion .w > span { display: inline-block; transform: translateY(115%); opacity: 0; animation: pro-word-up .75s cubic-bezier(.2,.85,.25,1) forwards; }
.pro-title-motion .hl::after { content: ""; position: absolute; left: .02em; right: .02em; bottom: .06em; height: .09em; background: #f5a524; border-radius: 4px; transform: scaleX(0); transform-origin: left; animation: pro-underline .7s cubic-bezier(.2,.85,.25,1) 1.7s forwards; }
@keyframes pro-word-up { 0% { transform: translateY(115%) rotate(4deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes pro-underline { to { transform: scaleX(1); } }
.pro-title-motion .w-1 > span { animation-delay: 235ms; }
.pro-title-motion .w-2 > span { animation-delay: 320ms; }
.pro-title-motion .w-3 > span { animation-delay: 405ms; }
.pro-title-motion .w-4 > span { animation-delay: 490ms; }
.pro-title-motion .w-5 > span { animation-delay: 575ms; }
.pro-title-motion .w-6 > span { animation-delay: 660ms; }
.pro-title-motion .w-7 > span { animation-delay: 745ms; }
.pro-title-motion .w-8 > span { animation-delay: 830ms; }
.pro-title-motion .w-9 > span { animation-delay: 915ms; }
.pro-title-motion .w-10 > span { animation-delay: 1000ms; }
.pro-title-motion .w-11 > span { animation-delay: 1085ms; }
.pro-title-motion .w-12 > span { animation-delay: 1170ms; }
.pro-title-motion .w-13 > span { animation-delay: 1255ms; }
.pro-title-motion .w-14 > span { animation-delay: 1340ms; }
@media (prefers-reduced-motion: reduce) { .pro-title-motion .w > span { animation: none; transform: none; opacity: 1; } .pro-title-motion .hl::after { animation: none; transform: scaleX(1); } }

/* Texte d'introduction résumé, avec le groupe de mots final qui tourne en boucle */
.pro-lead-loop .loop { display: inline-block; height: 1.5em; overflow: hidden; vertical-align: bottom; text-align: left; font-weight: 700; color: var(--color-navy-800, #1f1f48); }
.pro-lead-loop .loop-in { display: block; animation: pro-loop 9s cubic-bezier(.7,0,.25,1) infinite; }
.pro-lead-loop .loop-in > span { display: block; height: 1.5em; line-height: 1.5em; white-space: nowrap; }
@keyframes pro-loop { 0%, 25% { transform: translateY(0); } 33%, 58% { transform: translateY(-1.5em); } 66%, 91% { transform: translateY(-3em); } 100% { transform: translateY(-4.5em); } }
@media (prefers-reduced-motion: reduce) { .pro-lead-loop .loop-in { animation: none; } }

/* Points de réassurance sous la recherche : en gras */
.pro-points, .pro-points span { font-weight: 700; }

/* Indication sous la recherche et points de réassurance : graisse medium (500) */
.pro-search-hint, .pro-points, .pro-points span { font-weight: 500 !important; }

/* Points de réassurance : un par ligne, en défilement vertical en boucle */
.pro-points-slider { display: block; }
.pro-points-slider .slide { display: block; height: 1.8em; overflow: hidden; }
.pro-points-slider .slide-in { display: block; animation: pro-slide 9s cubic-bezier(.7,0,.25,1) infinite; }
.pro-points-slider .slide-in > span { display: flex; justify-content: center; align-items: center; gap: .4rem; height: 1.8em; }
@keyframes pro-slide { 0%, 25% { transform: translateY(0); } 33%, 58% { transform: translateY(-1.8em); } 66%, 91% { transform: translateY(-3.6em); } 100% { transform: translateY(-5.4em); } }
@media (prefers-reduced-motion: reduce) { .pro-points-slider .slide-in { animation: none; } }

/* Mobile : le bouton de suivi n'affiche que la flèche */
@media (max-width: 767px) { .pro-search-box .btn .btn-label { display: none; } .pro-search-box .btn { padding-inline: 0; width: 48px; flex: none; } }

/* Mobile : titre plus grand, toujours sur 2 lignes (coupure équilibrée entre les deux lignes) */
@media (max-width: 767px) {
  .pro-title-motion { font-size: 5.3vw; text-wrap: balance; }
  .pro-title-motion .ln { display: inline; white-space: normal; }
}

/* Bouton du menu mobile : sans bordure */
.nav-toggle, .nav-toggle:hover, .nav-toggle:focus, .nav-toggle:focus-visible { border: 0 !important; box-shadow: none !important; outline: 0; }

/* Mobile / tablette : le menu s'ouvre en barre latérale (panneau à droite + voile) */
@media (max-width: 859px) {
  .nav-toggle { position: relative; z-index: 80; }
  .site-nav { position: fixed !important; inset: 0 0 0 auto !important; width: min(20rem, 86vw); height: 100dvh; display: flex !important; flex-direction: column; align-items: stretch; gap: 1.25rem; padding: 5rem 1.25rem 1.5rem !important; background: #fff; border: 0 !important; border-left: 1px solid #e4e7f0 !important; overflow-y: auto; z-index: 70; clip-path: inset(0 0 0 100%); visibility: hidden; transition: clip-path .25s ease, visibility 0s linear .25s; }
  .site-nav.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .25s ease; }
  .nav-overlay { position: fixed; inset: 0; background: rgba(31, 31, 72, .38); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
  html.nav-open .nav-overlay { opacity: 1; pointer-events: auto; }
  html.nav-open { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .site-nav, .nav-overlay { transition: none !important; } }

/* Menu latéral (mobile) : lien actif en gras, sans soulignement */
@media (max-width: 859px) {
  .site-nav li a[aria-current="page"] { font-weight: 700; color: #1f1f48; border-bottom-width: 0; padding-bottom: calc(.85rem + 1px); }
}

@media (max-width: 767px) {
  .pro-title-motion { font-size: 6.1vw; letter-spacing: -.04em; margin-inline: -.6rem; }
}
.pro-points-slider .slide-in { animation-duration: 15s; }

/* Le panneau fermé ne doit jamais élargir la page (iOS) : il reste dans la fenêtre, seulement rogné */
html, body { max-width: 100%; overflow-x: clip; }

/* Mobile : les 3 étapes en cartes à faire glisser (swipe horizontal avec accroche) */
@media (max-width: 767px) {
  .pro-steps { display: flex !important; grid-template-columns: none; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; margin-inline: -20px; padding: 0 20px .5rem; scroll-padding-inline: 20px; scrollbar-width: none; }
  .pro-steps::-webkit-scrollbar { display: none; }
  .pro-steps > .pro-step-card { flex: 0 0 82%; scroll-snap-align: start; }
}
@media (max-width: 767px) {
  .pro-steps { scroll-snap-type: x mandatory !important; padding-bottom: 14px !important; }
}

/* Menu latéral (mobile) : « Connexion » présenté comme les autres entrées de la liste */
@media (max-width: 859px) {
  .site-nav > a.btn { display: block; width: auto; height: auto; justify-content: flex-start; text-align: left; padding: .85rem 0; border: 0; border-bottom: 1px solid #e4e7f0; border-radius: 0; background: transparent; box-shadow: none; font-size: 1.0625rem; font-weight: 400; color: #5a5c7d; }
  .site-nav > a.btn:hover { background: transparent; color: #1f1f48; }
  .site-nav { gap: 0 !important; }
}

/* Barre de navigation du bas : toujours visible sur mobile (plus de masquage au défilement) */
.bottom-nav, .bottom-nav.is-hidden { transform: none !important; }

/* Mobile : cartes « Comment ça marche » avec une ombre douce (la rangée laisse la place à l'ombre) */
@media (max-width: 767px) {
  .pro-steps { padding-top: 10px !important; padding-bottom: 34px !important; margin-top: 34px !important; }
  .pro-steps > .pro-step-card { box-shadow: 0 10px 28px rgba(31, 31, 72, .12), 0 2px 6px rgba(31, 31, 72, .06) !important; border-color: #eceef6; }
}
@media (max-width: 767px) { .pro-steps { gap: 1.5rem !important; } }

/* Menu latéral ouvert : l'arrière-plan est flouté */
@media (max-width: 859px) {
  .nav-overlay { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); background: rgba(31, 31, 72, .28); }
}

/* Mobile : espace de 100 px sous la FAQ (au-dessus de la barre de navigation du bas) */
@media (max-width: 767px) { #faq.pro-section { padding-bottom: 100px; } }

/* Menu du haut (bureau) : séparateur vertical entre les liens et « Connexion » */
@media (min-width: 860px) {
  .site-nav > ul { padding-right: 1.5rem; border-right: 1px solid #d5dae8; align-items: center; }
}

/* Menu du haut (bureau) : « Connexion » en bouton texte (sans cadre ni fond) */
@media (min-width: 860px) {
  .site-nav > a.btn { border: 0; background: transparent; padding: 0 .25rem; height: auto; font-size: .9375rem; font-weight: 600; color: #1f1f48; }
  .site-nav > a.btn:hover { background: transparent; text-decoration: underline; text-underline-offset: 4px; }
}

/* Pages « Suivre un colis » et « Calculateur de tarifs » : fond #f2f6fd sur toute la page */
main:has(> .pro-head-search), main:has(> .pro-head):has(form[action$="rates/"]) { background: #f2f6fd; }
main:has(> .pro-head-search) > .pro-head, main:has(> .pro-head):has(form[action$="rates/"]) > .pro-head {
  background: radial-gradient(700px 300px at 10% 0, #dcecf9 0, transparent 70%), radial-gradient(600px 280px at 95% 10%, #fdeccd 0, transparent 70%), transparent !important;
}

/* Sections de l'accueil : aucun filet entre « Comment ça marche » et la FAQ */
#comment-ca-marche, #faq, .pro-white-band { border-top: 0 !important; border-bottom: 0 !important; }

/* Bannière « Le colis arrive… » : 30 px au-dessus */
.pro-banner { margin-top: 30px !important; }

/* « Comment ça marche » : pas d'espace sous la bannière */
#comment-ca-marche.pro-section { padding-bottom: 0 !important; }

/* FAQ : 30 px au-dessus du titre */
#faq.pro-section { padding-top: 30px !important; }

/* Accueil : mêmes halos bleu (haut gauche) et jaune (haut droite) que les pages « Suivre un colis » et « Tarifs », par-dessus la vidéo */
.pro-hero-bg::after {
  background:
    radial-gradient(700px 300px at 10% 0, rgba(220, 236, 249, .95) 0, transparent 70%),
    radial-gradient(600px 280px at 95% 10%, rgba(253, 236, 205, .95) 0, transparent 70%),
    linear-gradient(180deg, rgba(242, 246, 251, .9) 0, rgba(242, 246, 251, .7) 50%, rgba(242, 246, 251, .55) 100%) !important;
}

/* Annuaire des transitaires : même fond #f2f6fd et mêmes halos que « Suivre un colis » */
main:has(> .pro-head):has(.pro-dir) { background: #f2f6fd; }
main:has(> .pro-head):has(.pro-dir) > .pro-head {
  background: radial-gradient(700px 300px at 10% 0, #dcecf9 0, transparent 70%), radial-gradient(600px 280px at 95% 10%, #fdeccd 0, transparent 70%), transparent !important;
}
.pro-banner { margin-top: 50px !important; }
#faq.pro-section { padding-top: 50px !important; }

/* Bouton violet (« Suivre un colis » à côté de « Calculer ») */
.pro-actions-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn.btn-violet { background: #5b4bc4; border-color: #5b4bc4; color: #fff; }
.btn.btn-violet:hover { background: #4d3eb0; border-color: #4d3eb0; color: #fff; }

/* Champ de suivi : aucune bordure, y compris au focus (c'est le bloc qui porte la bordure) */
.pro-search-box input, .pro-search-box input:focus, .pro-search-box input:focus-visible,
.pro-dir-field input:focus, .pro-dir-field input:focus-visible, .pro-dir-field select:focus, .pro-dir-field select:focus-visible { border: 0 !important; border-width: 0 !important; outline: 0 !important; box-shadow: none !important; }

/* Bouton « Suivre un colis » : fond #f2f6fd, texte et contour violets */
.btn.btn-violet { background: #f2f6fd; border-color: #5b4bc4; color: #5b4bc4; }
.btn.btn-violet:hover { background: #e7edfb; border-color: #4d3eb0; color: #4d3eb0; }

/* Bouton « Suivre un colis » : fond et bordure #1f1f49, texte blanc */
.btn.btn-violet { background: #1f1f49; border-color: #1f1f49; color: #fff; }
.btn.btn-violet:hover { background: #2b2b63; border-color: #2b2b63; color: #fff; }

/* --- Paiement d'un colis (boutons repris de churchdonation : tuile de 2 px -> bordure 1 px, 8 px, à plat, sans ombre) ------------- */
.pay-card { border-top: 4px solid #2cabdd; }
.pay-amount { margin: 0 0 .25rem; font-size: 1.05rem; color: #5a5c7d; }
.pay-amount strong { display: block; margin-top: .15rem; font-size: 1.9rem; line-height: 1.15; color: #1f1f48; }
.pay-note { margin: .75rem 0 0; font-size: .875rem; color: #5a5c7d; }
.pay-form { margin: 1rem 0 0; }
.pay-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: .75rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.pay-method { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; min-height: 5.25rem; padding: 10px; border: 1px solid #d5dae8; border-radius: 8px; background: #fff; box-shadow: none;
    color: #1f1f48; font: inherit; font-size: .9375rem; font-weight: 600; text-align: left; cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s; }
.pay-method:hover { background: #f5f7fb; border-color: #1f1f48; }
.pay-method:focus-visible { outline: 2px solid #2cabdd; outline-offset: 2px; }
.pay-method:disabled { opacity: .6; cursor: progress; }
.pay-logo { flex: none; width: 32px; height: 32px; object-fit: contain; }
.pay-logo-card { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: #1f1f48; color: #fff; }
.pay-logo-card .icon { width: 18px; height: 18px; }
.pay-method-text { display: flex; flex-direction: column; gap: .1rem; }
.pay-method-sub { font-size: .75rem; font-weight: 400; color: #5a5c7d; }
.pay-paid { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0; }
.pay-badge-paid { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .65rem; border-radius: 8px; background: #ecfdf3; border: 1px solid #15803d; color: #166534; font-weight: 600; }
.pay-badge-paid .icon { width: 16px; height: 16px; }
@media (max-width: 767px) {
    .pay-methods { grid-template-columns: 1fr; }                  /* boutons empilés sur mobile */
    .pay-method { flex-direction: row; align-items: center; min-height: 3.5rem; gap: .75rem; }
}

/* ===== Résultat du suivi (tracking/) ===== */
.pt-page { padding-block: 2.5rem 4rem; display: flex; flex-direction: column; gap: 1.25rem; }
.pt-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.pt-code { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; color: #1f1f48; margin: 0; word-break: break-all; }
.chip-green { background: #dcf5e6; color: #166534; }
.pt-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.pt-card { background: #fff; border: 1px solid #e4e7f0; border-radius: 8px; padding: 1.5rem; box-shadow: none; }
.pt-status { display: flex; flex-direction: column; gap: 1.4rem; }
.pt-stepper { list-style: none; margin: 0; padding: .15rem 0 0; }
.pt-stepper::after { width: 0; }
.pt-stepper.pt-s1::after { width: 0%; }
.pt-stepper.pt-s2::after { width: 20%; }
.pt-stepper.pt-s3::after { width: 40%; }
.pt-stepper.pt-s4::after { width: 60%; }
.pt-stepper.pt-s5::after { width: 80%; }
.pt-now h2 { font-size: 1.35rem; font-weight: 700; color: #1f1f48; margin: 0; }
.pt-route { margin: .35rem 0 0; display: flex; align-items: center; gap: .5rem; color: #5a5c7e; }
.pt-route .icon { width: 1rem; height: 1rem; }
.pt-status .pro-progress { padding: 0; border: 0; }
.pt-status .pro-bar > span { background: linear-gradient(90deg, #f5a524, #ff8a1f); right: auto; }
.pt-status .pro-bar > .pt-w0 { width: 0%; }
.pt-status .pro-bar > .pt-w20 { width: 20%; }
.pt-status .pro-bar > .pt-w40 { width: 40%; }
.pt-status .pro-bar > .pt-w60 { width: 60%; }
.pt-status .pro-bar > .pt-w80 { width: 80%; }
.pt-status .pro-bar > .pt-w100 { width: 100%; }
.pt-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 0; padding-top: 1rem; border-top: 1px solid #eef0f6; }
.pt-dates dt { font-size: .8125rem; color: #6b6d8f; } .pt-dates dd { margin: .15rem 0 0; font-weight: 600; color: #1f1f48; }
.pt-eyebrow { margin: 0 0 1rem; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6b6d8f; }
.pt-carrier-id { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.1rem; }
.pt-carrier h2 { font-size: 1.15rem; font-weight: 700; color: #1f1f48; margin: 0; }
.pt-sub { margin: .2rem 0 0; display: flex; align-items: center; gap: .4rem; color: #5a5c7e; font-size: .9rem; }
.pt-sub .icon { width: 1rem; height: 1rem; }
.pt-logo { position: relative; width: 3.5rem; height: 3.5rem; overflow: hidden; background: #eef0f8; color: #1f1f48; }
.pt-logo b { font-size: 1rem; }
.pt-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.pt-carrier .btn { width: 100%; justify-content: center; }
.pt-h { font-size: 1.1rem; font-weight: 700; color: #1f1f48; margin: 0 0 1.2rem; }
.pt-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pt-timeline li { position: relative; display: flex; gap: 1rem; padding-bottom: 1.4rem; }
.pt-timeline li:last-child { padding-bottom: 0; }
.pt-timeline li::before { content: ""; position: absolute; left: .45rem; top: 1.1rem; bottom: -.2rem; width: 2px; background: #e4e7f0; }
.pt-timeline li:last-child::before { display: none; }
.pt-dot { flex: none; width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid #c9cde0; background: #fff; margin-top: .2rem; position: relative; z-index: 1; }
.pt-timeline li.is-current .pt-dot { border-color: #2cabdd; background: #2cabdd; }
.pt-timeline h3 { margin: 0; font-size: 1rem; font-weight: 600; color: #1f1f48; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.pt-timeline p { margin: .15rem 0 0; font-size: .875rem; color: #6b6d8f; }
.pt-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: .5rem 0 0; }
@media (max-width: 860px) { .pt-grid { grid-template-columns: minmax(0, 1fr); } .pt-dates { grid-template-columns: 1fr; } }
main:has(.pt-page) { background: #f2f6fd; }
.pt-page .pay-card, .pt-page .card.pay-card { border: 1px solid #e4e7f0 !important; border-top: 1px solid #e4e7f0 !important; border-radius: 8px; box-shadow: none; padding: 1.5rem; background: #fff; }

/* Résultat du suivi : cartes en bandes horizontales pleine largeur (entreprise d'abord, puis statut) */
.pt-grid { grid-template-columns: minmax(0, 1fr) !important; }
.pt-carrier { order: -1; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; padding: 1.1rem 1.5rem; }
.pt-carrier .pt-eyebrow { flex: 0 0 100%; margin: 0; }
.pt-carrier .pt-carrier-id { margin: 0; flex: 1 1 auto; min-width: 0; }
.pt-carrier .btn { width: auto; flex: none; }
.pt-status { gap: 1.4rem; }
@media (max-width: 560px) { .pt-carrier .btn { width: 100%; } }

/* Pied de page : toujours sur fond blanc, y compris sur la page de connexion */
main:has(.pro-login-page) ~ .site-footer, main:not(:has(.pro-login-page)) ~ .site-footer, body > .site-footer { background: #fff !important; }
main:has(.pro-login-page) ~ .site-footer p.border-t { border-top-color: #e4e7f0 !important; }

/* En-tête (bureau) : menu aligné à gauche, juste après le logo */
@media (min-width: 860px) {
  .header-inner { justify-content: flex-start; }
  .header-inner .site-nav { margin-left: 2.75rem; }
}
@media (max-width: 859px) { .header-inner .nav-toggle { margin-left: auto; } }

/* En-tête (bureau) : menu aligné à droite (logo à gauche) */
@media (min-width: 860px) { .header-inner { justify-content: space-between; } .header-inner .site-nav { margin-left: 0; } }

/* Logo : hauteur 44 px partout (en-tête, pied de page, pages publiques) */
.brand img, .site-header .brand img, .site-footer .brand img { height: 44px !important; width: auto !important; max-width: none; }

/* Bureau : le calque flouté du menu mobile ne doit pas occuper de place dans l'en-tête (il décalait le menu vers le centre) */
@media (min-width: 860px) { .nav-overlay { display: none !important; } }

/* Page « Entreprises de transit » : en-tête centré */
main:has(> .pro-head):has(.pro-dir) .pro-head .pro-wrap { text-align: center; }
main:has(> .pro-head):has(.pro-dir) .pro-head .pro-lead { margin-inline: auto; }

/* Page Contact : fond #f2f6fe */
main:has(> .pro-head):has(#form_25240) { background: #f2f6fe; }

/* Pages Mentions légales et Confidentialité : fond #f2f6fe */
main:has(> .pro-head):has(.wrap > .narrow) { background: #f2f6fe; }

/* Contact, Mentions légales, Confidentialité : l'en-tête garde ses halos mais se fond dans le fond #f2f6fe (plus de blanc en bas) */
main:has(> .pro-head):has(#form_25240) > .pro-head, main:has(> .pro-head):has(.wrap > .narrow) > .pro-head {
  background: radial-gradient(700px 300px at 10% 0, #dcecf9 0, transparent 70%), radial-gradient(600px 280px at 95% 10%, #fdeccd 0, transparent 70%), transparent !important;
}

/* Pied de page : présentation du service + avertissement (petit texte) */
.site-footer-about { padding: 0 0 .25rem; max-width: none; width: 100%; }
.site-footer-about p { font-size: .8125rem; line-height: 1.65; color: #6b6e8f; margin: 0 0 .5rem; }
.site-footer-about strong { font-weight: 600; color: #4a4d72; }

/* Pied de page : rangée logo + liens, padding vertical 15 px */
.site-footer .wrap > .flex.py-8 { padding-top: 15px !important; padding-bottom: 15px !important; }

/* Pied de page : fond #1f1f49, textes clairs */
html body footer.site-footer.site-footer { background: #1f1f49 !important; color: #c9cbe3 !important; }
html body footer.site-footer.site-footer a { color: #fff !important; }
html body footer.site-footer.site-footer nav a[aria-current="page"] { border-bottom-color: var(--color-brand); }
html body footer.site-footer.site-footer p, html body footer.site-footer.site-footer .site-footer-about p { color: #c9cbe3 !important; }
html body footer.site-footer.site-footer .site-footer-about strong { color: #fff; }
html body footer.site-footer.site-footer p.border-t { border-top: 1px solid rgba(255,255,255,.16) !important; }

/* En-tête : effet d'ombre */
.site-header { box-shadow: 0 4px 18px -6px rgba(31, 31, 73, .14), 0 1px 2px rgba(31, 31, 73, .06); }
html body header.site-header.site-header { box-shadow: 0 4px 18px -6px rgba(31, 31, 73, .14), 0 1px 2px rgba(31, 31, 73, .06) !important; }

/* Champs : hauteur 44 px (select, texte, mot de passe, e-mail, téléphone, recherche) */
html body select, html body .input:not(textarea), html body .select,
html body input[type="text"], html body input[type="password"], html body input[type="email"],
html body input[type="tel"], html body input[type="search"], html body input[type="number"] { height: 44px; min-height: 44px; box-sizing: border-box; }

/* Bouton « Tableau de bord » (utilisateur connecté au backend) : fond #1f1f49, texte blanc */
.site-nav .btn.btn-dash { background: #1f1f49; border-color: #1f1f49; color: #fff !important; padding-inline: 1rem; }
.site-nav .btn.btn-dash:hover { background: #2c2c66; border-color: #2c2c66; color: #fff !important; }
.site-nav .btn.btn-dash[hidden] { display: none; }
.site-nav .btn.btn-dash { min-height: 40px; padding: 0 1.25rem; font-size: .9375rem; }
.site-nav .btn.btn-dash, .site-nav .btn.btn-dash:hover, .site-nav .btn.btn-dash:focus-visible { text-decoration: none !important; }

/* Connexion client : champ mot de passe avec bouton « Afficher » et message d'erreur (voir connexion/index.php, js/site.js) */
.pro-pw { position: relative; }
.pro-pw .input { padding-right: 5.5rem; }
.pro-pw-toggle { position: absolute; top: 50%; right: .5rem; transform: translateY(-50%); background: transparent; border: 0; padding: .35rem .6rem; border-radius: 6px; font-size: .85rem; font-weight: 600; color: #1f1f48; cursor: pointer; }
.pro-pw-toggle:hover { background: #eef1f7; }
.pro-pw-toggle:focus-visible { outline: 2px solid #1f1f48; outline-offset: 2px; }
.pro-form-error { margin-top: 1rem; padding: .7rem .9rem; border: 1px solid #f0b4b4; border-radius: 6px; background: #fdf3f3; color: #8a1c1c; font-size: .92rem; }
.pro-form-error[hidden] { display: none; }
.pro-login-form .input[aria-invalid="true"] { border-color: #b42318; }

/* Annuaire des transitaires (mobile) : la 2e ligne (pays + détection) occupe toute la largeur, comme le champ de recherche */
@media (max-width: 40rem) {
    .pro-dir-bar { max-width: none; }
    .pro-dir-search { flex: 1 1 100%; }
    .pro-dir-country { flex: 1 1 0; min-width: 0; }
}

/* Calculateur de tarifs (rates/, js/rates.js) : classes propres au calculateur */
.rates-error { max-width: 48rem; margin-bottom: 1.25rem; }
.rates-hint { margin: .35rem 0 0; font-size: .8125rem; color: #5b5f7a; }
.rates-group { padding: 1.25rem; }
.rates-avg { font-size: 2rem; line-height: 1.15; font-weight: 700; color: #1f1f48; }
.rates-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .75rem; margin: 1rem 0 1.25rem; }
.rates-stats > div { margin: 0; padding: .6rem .85rem; min-height: 2.75rem; border-radius: 8px; background: #f6f7fb; }
.rates-stats dt { font-size: .875rem; color: #4b4f6b; }
.rates-stats dd { margin: .1rem 0 0; font-weight: 700; color: #1f1f48; }
.rates-table-wrap { overflow-x: auto; border: 1px solid #e3e6ef; border-radius: 8px; }
.rates-table-wrap:focus-visible { outline: 2px solid #1f1f48; outline-offset: 2px; }
.rates-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.rates-table th, .rates-table td { padding: .7rem .85rem; text-align: left; border-bottom: 1px solid #eef0f6; vertical-align: top; }
.rates-table thead th { background: #f6f7fb; font-size: .8125rem; font-weight: 600; color: #3b3f5c; }
.rates-table tbody tr:last-child th, .rates-table tbody tr:last-child td { border-bottom: 0; }
.rates-table .rates-num { text-align: right; white-space: nowrap; }
.rates-name .badge-status { margin-left: 0; }
.rates-meter { display: block; width: 7rem; height: .4rem; margin: .4rem 0 0 auto; border-radius: 4px; }
.rates-meter::-webkit-meter-bar { background: #eef0f6; border: 0; border-radius: 4px; height: .4rem; }
.rates-meter::-webkit-meter-optimum-value, .rates-meter::-webkit-meter-suboptimum-value, .rates-meter::-webkit-meter-even-less-good-value { background: #0e7490; border-radius: 4px; }
.rates-meter::-moz-meter-bar { background: #0e7490; border-radius: 4px; }
.rates-empty { padding: 1.25rem; }
.rates-sugg { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; }
.rates-sugg a { display: inline-block; padding: .6rem 0; min-height: 44px; box-sizing: border-box; }
.rates-actions { list-style: none; }
.rates-actions .btn { min-height: 48px; }
.rates-method summary { display: list-item; padding: .65rem 0; min-height: 44px; box-sizing: border-box; }

/* Mobile (< 40rem) : formulaire pleine largeur, résumé compact, un tableau transformé en CARTES empilées (même DOM : th/td en blocs, libellés data-label) */
@media (max-width: 39.99rem) {
  html body .rates-page { padding-bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px)); }
  .rates-page .rates-submit { width: 100%; }
  .rates-page .rates-track { display: none; }
  .rates-hint { font-size: .875rem; }
  .rates-group { padding: 1rem; }
  .rates-avg { font-size: 1.9rem; margin-top: .15rem; }
  .rates-stats { grid-template-columns: 1fr 1fr; gap: .5rem; margin: .75rem 0 1rem; }
  .rates-stats .rates-stat-wide { grid-column: 1 / -1; }
  .rates-table-wrap { overflow: visible; border: 0; border-radius: 0; }
  .rates-table, .rates-table tbody, .rates-table tr, .rates-table th, .rates-table td { display: block; }
  .rates-table { min-width: 0; font-size: 1rem; }
  .rates-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .rates-table tbody { display: flex; flex-direction: column; gap: .75rem; }
  .rates-table tr { padding: .9rem 1rem; border: 1px solid #e3e6ef; border-radius: 10px; background: #fff; }
  .rates-table tbody tr:first-child { border-color: #86efac; background: #f4fbf6; }
  .rates-table th, .rates-table td { padding: 0; border: 0; }
  .rates-table .rates-num { text-align: left; white-space: normal; }
  .rates-name { font-size: 1rem; line-height: 1.35; }
  .rates-name .badge-status { display: inline-block; margin: .35rem 0 0; }
  .rates-name-text { display: block; }
  .rates-avgcell { margin-top: .5rem; font-size: 1.05rem; color: #1f1f48; }
  .rates-avgcell strong { font-size: 1.75rem; line-height: 1.2; font-weight: 800; }
  .rates-meter { width: 100%; max-width: none; height: .5rem; margin: .5rem 0 .6rem; }
  .rates-n, .rates-minmax { display: inline-block; margin-right: 1rem; font-size: .875rem; line-height: 1.5; color: #4b4f6b; white-space: nowrap; }
  .rates-n::before, .rates-minmax::before { content: attr(data-label) " : "; }
  .rates-actions .btn { width: 100%; }
}

/* Calculateur : badge « Le moins cher en moyenne » en coins 8 px (au lieu de la pilule) */
#resultats .badge-status, .rates-table .badge-status { border-radius: 8px; }

/* Calculateur : pas de badge « Le moins cher en moyenne » (masqué ; le balisage reste côté serveur) */
.rates-name .badge-status, #resultats .rates-name .badge-status { display: none !important; }
/* (anciennes règles ci-dessous : pastille et marge du badge, sans effet tant qu'il est masqué) */
.rates-name .badge-status::before, .rates-name .badge-status::after { content: none !important; display: none !important; }
.rates-name .badge-status { margin-left: 0 !important; }

/* Calculateur : pas de barre de comparaison sous le frais moyen (tableau et cartes mobiles) */
.rates-meter { display: none !important; }

/* Inscription client (inscription/index.php, js/signup.js) : case à cocher alignée avec son libellé (cible tactile >= 24 px) */
.pro-check { display: flex; align-items: center; gap: .6rem; }
.pro-check input[type="checkbox"] { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; accent-color: #1f1f48; }
.pro-check label { font-size: .95rem; }

/* Calculateur : lignes du tableau rayées (une ligne sur deux), version tableau uniquement (≥ 40rem) */
@media (min-width: 40.0625rem) {
    .rates-table tbody tr:nth-child(odd) > * { background: #fff; }
    .rates-table tbody tr:nth-child(even) > * { background: #f4f6fb; }
}
.pro-form-info { border-color: #9fc5e8; background: #eef6fd; color: #14324f; }

/* Apparition des blocs : fondu seul (pas de glissement), plus doux ; le glissement de 14/20 px d'app.css est neutralisé */
.motion [data-reveal], .motion [data-plan-card] { transform: none; }

/* --- Page de paiement par lien signé (payer/) ---------------------------------------------------------- */
.pay-lines { width: 100%; margin: 1rem 0 .5rem; border-collapse: collapse; font-size: .95rem; }
.pay-lines th, .pay-lines td { padding: .45rem 0; border-bottom: 1px solid #e4e7f0; text-align: left; vertical-align: top; }
.pay-lines th small { display: block; font-weight: 400; color: #5a5c7d; }
.pay-lines td { text-align: right; white-space: nowrap; }
.pay-methods-radio { grid-template-columns: 1fr; }
.pay-radio { flex-direction: row; align-items: center; min-height: 3rem; gap: .75rem; cursor: pointer; }
.pay-radio input { flex: none; width: 1.1rem; height: 1.1rem; }
.pay-radio:has(input:checked) { border-color: #1f1f48; background: #f5f7fb; }
.pay-phone, .pay-otp { margin-top: 1rem; }
.pay-wait { margin-top: 1rem; }
.pay-ok { color: #166534; font-weight: 600; }
.pay-app { margin: 1.25rem 0 0; font-size: .9rem; }

/* --- Connexion / inscription par téléphone (OTP WhatsApp + PIN) ---------------------------------------- */
.pro-tel { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid #e4e7f0; }
.pro-tel h2 { margin: 0 0 .25rem; font-size: 1.1rem; }
.pro-tel-form { margin-top: .75rem; }
.pro-tel [hidden] { display: none !important; }
.pro-tel-step { display: flex; flex-direction: column; gap: 1rem; }
.pro-tel-pin { letter-spacing: .4em; font-variant-numeric: tabular-nums; }
.pro-tel-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* ==========================================================================================================
   Calendrier des expéditions (calendrier/, js/calendrier.js) : liste chronologique, recherche, tiroir de filtres à gauche.
   Rayon 8 px, aucune ombre, aucune bande colorée latérale, texte small.
   ========================================================================================================== */
main:has(> .pro-head):has(.cal-page) { background: #f2f6fd; }
main:has(> .pro-head):has(.cal-page) > .pro-head {
  background: radial-gradient(700px 300px at 10% 0, #dcecf9 0, transparent 70%), radial-gradient(600px 280px at 95% 10%, #fdeccd 0, transparent 70%), transparent !important;
}
main:has(> .pro-head):has(.cal-page) .pro-head .pro-wrap { text-align: center; }
main:has(> .pro-head):has(.cal-page) .pro-head .pro-lead { margin-inline: auto; }
.cal-page { padding-bottom: 4rem; }
.cal-page [hidden] { display: none !important; }
.cal-page .icon { width: 1rem; height: 1rem; flex: none; }

/* Barre : bouton Filtres + recherche */
.cal-bar { display: flex; align-items: center; gap: .75rem; margin: 0 0 .5rem; }
.cal-filter-toggle { gap: .5rem; min-height: 48px; flex: none; }
.cal-search { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; gap: .5rem; min-height: 48px; padding: 0 .5rem 0 .85rem; border: 1px solid #d5dae8; border-radius: 8px; background: #fff; color: #5b5d80; }
.cal-search:focus-within { border-color: #1f1f48; }
.cal-q { flex: 1; min-width: 0; height: 46px; border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important; font: inherit; font-size: .875rem; color: #1f1f48; }
.cal-q::-webkit-search-cancel-button { display: none; }
.cal-q-clear { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: #1f1f48; cursor: pointer; }
.cal-q-clear:hover { background: #f2f6fd; }
.cal-q-clear:focus-visible, .cal-reset:focus-visible, .cal-filter-toggle:focus-visible, .cal-item:focus-visible, .cal-drawer-close:focus-visible { outline: 2px solid #1f1f48; outline-offset: 2px; }
.cal-q-submit { flex: none; }
.cal-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 1.25rem; height: 1.25rem; padding: 0 .35rem; border-radius: 8px; background: #1f1f48; color: #fff; font-size: .75rem; font-weight: 700; }
.cal-status { margin: .75rem 0 1rem; text-align: center; font-size: 1.25rem; line-height: 1.3; font-weight: 700; color: #1f1f4a; }
.cal-status.is-marquee { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cal-marquee { overflow: hidden; margin: .75rem 0 1rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.cal-marquee-track { display: flex; width: max-content; will-change: transform; }
.cal-marquee-item { flex: none; display: inline-flex; align-items: center; white-space: nowrap; font-size: 1.375rem; line-height: 1.3; font-weight: 700; color: #1f1f4a; }
.cal-marquee-sep { padding-inline: 1.5rem; color: #8a8cab; }
@media (min-width: 48rem) { .cal-status { font-size: 1.5rem; } .cal-marquee-item { font-size: 1.5rem; } }

/* Liste groupée par mois */
.cal-stage.is-loading { opacity: .6; }
.cal-group-title { margin: 1.25rem 0 .5rem; font-size: 1rem; font-weight: 700; color: #1f1f48; text-transform: capitalize; }
.cal-group-title:first-child { margin-top: 0; }
.cal-group-title { display: flex; align-items: center; gap: .75rem; }
.cal-group-badge { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 3.25rem; height: 3.25rem; border: 1px solid #1f1f4a; border-radius: 8px; background: #fff; color: #1f1f4a; line-height: 1.15; text-transform: uppercase; }
.cal-group-badge b { font-size: .875rem; font-weight: 700; }
.cal-group-badge small { font-size: .6875rem; font-weight: 600; }
.cal-group-name { display: flex; flex-direction: column; line-height: 1.25; }
.cal-group-name strong { font-size: 1rem; font-weight: 700; text-transform: capitalize; }
.cal-group-name small { font-size: .8125rem; font-weight: 400; color: #5a5f7d; }
.cal-list, .cal-fallback-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.cal-item { display: flex; align-items: center; gap: .85rem; width: 100%; padding: .7rem .85rem; border: 1px solid #e3e4ee; border-radius: 8px; background: #fff; color: #1f1f48; font: inherit; text-align: left; cursor: pointer; min-height: 72px; }
.cal-item:hover { background: #f6f7fb; }
.cal-item.is-past { opacity: .8; }
.cal-item-date { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 3.25rem; height: 3.25rem; border: 1px solid #1f1f4a; border-radius: 8px; background: #fff; color: #1f1f4a; line-height: 1.1; }
.cal-item-date b { font-size: 1.15rem; }
.cal-item-date small { font-size: .75rem; text-transform: capitalize; }
.cal-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; font-size: .75rem; line-height: 1.35; color: #3b3f5c; }
.cal-item-main strong { display: inline-flex; align-items: center; gap: .4rem; font-size: .8125rem; color: #1f1f48; }
.cal-item-main strong .icon { width: 1rem; height: 1rem; }
.cal-item-dest { white-space: nowrap; }
.cal-item-dest::before { content: " → "; }
/* Mobile : « entreprise → pays de destination » en mini frise chronologique verticale (deux points reliés par un trait) ; la liste des départs reste inchangée. */
@media (max-width: 47.99rem) {
  .cal-item-co { display: flex; flex-direction: column; gap: .4rem; position: relative; padding-left: 1.1rem; }
  .cal-item-co:has(.cal-item-dest)::before { content: ""; position: absolute; left: .25rem; top: .55em; bottom: .55em; width: 2px; margin-left: -1px; background: #c9cfe0; }
  .cal-co-from, .cal-item-dest { position: relative; display: block; white-space: normal; }
  .cal-item-co:has(.cal-item-dest) .cal-co-from::before, .cal-item-dest::before { content: ""; position: absolute; left: -1.1rem; top: .4em; width: .5rem; height: .5rem; box-sizing: border-box; border-radius: 50%; background: #fff; border: 2px solid #1f1f4a; }
  .cal-item-dest::before { background: #1f1f4a; }
}
.cal-item-past { flex: none; font-style: normal; font-size: .75rem; font-weight: 600; padding: .1rem .4rem; border-radius: 6px; background: #eef0f6; color: #3b3f5c; }
.cal-load { margin: 1rem auto 0; display: flex; min-height: 48px; }

/* Logo d'établissement : carré 48 px, fond blanc, bordure fine ; initiales en repli (aucun logo ou image en échec) */
.cal-logo { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 80px; height: 80px; overflow: hidden; border: 1px solid #e3e4ee; border-radius: 8px; background: #fff; color: #3b3f5c; font-size: .875rem; }
.cal-logo b { font-weight: 700; }
.cal-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.cal-logo-lg { width: 104px; height: 104px; font-size: 1.5rem; }

/* États */
.cal-loading, .cal-empty, .cal-trunc { margin: 1rem 0; font-size: .9375rem; color: #3b3f5c; }
.cal-error { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; padding: 1rem; border: 1px solid #f3b4ae; border-radius: 8px; background: #fee4e2; color: #8f1d14; font-size: .9375rem; }
.cal-error p { margin: 0; }
.cal-note { max-width: 48rem; margin: 1rem 0 0; font-size: .8125rem; color: #4b4f6b; }
.cal-noscript { margin: 0 0 .75rem; font-size: .875rem; color: #3b3f5c; }
.cal-fallback-list li { display: grid; grid-template-columns: auto 1fr; column-gap: .85rem; align-items: center; padding: .85rem 1rem; border: 1px solid #e3e4ee; border-radius: 8px; background: #fff; font-size: .875rem; color: #3b3f5c; }
.cal-fallback-list li > .cal-logo { grid-row: 1 / span 3; }
.cal-fallback-list li > .btn { grid-column: 2; justify-self: start; margin-top: .4rem; }
.cal-fallback-list strong { display: inline-flex; align-items: center; gap: .4rem; font-size: .9375rem; color: #1f1f48; }

/* Tiroir « Filtres » : à GAUCHE, même composant que le menu du site (voile flouté, bouton ✕, glissement clip-path) */
.cal-filters { display: flex; flex-direction: column; margin: 0; min-height: 0; flex: 1; align-items: stretch; }
.cal-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .5rem; }
.cal-drawer-title { margin: 0; font-size: 1.125rem; font-weight: 700; color: #1f1f48; }
.cal-drawer-close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 8px; background: transparent; color: #1f1f48; cursor: pointer; }
.cal-drawer-close:hover { background: #f2f6fd; }
.cal-drawer-body { display: flex; flex-direction: column; gap: 1rem; flex: 1; overflow-y: auto; width: 100%; }
.cal-filter { display: flex; flex-direction: column; gap: .3rem; min-width: 0; align-items: stretch; width: 100%; margin: 0; }
.cal-filter label { font-size: .8125rem; font-weight: 600; color: #3b3f5c; }
.cal-filter select { width: 100%; } /* gabarit de liste du site (.select : hauteur, bordure, flèche) : aucun style propre au calendrier */
fieldset.cal-mode { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: .35rem; }
fieldset.cal-mode legend { padding: 0; margin-bottom: .35rem; font-size: .8125rem; font-weight: 600; color: #3b3f5c; }
.cal-check { display: flex; align-items: center; cursor: pointer; }
.cal-check span { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-size: .9375rem; font-weight: 600; color: #1f1f48; }
.cal-check input { flex: none; width: 1.25rem; height: 1.25rem; margin: 0 .75rem 0 0; accent-color: #1f1f48; cursor: pointer; }
.cal-check input:focus-visible { outline: 2px solid #1f1f48; outline-offset: 2px; }
.cal-seg { position: relative; display: block; }
.cal-seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cal-seg span { display: flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 .85rem; border: 1px solid #d5dae8; border-radius: 8px; background: #fff; color: #1f1f48; font-size: .875rem; font-weight: 600; }
.cal-seg input:checked + span { background: #1f1f48; border-color: #1f1f48; color: #fff; }
.cal-seg input:focus-visible + span { outline: 2px solid #1f1f48; outline-offset: 2px; }
.cal-legend { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; margin: 0; font-size: .75rem; color: #3b3f5c; }
.cal-legend-i { display: inline-flex; align-items: center; gap: .35rem; }
.cal-past { display: inline-flex; align-items: center; gap: .5rem; margin: 0; font-size: .75rem; line-height: 1.3; color: #3b3f5c; cursor: pointer; }
.cal-past span { font-size: .75rem; line-height: 1.3; }
.cal-past input { flex: none; width: 1rem; height: 1rem; margin: 0; accent-color: #1f1f48; }
.cal-drawer-foot { display: flex; flex-direction: column; align-items: stretch; gap: .5rem; width: 100%; padding-top: 1rem; margin-top: 1rem; border-top: 1px solid #e4e7f0; }
html body .cal-drawer-foot .btn { display: flex; width: 100%; justify-content: center; min-height: 48px; }
.cal-reset { align-self: center; font-size: .875rem; font-weight: 600; color: #1f1f48; text-decoration: underline; min-height: 44px; display: inline-flex; align-items: center; }
html body .cal-drawer-title:focus, html body .cal-drawer-title:focus-visible { outline: 0 !important; box-shadow: none !important; }
/* Sans JavaScript : le tiroir est un bloc de formulaire au-dessus de la liste ; avec JavaScript (.cal-js) il devient le panneau latéral gauche */
.cal-drawer { margin-bottom: 1rem; padding: 1rem; border: 1px solid #e4e7f0; border-radius: 8px; background: #fff; display: flex; flex-direction: column; }
.cal-js .cal-drawer { position: fixed; inset: 0 auto 0 0; width: min(20rem, 86vw); height: 100dvh; margin: 0; padding: 1rem 1.25rem 1.25rem; border: 0; border-right: 1px solid #e4e7f0; border-radius: 0; z-index: 90; clip-path: inset(0 100% 0 0); visibility: hidden; transition: clip-path .25s ease, visibility 0s linear .25s; }
.cal-js .cal-drawer.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .25s ease; }
.cal-overlay { position: fixed; inset: 0; background: rgba(31, 31, 72, .28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); z-index: 85; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.cal-overlay.is-open { opacity: 1; pointer-events: auto; }
html.cal-drawer-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .cal-js .cal-drawer, .cal-overlay { transition: none !important; } .cal-stage.is-loading { opacity: 1; } }

/* Modale de détail */
.cal-dialog { margin: auto; width: min(32rem, calc(100% - 2rem)); max-height: min(90vh, 40rem); padding: 0; border: 1px solid #e3e6ef; border-radius: 8px; background: #fff; color: #1f1f48; overflow: auto; }
.cal-dialog::backdrop { background: rgba(20, 20, 58, .55); }
.cal-dialog-panel { padding: 0 0 1.25rem; }
.cal-dialog-panel > :not(.cal-dialog-head) { margin-left: 1.25rem; margin-right: 1.25rem; }
.cal-dialog-head { padding: 0; display: flex; align-items: center; justify-content: flex-end; min-height: 44px; }
.cal-dialog-close { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; min-width: 48px; border: 0; border-radius: 8px; background: transparent; color: #1f1f48; cursor: pointer; }
.cal-dialog-close:hover { background: #f2f6fd; }
.cal-dialog-close .icon { width: 1.75rem; height: 1.75rem; }
.cal-dialog-close:focus-visible, .cal-dialog a:focus-visible { outline: 2px solid #1f1f48; outline-offset: 2px; }
.cal-dialog-title { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: 1.25rem; line-height: 1.25; font-weight: 700; color: #1f1f48; }
.cal-dialog-title:focus, .cal-dialog-title:focus-visible { outline: 0; }
.cal-detail-head { display: flex; align-items: center; gap: .85rem; margin: .25rem 0 1rem; }
.cal-detail { display: grid; grid-template-columns: max-content 1fr; align-items: baseline; gap: .6rem 1rem; margin: 0 0 1.25rem; font-size: .875rem; line-height: 1.4; }
.cal-detail dt { margin: 0; font-size: .875rem; line-height: 1.4; font-weight: 600; color: #3b3f5c; }
.cal-detail dd { margin: 0; min-width: 0; line-height: 1.4; overflow-wrap: anywhere; }
.cal-co-n { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .5rem; }
.cal-co-n small { font-size: .875rem; color: #3b3f5c; }
.cal-co-n small::before { content: "·"; margin-right: .5rem; }
.cal-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cal-actions .btn { min-height: 48px; }

@media (max-width: 47.99rem) {
  .cal-page { padding-bottom: calc(7.5rem + env(safe-area-inset-bottom, 0px)); }
  .cal-q-submit { display: none; }
  .cal-item-date { display: none; }
  .cal-logo { width: 64px; height: 64px; }
  .cal-dialog { width: 100%; max-width: none; margin: auto 0 0; border-radius: 8px 8px 0 0 !important; border-bottom-width: 0; max-height: 85vh; } /* feuille du bas : coins du bas droits (la règle générale dialog impose 8 px partout avec !important) */
  .cal-actions .btn { width: 100%; }
}

/* Demande de cotation sous le calculateur : section pleine largeur, contenu centré (sans ombre). */
.rates-quote-band { padding-block: clamp(2.5rem, 6vw, 4.5rem); background: #fff; border-block: 1px solid #e3e4ee; }
.rates-quote-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.rates-quote-inner h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: #1f1f48; }
.rates-quote-inner p { margin: .85rem 0 1.5rem; max-width: 40rem; font-size: 1rem; line-height: 1.55; color: #3b3f5c; }

/* Barre du bas : l'élément central (pastille dorée) garde une icône marine lisible quand il est actif, et sans trait bleu au-dessus. */
.bottom-nav .bn-quote a[aria-current="page"] .icon { color: #14143a; stroke-width: 2; }
.bottom-nav .bn-quote a[aria-current="page"]:before { content: none; }

/* Barre du bas : lien actif = texte #2cabdd sur fond #2cabdd à 30 % d'opacité (icône de la même couleur, sauf la pastille centrale qui garde son icône marine). */
.bottom-nav a[aria-current="page"] { color: #2cabdd; background: rgba(44, 171, 221, .3); }
.bottom-nav a[aria-current="page"] .icon { color: #2cabdd; }
.bottom-nav .bn-quote a[aria-current="page"] { color: #2cabdd; background: rgba(44, 171, 221, .3); }
.bottom-nav .bn-quote a[aria-current="page"] .icon { color: #14143a; }

/* Calendrier : première lettre de la date en majuscule (« Mercredi 18 novembre 2026 »), dans la liste et dans le détail. */
.cal-item-main > span:not(.cal-item-co)::first-letter, .cal-detail dd:nth-of-type(1)::first-letter { text-transform: uppercase; }
.cal-pager { margin-top: 1.25rem; }
.cal-pager .pro-page { cursor: pointer; font: inherit; font-weight: 500; }
.cal-pager .pro-page:disabled { cursor: default; }

/* Bandeau « Ouvrir dans l'application » (lib/openapp.php, js/openapp.js) : masqué par défaut, affiché sur mobile uniquement par le script. */
.app-open { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin: 1rem 0; padding: .75rem 1rem; border: 1px solid #c9ddf5; border-radius: 8px; background: #f2f6fe; color: #1f1f48; }
.app-open[hidden] { display: none; }
.app-open-text { flex: 1 1 12rem; margin: 0; font-size: .9375rem; font-weight: 600; line-height: 1.4; }
.app-open .btn { flex: 0 0 auto; }
.app-open-miss { flex: 1 0 100%; margin: 0; font-size: .8125rem; line-height: 1.4; color: #3b3f5c; }
.app-open-miss[hidden] { display: none; }
