/* rbinc.ca — built from Figma "moniteuracadien.com-v2024.03" (rbinc.ca, rbinc.ca/calendrier) */

@font-face {
    font-family: "Font Awesome 6 Free";
    font-style: normal;
    font-weight: 900;
    font-display: block;
    src: url("../fonts/fa-solid-900.woff2") format("woff2");
}

:root {
    --navy: #26235e;
    --yellow: #fdb71a;
    --sky: #e2f3fb;
    --sky-line: #93d5f0;
    --ink: #222324;
    --ad-placeholder: #cacbcc;
    --page-width: 1600px;
    --gutter: 100px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: "Poppins", system-ui, sans-serif;
    color: var(--ink);
    background: var(--sky);
}

body.page-calendrier { background: #fff; }

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

.container {
    max-width: var(--page-width);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

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

/* ---------- Ad band (banner from moniteuracadien.com Joomla) ---------- */

.ad-band {
    background: #fff;
    padding: 20px 16px;
    margin-bottom: 5px;
}

.top-banner {
    max-width: 970px;
    margin-inline: auto;
    aspect-ratio: 970 / 250;
    background: var(--ad-placeholder);
}

.top-banner a,
.top-banner img { display: block; width: 100%; height: 100%; }

.top-banner img { object-fit: cover; }

/* ---------- Header ---------- */

.site-header { border-bottom: 1px solid var(--sky-line); }

.page-calendrier .site-header { background: #fff; }

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px 40px;
    flex-wrap: wrap;
    padding-block: 50px;
}

.site-header__title {
    font-size: 50px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--navy);
    text-decoration: none;
}

.site-header__brands {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ---------- Home: hero ---------- */

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 500px;
    gap: 40px;
    align-items: start;
    padding-top: 115px;
    padding-bottom: 120px;
}

.hero__title {
    margin: 0;
    font-size: clamp(44px, 6.25vw, 100px);
    font-weight: 600;
    line-height: 1.1;
    color: var(--navy);
}

.hero__text {
    font-size: 18px;
    line-height: 1.6;
}

.hero__text p { margin: 0; }
.hero__text p + p { margin-top: 1.6em; }

/* ---------- Home: contact ---------- */

.contact { border-top: 1px solid var(--sky-line); }

.contact__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px 40px;
    flex-wrap: wrap;
    min-height: 238px;
    padding-block: 60px;
    font-style: normal;
}

.contact__item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: "Open Sans", sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--navy);
}

.contact__item:first-child { align-items: flex-start; }

.contact__text { line-height: 1.6; }

.contact__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--navy);
    font: 900 16px/1 "Font Awesome 6 Free";
}

.contact__link {
    line-height: 38px;
    color: inherit;
    text-decoration: none;
    border-bottom: 2px solid var(--yellow);
    transition: border-color .2s;
}

.contact__link:hover { border-bottom-color: var(--navy); }

/* ---------- Home: CTA ---------- */

.cta-wrap {
    max-width: var(--page-width);
    margin-inline: auto;
    padding: 19px 64.5px 77px;
}

.cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px 40px 20px 30px;
    background: var(--navy);
    color: var(--yellow);
    font-size: 16px;
    font-weight: 600;
    line-height: 25px;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color .2s;
}

.cta:hover { background: #3a3683; }

.cta__icon { font: 900 16px/25px "Font Awesome 6 Free"; }

/* ---------- Calendrier ---------- */

.calendrier {
    display: grid;
    grid-template-columns: 551fr 813fr;
    gap: 36px;
    align-items: start;
    padding-top: 26px;
    padding-bottom: 42px;
}

.calendrier__visuals { padding-top: 29px; }

.calendrier__form iframe {
    display: block;
    width: 100%;
    height: 1029px;
    border: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
    :root { --gutter: 48px; }

    .hero__inner { grid-template-columns: 1fr; padding-block: 72px; }
    .hero__text { max-width: 640px; }

    .cta-wrap { padding-inline: 24px; }

    .calendrier { grid-template-columns: 1fr; }
    .calendrier__visuals {
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding-top: 0;
    }
}

@media (max-width: 700px) {
    :root { --gutter: 20px; }

    .site-header__inner { padding-block: 28px; }
    .site-header__title { font-size: 32px; }

    .hero__inner { padding-block: 48px; }
    .hero__text { font-size: 16px; }

    .contact__inner {
        flex-direction: column;
        align-items: flex-start;
        padding-block: 40px;
    }
    .contact__item { font-size: 18px; }

    .cta-wrap { padding: 0 0 40px; }

    .calendrier__visuals { grid-template-columns: 1fr; }
}
