/* French modules page — layered on the same brand tokens as the landing. */

:root {
    --primary-color: #536de6;
    --secondary-color: #3b4cb8;
    --accent-color: #6b7ef6;
    --modules-ink: #111827;
    --modules-muted: #4b5563;
    --modules-line: #e5e7eb;
    --modules-slot: #eef2ff;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1f2937;
}

.hero-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.narrow-container {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--modules-ink);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--modules-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.modules-eyebrow,
.modules-kicker {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.modules-eyebrow {
    color: rgba(255, 255, 255, 0.75);
}

.modules-kicker {
    color: var(--primary-color);
}

.modules-hero-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    min-width: 0;
}

.modules-hero-copy {
    width: 100%;
    max-width: 36rem;
    min-width: 0;
}

.modules-hero-visual {
    width: 100%;
    max-width: 28rem;
    min-width: 0;
    display: flex;
    justify-content: center;
}

.modules-hero-shot {
    display: block;
    width: 100%;
    max-width: 28rem;
    height: auto;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 0.875rem;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.45);
    background: #fff;
}

@media (min-width: 1024px) {
    .modules-hero-layout {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 3rem;
    }

    .modules-hero-copy {
        flex: 1 1 auto;
    }

    .modules-hero-visual {
        flex: 0 0 28rem;
        justify-content: flex-end;
    }
}

.modules-hero-value {
    list-style: none;
    margin: 0 0 2.5rem;
    padding: 0;
}

.modules-hero-value li {
    position: relative;
    padding-left: 1.75rem;
    margin: 0.85rem 0;
    font-size: 1.15rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.95);
}

.modules-hero-value li::before {
    content: "";
    position: absolute;
    left: 0.15rem;
    top: 0.45rem;
    width: 0.7rem;
    height: 0.38rem;
    border-left: 2.5px solid #fff;
    border-bottom: 2.5px solid #fff;
    transform: rotate(-45deg);
}

.modules-hero-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    transition: background 0.2s ease;
}

.modules-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modules-jump {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--modules-line);
}

@media (min-width: 769px) {
    .modules-jump {
        position: sticky;
        top: 5rem;
        z-index: 40;
        backdrop-filter: blur(8px);
    }
}

.modules-jump ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0.9rem 0;
}

.modules-jump a {
    display: inline-block;
    white-space: nowrap;
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    background: var(--modules-slot);
    border: 1px solid #c7d2fe;
}

.modules-jump a:hover,
.modules-jump a.is-active {
    color: #fff;
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.modules-cycle-section {
    padding-top: 7.5rem;
    padding-bottom: 5rem;
}

.modules-cycle {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: cycle;
}

@media (min-width: 768px) {
    .modules-cycle {
        grid-template-columns: repeat(3, 1fr);
    }
}

.modules-cycle li {
    border: 1px solid var(--modules-line);
    border-radius: 0.875rem;
    background: #fff;
    padding: 1.5rem;
}

.modules-cycle-phase {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.modules-cycle strong {
    display: block;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--modules-ink);
}

.modules-cycle p {
    color: var(--modules-muted);
    margin: 0;
    line-height: 1.55;
}

.modules-cycle-ai,
.module-ai {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--secondary-color);
    font-weight: 600;
}

.modules-cycle-ai {
    margin-top: 1.75rem;
}

.modules-cycle-ai .mdi,
.module-ai .mdi {
    flex-shrink: 0;
    font-size: 1.15rem;
    line-height: 1.4;
}

.module-ai {
    max-width: 46rem;
    padding: 0.85rem 1rem;
    background: var(--modules-slot);
    border-radius: 0.65rem;
    color: #312e81;
}

.module-block {
    padding: 7.5rem 0 5rem;
    scroll-margin-top: 9.5rem;
}

.module-header {
    max-width: 46rem;
    margin-bottom: 2.5rem;
}

.module-lead {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #374151;
}

.module-capture {
    margin: 0 0 2.5rem;
}

.module-capture-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border: 1px solid var(--modules-line);
    border-radius: 0.875rem;
    box-shadow: 0 18px 40px -20px rgba(15, 23, 42, 0.28);
    background: #fff;
}

.module-capture-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .module-capture-grid {
        grid-template-columns: 1fr 1fr;
    }

    .module-capture-grid .module-capture {
        margin-bottom: 0;
    }
}

.module-capture-slot {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 18rem;
    padding: 2rem;
    border: 2px dashed #c7d2fe;
    border-radius: 0.875rem;
    background:
        repeating-linear-gradient(
            -45deg,
            var(--modules-slot),
            var(--modules-slot) 12px,
            #e0e7ff 12px,
            #e0e7ff 24px
        );
    color: #312e81;
}

.module-capture-slot--wide {
    min-height: 22rem;
}

.module-capture-badge {
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: #fff;
    color: var(--primary-color);
    border: 1px solid #c7d2fe;
    border-radius: 9999px;
    padding: 0.25rem 0.7rem;
    margin-bottom: 1rem;
}

.module-capture-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.module-capture-hint {
    margin: 0 0 1rem;
    line-height: 1.55;
    max-width: 36rem;
}

.module-capture-file {
    margin: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 0.375rem;
    padding: 0.35rem 0.6rem;
    align-self: flex-start;
}

.module-capture figcaption {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--modules-muted);
}

.bf-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid var(--modules-line);
    border-radius: 0.875rem;
    overflow: hidden;
}

.bf-table th {
    width: 50%;
    text-align: left;
    padding: 1rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-color);
    background: #f8fafc;
    border-bottom: 1px solid var(--modules-line);
}

.bf-table th + th,
.bf-table td + td {
    border-left: 1px solid var(--modules-line);
}

.bf-table td {
    vertical-align: top;
    padding: 1.25rem 1.5rem 1.5rem;
}

.bf-table ul {
    margin: 0;
    padding-left: 1.15rem;
}

.bf-table li {
    margin: 0.55rem 0;
    line-height: 1.5;
    color: #374151;
}

.bf-table td:first-child ul {
    list-style: none;
    padding-left: 0;
}

.bf-table td:first-child li {
    position: relative;
    padding-left: 1.7rem;
}

.bf-table td:first-child li::before {
    content: "";
    position: absolute;
    left: 0.2rem;
    top: 0.4rem;
    width: 0.7rem;
    height: 0.38rem;
    border-left: 2.5px solid #22c55e;
    border-bottom: 2.5px solid #22c55e;
    transform: rotate(-45deg);
}

.bf-table td:last-child ul {
    list-style: none;
    padding-left: 0;
}

.bf-table td:last-child li {
    position: relative;
    padding-left: 1.7rem;
}

.bf-table td:last-child li::before {
    content: "";
    position: absolute;
    left: 0.35rem;
    top: 0.55rem;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 9999px;
    background: var(--primary-color);
}

.modules-cta {
    text-align: center;
    max-width: 44rem;
    margin: 0 auto;
    background: #f8fafc;
    border: 1px solid var(--modules-line);
    border-radius: 1rem;
    padding: 3rem 2rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media screen and (max-width: 768px) {
    #top-title {
        font-size: 1.85rem;
        line-height: 2.2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .module-block {
        padding: 5.5rem 0 3.5rem;
        scroll-margin-top: 6rem;
    }

    .bf-table,
    .bf-table thead,
    .bf-table tbody,
    .bf-table tr,
    .bf-table th,
    .bf-table td {
        display: block;
        width: 100%;
    }

    .bf-table th + th,
    .bf-table td + td {
        border-left: 0;
    }

    .bf-table td + td {
        border-top: 1px solid var(--modules-line);
    }
}
