/* Custom 199A Styles */

/* Body and Layout */
body {
    font-family: 'JetBrains Mono', monospace;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.container-fluid {
    flex: 1;
    display: flex;
    flex-direction: column;
}

footer {
    margin-top: auto;
    background-color: white;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'IBM Plex Sans', sans-serif;
}

mark {
    background-color: #d7dde0ff;
    padding: 0.2em;
    border-radius: 3px;
}

a, p, li, span, td, th {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Utilities */
.hover-underline:hover {
    text-decoration: underline !important;
}

/* Language Switcher */
.btn-group {
    position: relative;
    display: inline-flex !important;
    vertical-align: middle;
}

/* Language select switcher (header) — replaces the old lang-btn button group */
.lang-select-form {
    display: inline-flex;
}

.lang-select {
    width: auto;
    min-width: 5.5rem;
    height: 34px;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    border-color: var(--bs-primary);
}

/* Dark mode: light caret (the compiled form-select caret stroke is dark-only) */
[data-bs-theme="dark"] .lang-select {
    --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dee2e6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

/* Uniform header action buttons (search / publications / language switcher):
   same height and same padding for every button in the header toolbar. */
.col-12.border-bottom .d-flex .btn,
.col-12.border-bottom .btn-group .btn {
    height: 34px;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Background Arcs */
.background-arcs {
    position: fixed;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.arcs-svg {
    width: 100%;
    height: 100%;
    opacity: 0.5;
}

.arc {
    transform-origin: center;
    transition: none;
}

/* ── WCAG 2.2 AA: accessible blue for text/controls ─────────────────────
   Brand blue #01AEEF stays for borders/icons/backgrounds; text uses the
   darker shade #006994 (≈6.1:1 on white, ≈5.6:1 on #e6f7fd). */
.btn-outline-primary {
    color: #006994;
    border-color: #006994;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: #006994;
    border-color: #006994;
    color: #ffffff;
}

.btn-primary {
    background-color: #006994;
    border-color: #006994;
    color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #00557a;
    border-color: #00557a;
}

/* ── CMS Modal ── */
.cms-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 2100;
    backdrop-filter: blur(8px);
}

.cms-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cms-modal-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.cms-modal-header {
    display: flex;
    justify-content: flex-end;
    padding: 20px 20px 0 20px;
}

.cms-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.cms-modal-close:hover {
    background-color: #f0f0f0;
    color: #333;
    transform: rotate(90deg);
}

.cms-modal-content {
    padding: 0 40px 40px 40px;
}

.cms-modal-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 24px;
    font-family: 'IBM Plex Sans', sans-serif;
}

.cms-modal-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 16px;
    font-family: 'IBM Plex Sans', sans-serif;
}

.cms-modal-content a {
    color: #01AEEF;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.cms-modal-content a:hover {
    color: #0088cc;
    text-decoration: underline;
}

/* ── Client Logo Carousel ── */
.list-inline.mb-5 img {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.list-inline.mb-5 img:hover {
    filter: grayscale(0%);
}

/* ── Scroll Reveal ── */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Sticky nav top offset for news ticker */
@media (max-width: 768px) {
    .row.sticky-top {
        top: 40px !important;
    }

    .background-arcs {
        width: 100%;
        opacity: 1;
    }

    .search-result-image {
        width: 60px;
        height: 60px;
    }

    .cms-modal-content {
        padding: 0 24px 32px 24px;
    }

    .cms-modal-content h3 {
        font-size: 24px;
    }

    .cms-modal-content p {
        font-size: 14px;
    }
}

/* --- Conversion livre blanc : hero, section DDA, preuve sociale --- */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    border: 1px solid #bfe9fb;
    border-radius: 999px;
    background: #eaf8fe;
    color: #006994;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hero-badge-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #01AEEF;
}

.hero-points {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-points li {
    margin-bottom: 0.45rem;
    color: #495057;
}

.hero-points li:last-child {
    margin-bottom: 0;
}

.wp-bar {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    margin-top: 1.6rem;
    padding: 0.9rem 1.1rem;
    border: 1px solid #dee2e6;
    border-left: 4px solid #01AEEF;
    border-radius: 12px;
    background: #ffffff;
    text-decoration: none;
    color: #212529;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wp-bar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.09);
    color: #212529;
}

.wp-bar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 10px;
    background: #eaf8fe;
    color: #01AEEF;
    font-size: 1.2rem;
    flex: 0 0 auto;
}

.wp-bar strong {
    display: block;
    font-size: 0.98rem;
}

.wp-bar-sub {
    display: block;
    color: #6c757d;
    font-size: 0.85rem;
}

.wp-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 700;
    color: #01AEEF;
    margin-bottom: 0.6rem;
}

.wp-inside {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-left: 4px solid #01AEEF;
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

.wp-inside-title {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.72rem;
    font-weight: 700;
    color: #495057;
    margin-bottom: 0.6rem;
}

.wp-inside ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wp-inside li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #495057;
    font-size: 0.95rem;
}

.wp-inside li:last-child {
    margin-bottom: 0;
}

.wp-inside li i {
    position: absolute;
    left: 0;
    top: 0.2rem;
    color: #01AEEF;
}

.wp-micro {
    color: #6c757d;
    font-size: 0.82rem;
}

.trust-band {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 18px;
}

.trust-chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
}

.trust-chips li {
    border: 1px solid #dee2e6;
    background: #ffffff;
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
    font-size: 0.85rem;
    color: #495057;
}

.trust-cta {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-top: 3px solid #01AEEF;
    border-radius: 14px;
    padding: 1.25rem;
    height: 100%;
}

/* Ancre de la section livre blanc : degage le header collant */
#livre-blanc {
    scroll-margin-top: 110px;
}
