/* ================================================================
 *  custom.css — your own CSS
 *
 *  Loads after the template and theme.css, so a rule here wins any
 *  tie. Every template update ships this file empty: keep your copy
 *  when you update.
 * ================================================================ */

/* ----------------------------------------------------------------
 *  Oveo
 * ---------------------------------------------------------------- */

/* Type scale. The theme file sets --text-scale to 0.9375 (15px base), which shrinks text and
   spacing together. The largest headings have a fluid part that does not follow it, so they are
   brought down here, about one notch below the theme's own sizes. Headings that carry their own
   size class keep it, except the two page titles, set by id. */
.custom-title:not([class*='text-[clamp']) {
    font-size: clamp(1.875rem, 1.05rem + 2.7vw, 3.75rem);
}
.custom-title--sm:not([class*='text-[clamp']) {
    font-size: clamp(1.625rem, 1.15rem + 1.4vw, 2.5rem);
}
#ag3-hero-title {
    font-size: clamp(2.125rem, min(11.4cqi, 9vh), 4.5rem);
}
#ag3-page-title {
    font-size: clamp(2rem, 8.6cqi, 3.75rem);
}
.custom-lead {
    font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
}

/* Home hero copy: title, lead, buttons and note set 15% below the sizes above. The label above
   the title keeps the size it has everywhere else. */
.custom-hero-copy #ag3-hero-title {
    font-size: clamp(1.8125rem, min(9.7cqi, 7.65vh), 3.825rem);
}
.custom-hero-copy .custom-lead {
    max-width: 30rem;
    font-size: clamp(0.90625rem, 0.85rem + 0.2vw, 1rem);
}
.custom-hero-copy .btn {
    padding-block: 0.8rem;
    font-size: 0.85rem;
}
.custom-hero-copy .custom-hero-proof {
    font-size: 0.85rem;
}
@media (max-width: 480px) {
    .custom-hero-copy .custom-hero-proof {
        font-size: 0.8rem;
    }
}

/* Example cases: the "Request the Same Thing" link of a card. Cards that open a page are covered
   by that page's link (z-index 3), so this one sits above it. */
.site-cs-ask {
    position: relative;
    z-index: 4;
    margin-top: 0.875rem;
}
.site-cs-lead-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 2rem;
    align-items: center;
}
.site-cs-lead-actions .site-cs-ask {
    margin-top: 0;
}

/* Light mode (<html class="site-lite">, set by site.js on a browser that draws slowly): the effects
   redrawn on every frame are dropped. Frosted glass becomes a plain tint, blurred entrances become
   fades, lights stop pulsing. The animated grounds are stilled and the wheel freed in site.js. */
.site-lite *,
.site-lite *::before,
.site-lite *::after {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}
.site-lite .custom-glass--frost,
.site-lite .custom-pill--frost {
    background: #fffffff0;
}
.site-lite [data-anim^='blur'].visible {
    animation-name: nx-fade-up;
}
.site-lite .custom-orb {
    animation: none;
}

/* Footer: the files written for search engines and AI assistants (llms.txt, sitemap.xml, rss.xml…),
   in the last row, set apart from the legal links */
.site-machine {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
}
@media (max-width: 1023px) {
    .site-machine {
        width: 100%;
        margin-left: 0;
    }
}

/* Language switch in the header (FR <-> EN) */
.site-lang {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    height: 2.75rem;
    padding: 0 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 9999px;
    color: var(--color-text);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.site-lang:hover,
.site-lang:focus-visible {
    border-color: var(--color-text);
    background-color: var(--color-bg-soft);
}

/* Offers without a published amount: "Custom quote" / "Sur devis" in place of the figure */
.pricing-amount.site-quote {
    font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem);
    letter-spacing: -0.03em;
    line-height: 1.15;
}
.pricing-amount.site-quote {
    white-space: nowrap;
}
.pricing-price:has(.site-quote) {
    flex-wrap: wrap;
    row-gap: 0.125rem;
}

/* Landing pages (<body class="site-landing">): one action, so no site menu and no footer sitemap.
   The header and footer keep the markup of every other page; they are only hidden here. */
.site-landing .site-header .nav-links,
.site-landing .site-header .hamburger,
.site-landing .site-header .mobile-nav,
.site-landing .site-footer .footer-acc {
    display: none;
}
/* The header is a grid (logo, menu, actions): without the menu, the actions keep the last column */
.site-landing .site-header .nav-actions {
    grid-column: -2 / -1;
}
/* On phones the theme moves the header button into the menu; a landing page has no menu, so it stays visible */
.site-landing .site-header .nav-actions > .btn {
    display: inline-flex;
}

/* Blog cards: the author's name stays on one line */
.post-author-name {
    white-space: nowrap;
}

/* Platform reviews (blog): three blocks the theme's article does not have.
   .site-facts   the product "at a glance": one row per fact
   .site-sw      strengths and limits, side by side from 44rem
   .site-compare a comparison table that scrolls sideways on a phone */
.site-facts,
.site-sw,
.site-compare {
    max-width: 50rem;
    margin: clamp(2rem, 1.6rem + 1.6vw, 3rem) 0;
}
.site-facts {
    display: grid;
    padding: 0.5rem clamp(1.25rem, 1rem + 1vw, 1.75rem);
    border-radius: 1rem;
    background: var(--color-bg-soft);
    font-size: 1rem;
    line-height: 1.45;
}
.site-facts > div {
    display: grid;
    gap: 0.125rem 1.5rem;
    padding: 0.875rem 0;
}
.site-facts > div + div {
    border-top: 1px dashed var(--custom-line-dashed, var(--color-border));
}
.site-facts dt {
    color: var(--color-text-soft, var(--color-text));
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.site-facts dd {
    margin: 0;
    color: var(--color-text);
}
@media (min-width: 40rem) {
    .site-facts > div {
        grid-template-columns: 10.5rem minmax(0, 1fr);
        align-items: baseline;
    }
}
.site-sw {
    display: grid;
    gap: 1rem;
}
@media (min-width: 44rem) {
    .site-sw {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.site-sw-col {
    padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
}
.site-sw-col h3 {
    margin: 0 0 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary-ink, var(--color-primary));
}
.site-sw-col--limits h3 {
    color: var(--color-text-soft, var(--color-text));
}
.site-sw-col ul {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 1rem;
    line-height: 1.5;
}
.site-sw-col li {
    position: relative;
    margin: 0;
    padding-left: 1.5rem;
}
.site-sw-col li::before {
    content: '+';
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 600;
    color: var(--color-primary-ink, var(--color-primary));
}
.site-sw-col--limits li::before {
    content: '\2212';
    color: var(--color-text-soft, var(--color-text));
}
.site-compare {
    max-width: 58rem;
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: 1rem;
}
.site-compare table {
    width: 100%;
    min-width: 40rem;
    border-collapse: collapse;
    font-size: 0.9375rem;
    line-height: 1.45;
}
.site-compare th,
.site-compare td {
    padding: 0.875rem 1rem;
    text-align: left;
    vertical-align: top;
}
.site-compare thead th {
    background: var(--color-bg-soft);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}
.site-compare tbody tr + tr > * {
    border-top: 1px dashed var(--custom-line-dashed, var(--color-border));
}
.site-compare tbody th {
    font-weight: 600;
    color: var(--color-text);
}
/* Sources at the end of a review: smaller, and long addresses may break */
.site-sources {
    max-width: 46rem;
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.site-sources li + li {
    margin-top: 0.375rem;
}

/* Home: the row of tools and models. Third-party logos, shown in one grey so none stands out */
.site-tools-track {
    gap: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
    padding-block: 0.25rem;
}
.site-tool {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
}
.site-tool img {
    display: block;
    width: auto;
    max-width: none;
    height: 1.5rem;
}
@media (prefers-reduced-motion: reduce) {
    .site-tools-track {
        animation: none;
    }
}
