:root {
    --red: #b5121b;
    --red-dark: #8f0f17;
    --navy: #0d233f;
    --navy-soft: #15365e;
    --ink: #152033;
    --muted: #647084;
    --line: #dfe5ee;
    --soft: #f4f7fb;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(13, 35, 63, .14);
    --radius: 8px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

img,
svg {
    display: block;
}

img {
    max-width: 100%;
    height: auto;
}

svg {
    width: 1.1em;
    height: 1.1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    margin: 0 0 1rem;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.08;
    color: var(--navy);
    font-weight: 800;
}

h1 {
    font-size: clamp(2.35rem, 5vw, 5rem);
}

h2 {
    font-size: clamp(1.75rem, 3vw, 3rem);
}

h3 {
    font-size: 1.18rem;
}

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(100% - 32px, var(--container));
    margin-inline: auto;
}

.narrow {
    width: min(100% - 32px, 850px);
}

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

.skip-link:focus {
    top: 12px;
    left: 12px;
    z-index: 1000;
    width: auto;
    height: auto;
    padding: .7rem 1rem;
    clip: auto;
    color: var(--white);
    background: var(--navy);
    border-radius: var(--radius);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(223, 229, 238, .9);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 1.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    color: var(--white);
    background: var(--red);
    border-radius: var(--radius);
    font-weight: 900;
    letter-spacing: 0;
}

.brand-text {
    display: grid;
    gap: .1rem;
}

.brand-text strong {
    color: var(--navy);
    font-size: .98rem;
    line-height: 1.1;
}

.brand-text small {
    color: var(--muted);
    font-size: .76rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: .35rem;
}

.main-nav a {
    position: relative;
    padding: .72rem .85rem;
    color: var(--navy);
    border-radius: var(--radius);
    font-size: .95rem;
    font-weight: 700;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current="page"] {
    color: var(--red);
    background: #fff3f4;
}

.nav-toggle {
    display: none;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--navy);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.nav-close {
    display: none;
}

.flash {
    padding: .95rem 0;
    font-weight: 700;
}

.flash-success {
    color: #0f5132;
    background: #dff4e8;
}

.flash-error {
    color: #842029;
    background: #fde2e5;
}

.hero {
    position: relative;
    min-height: min(760px, 78vh);
    display: grid;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
}

.hero-media,
.hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-media img {
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.86) 33%, rgba(255,255,255,.28) 63%, rgba(13,35,63,.12) 100%),
        linear-gradient(180deg, rgba(255,255,255,.08), rgba(13,35,63,.2));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 5rem 0 4rem;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 .9rem;
    color: var(--red);
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.hero-lead {
    max-width: 650px;
    margin: 1.2rem 0 1.6rem;
    color: #334057;
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}

.hero-actions,
.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    align-items: center;
}

.hero-facts {
    margin-top: 1.5rem;
}

.hero-facts span {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 40px;
    padding: .45rem .65rem;
    color: var(--navy);
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(223,229,238,.86);
    border-radius: var(--radius);
    font-size: .9rem;
    font-weight: 700;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 46px;
    padding: .82rem 1.05rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 900;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--white);
    background: var(--red);
    box-shadow: 0 14px 28px rgba(181, 18, 27, .25);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--red-dark);
}

.btn-ghost {
    color: var(--navy);
    background: rgba(255,255,255,.82);
    border-color: var(--line);
}

.btn-light {
    color: var(--navy);
    background: var(--white);
}

.section {
    padding: clamp(4rem, 7vw, 7rem) 0;
}

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

.section-dark {
    color: var(--white);
    background: var(--navy);
}

.section-dark h2,
.section-dark h3,
.section-dark p {
    color: var(--white);
}

.section-heading {
    width: min(760px, 100%);
    margin: 0 auto 2.4rem;
    text-align: center;
}

.section-heading p:not(.section-kicker) {
    color: var(--muted);
    font-size: 1.05rem;
}

.section-heading.compact {
    margin-inline: 0;
    text-align: left;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .86fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.split.reverse {
    grid-template-columns: minmax(320px, .9fr) minmax(0, 1fr);
}

.split p {
    color: var(--muted);
    font-size: 1.05rem;
}

.image-panel {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.image-panel img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.image-panel-dark {
    box-shadow: 0 18px 45px rgba(0,0,0,.28);
}

.feature-grid,
.testimonial-grid,
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.feature-card,
.testimonial-card,
.values-grid article,
.legal-card,
.process-panel,
.form-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 14px 32px rgba(13, 35, 63, .08);
}

.feature-card,
.testimonial-card,
.values-grid article,
.legal-card,
.process-panel {
    padding: 1.35rem;
}

.feature-card p,
.testimonial-card p,
.values-grid p {
    color: var(--muted);
}

.icon-badge {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 1rem;
    color: var(--red);
    background: #fff1f2;
    border-radius: var(--radius);
}

.benefit-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .9rem;
}

.benefit-list div,
.service-mini-grid a {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    min-height: 78px;
    padding: 1rem;
    color: var(--navy);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-weight: 800;
}

.benefit-list svg {
    flex: 0 0 auto;
    margin-top: .15rem;
    color: var(--red);
}

.service-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
    margin: 1.4rem 0 1.5rem;
}

.service-mini-grid a:hover,
.service-mini-grid a:focus-visible {
    color: var(--red);
    border-color: rgba(181, 18, 27, .35);
}

.stars {
    display: flex;
    gap: .1rem;
    margin-bottom: .8rem;
    color: var(--red);
}

.testimonial-card strong {
    color: var(--navy);
}

.stats-band {
    color: var(--white);
    background: var(--red);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.stats-grid div {
    display: grid;
    gap: .25rem;
    padding: 1rem;
    text-align: center;
}

.stats-grid strong {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
}

.stats-grid span {
    font-weight: 800;
}

.cta-section {
    background: linear-gradient(135deg, #f8fafc, #fff4f5);
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
}

.cta-inner p {
    color: var(--muted);
}

.form-shell,
.contact-grid,
.candidature-layout {
    display: grid;
    grid-template-columns: .78fr 1.22fr;
    gap: 1.4rem;
    align-items: start;
}

.form-intro {
    position: sticky;
    top: 100px;
}

.form-intro p,
.contact-info p,
.process-panel p {
    color: var(--muted);
}

.form-card {
    padding: 1.4rem;
}

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

.form-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-grid.two label:last-child {
    grid-column: 1 / -1;
}

.full {
    grid-column: 1 / -1;
}

label {
    display: grid;
    gap: .4rem;
    color: var(--navy);
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    min-height: 46px;
    padding: .78rem .85rem;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

textarea {
    min-height: 128px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(181, 18, 27, .55);
    box-shadow: 0 0 0 4px rgba(181, 18, 27, .1);
}

.form-card .btn {
    width: fit-content;
    margin-top: 1.1rem;
}

.champ-piege {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.page-hero {
    padding: clamp(4rem, 7vw, 7rem) 0;
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(13,35,63,.94), rgba(13,35,63,.74)),
        url("../images/hero-act-jobs-canada.webp") center / cover no-repeat;
}

.page-hero h1,
.page-hero p {
    color: var(--white);
}

.page-hero .container {
    max-width: 850px;
}

.simple-hero {
    background:
        linear-gradient(135deg, rgba(13,35,63,.96), rgba(181,18,27,.78)),
        url("../images/etudes-famille-canada.webp") center / cover no-repeat;
}

.services-hero {
    background:
        linear-gradient(135deg, rgba(13,35,63,.95), rgba(13,35,63,.68)),
        url("../images/recrutement-canada.webp") center / cover no-repeat;
}

.contact-hero,
.candidature-hero {
    background:
        linear-gradient(135deg, rgba(13,35,63,.95), rgba(181,18,27,.58)),
        url("../images/hero-act-jobs-canada.webp") center / cover no-repeat;
}

.legal-card h3 {
    margin-bottom: 1rem;
}

.legal-card dl {
    display: grid;
    gap: .75rem;
    margin: 0;
}

.legal-card div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--line);
}

.legal-card div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.legal-card dt {
    color: var(--muted);
    font-weight: 700;
}

.legal-card dd {
    margin: 0;
    color: var(--navy);
    font-weight: 900;
}

.timeline {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 2rem;
    align-items: start;
}

.timeline ol {
    display: grid;
    gap: .9rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.timeline li {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 1rem;
    padding: 1rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.timeline strong {
    color: var(--red);
}

.pill-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .8rem;
}

.pill-grid span {
    padding: .85rem .6rem;
    text-align: center;
    color: var(--navy);
    background: var(--white);
    border-radius: var(--radius);
    font-weight: 900;
}

.service-sections {
    display: grid;
    gap: 1rem;
}

.service-section {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 1rem;
    padding: 1.2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 14px 32px rgba(13, 35, 63, .07);
    scroll-margin-top: 100px;
}

.service-number {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    color: var(--red);
    background: #fff1f2;
    border-radius: var(--radius);
    font-size: 1.3rem;
    font-weight: 900;
}

.service-body p {
    color: var(--muted);
}

.service-body ul,
.contact-list,
.process-panel ul,
.footer-list,
.footer-links {
    display: grid;
    gap: .72rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.service-body li,
.contact-list li,
.process-panel li,
.footer-list li {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
}

.service-body svg,
.contact-list svg,
.process-panel svg,
.footer-list svg {
    flex: 0 0 auto;
    margin-top: .18rem;
    color: var(--red);
}

.contact-info {
    position: sticky;
    top: 100px;
}

.contact-list a,
.footer-list a,
.footer-links a,
.legal-content a {
    color: var(--red);
    font-weight: 800;
}

.notice {
    margin-top: 1.4rem;
    padding: 1rem;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.notice strong {
    color: var(--navy);
}

.map-section iframe {
    width: 100%;
    height: 430px;
    border: 0;
    display: block;
}

.process-panel {
    position: sticky;
    top: 100px;
}

.small-note,
.fieldset-note {
    font-size: .92rem;
}

fieldset {
    margin: 0 0 1.5rem;
    padding: 0;
    border: 0;
}

fieldset:last-of-type {
    margin-bottom: 0;
}

legend {
    margin-bottom: 1rem;
    color: var(--navy);
    font-size: 1.25rem;
    font-weight: 900;
}

.fieldset-note {
    color: var(--muted);
}

.file-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.file-box {
    min-height: 116px;
    padding: 1rem;
    border: 1px dashed #b9c3d4;
    border-radius: var(--radius);
    background: #fbfcfe;
    cursor: pointer;
}

.file-box input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.file-box span {
    display: block;
    margin-top: .45rem;
    color: var(--muted);
    font-size: .92rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.faq-list {
    display: grid;
    gap: .8rem;
}

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

.faq-item button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    min-height: 64px;
    padding: 1rem 1.1rem;
    color: var(--navy);
    background: var(--white);
    border: 0;
    cursor: pointer;
    text-align: left;
    font-weight: 900;
}

.faq-item button:hover,
.faq-item button:focus-visible {
    background: var(--soft);
}

.faq-symbol {
    position: relative;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.faq-symbol::before,
.faq-symbol::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 18px;
    height: 2px;
    background: var(--red);
    transform: translateY(-50%);
}

.faq-symbol::after {
    transform: translateY(-50%) rotate(90deg);
}

.faq-item button[aria-expanded="true"] .faq-symbol::after {
    transform: translateY(-50%) rotate(0);
}

.faq-answer {
    padding: 0 1.1rem 1rem;
    color: var(--muted);
}

.legal-content h2 {
    margin: 2rem 0 .6rem;
    font-size: 1.45rem;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    color: var(--muted);
}

.site-footer {
    color: #d8e1ef;
    background: #07182d;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr .8fr .9fr;
    gap: 2rem;
    padding: 3.5rem 0 2rem;
}

.brand-footer .brand-text strong,
.site-footer h2 {
    color: var(--white);
}

.site-footer h2 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.brand-footer .brand-text small,
.site-footer p,
.footer-list,
.footer-links {
    color: #d8e1ef;
}

.footer-brand p {
    margin-top: 1rem;
}

.social-links {
    display: flex;
    gap: .65rem;
    margin-top: 1rem;
}

.social-links a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: var(--white);
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 0 1.6rem;
    border-top: 1px solid rgba(255,255,255,.12);
    font-size: .9rem;
}

.reveal {
    opacity: 1;
    transform: translateY(0);
}

.js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s ease, transform .7s ease;
}

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

@media (max-width: 1020px) {
    .nav-toggle {
        display: grid;
    }

    .main-nav {
        position: absolute;
        top: 76px;
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: .7rem;
        background: var(--white);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
    }

    .main-nav.is-open {
        display: flex;
    }

    .nav-toggle[aria-expanded="true"] .nav-open {
        display: none;
    }

    .nav-toggle[aria-expanded="true"] .nav-close {
        display: block;
    }

    .split,
    .split.reverse,
    .form-shell,
    .contact-grid,
    .candidature-layout,
    .timeline {
        grid-template-columns: 1fr;
    }

    .form-intro,
    .contact-info,
    .process-panel {
        position: static;
    }

    .feature-grid,
    .testimonial-grid,
    .values-grid,
    .benefit-list,
    .stats-grid,
    .file-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pill-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    body {
        font-size: 15px;
    }

    .header-inner {
        min-height: 68px;
    }

    .brand-mark {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .brand-text strong {
        font-size: .9rem;
    }

    .brand-text small {
        font-size: .7rem;
    }

    .main-nav {
        top: 68px;
    }

    .hero {
        min-height: 720px;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.86) 58%, rgba(13,35,63,.16));
    }

    .hero-media img {
        object-position: 63% center;
    }

    .hero-content {
        padding-top: 3rem;
    }

    .hero-actions .btn,
    .form-card .btn,
    .cta-inner .btn {
        width: 100%;
    }

    .feature-grid,
    .testimonial-grid,
    .values-grid,
    .benefit-list,
    .stats-grid,
    .file-grid,
    .footer-grid,
    .service-mini-grid,
    .form-grid,
    .form-grid.three {
        grid-template-columns: 1fr;
    }

    .cta-inner,
    .footer-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .service-section {
        grid-template-columns: 1fr;
    }

    .timeline li,
    .legal-card div {
        grid-template-columns: 1fr;
        gap: .25rem;
    }

    .pill-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .map-section iframe {
        height: 360px;
    }
}

@media (max-width: 420px) {
    .container,
    .narrow {
        width: min(100% - 24px, var(--container));
    }

    h1 {
        font-size: 2.15rem;
    }

    .brand-text {
        max-width: 178px;
    }

    .hero {
        min-height: 760px;
    }

    .form-card,
    .feature-card,
    .testimonial-card,
    .values-grid article,
    .process-panel {
        padding: 1rem;
    }
}
