/* ==========================================================================
   vitrine.css -- the presentation site, home and feature pages (30.09.2026)
   On top of home.css (the bar, the buttons, the sections of 27.09): the
   feature cards, the screenshots, "Soyez trouve", the questions, the footer.
   Colours from md-tokens.css only, dark by default and ivory with the switch.
   No icon font here: the pictograms are small inline SVGs, so a first visit
   does not download the 540 KB of Material Symbols.
   ========================================================================== */

body.v-page { overflow-x: hidden; }
.v-page .h-wrap { max-width: 1180px; }
.v-ico { width: 24px; height: 24px; flex: none; display: inline-block; vertical-align: middle; }
.v-ico svg { width: 100%; height: 100%; display: block; }

/* Skip link: seen only when reached with the keyboard. */
.v-skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: var(--md-shape-full);
    background: var(--md-primary);
    color: var(--md-on-primary);
    text-decoration: none;
    font-weight: 600;
}
.v-skip:focus { top: 12px; }

/* ---------- Bar: the language links are links, not buttons ---------- */
.h-lang a {
    font: 500 12px/1 var(--md-font-sans);
    letter-spacing: .04em;
    color: var(--md-on-surface-variant);
    text-decoration: none;
    padding: 8px 10px;
}
.h-lang a + a { border-left: 1px solid var(--md-outline-variant); }
.h-lang a.is-on { background: var(--md-secondary-container); color: var(--md-on-secondary-container); }
.h-lang a:focus-visible { outline: 2px solid var(--md-primary); outline-offset: -2px; }

/* The browser's language differs from the page's: a quiet offer, once. */
.v-suggest {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 14px;
    padding: 10px 16px;
    background: var(--md-secondary-container);
    color: var(--md-on-secondary-container);
    font-size: 14px;
}
.v-suggest[hidden] { display: none; }
.v-suggest a { font-weight: 600; color: inherit; }
.v-suggest button {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
    padding: 4px;
}

/* ---------- Breadcrumb ---------- */
.v-crumbs { font-size: 14px; color: var(--md-on-surface-variant); margin: 0 0 18px; }
.v-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.v-crumbs li + li::before { content: "\203A"; margin-right: 6px; opacity: .7; }
.v-crumbs a { color: var(--md-primary); text-decoration: none; }
.v-crumbs a:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.v-page .h-title { font-size: clamp(34px, 5vw, 56px); }
.v-page .h-hero-text .h-note { max-width: 32em; }
.v-hero-feature .h-hero-in { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
.v-hero-feature .h-shot-hero { transform: none; }
.v-hero-feature .h-shot.v-portrait { max-width: 460px; justify-self: center; }
/* The same evening in the theme of the page: the dark picture by default,
   the ivory one with the ivory switch. */
.v-when-ivory { display: none !important; }
[data-theme="ivory"] .v-when-ivory { display: block !important; }
[data-theme="ivory"] .v-when-dark { display: none !important; }
.v-soon-hero {
    border-radius: 16px;
    padding: 36px 32px;
    background: linear-gradient(160deg, var(--md-tertiary-container), var(--md-surface-container));
    color: var(--md-on-tertiary-container);
    display: grid;
    gap: 14px;
}
.v-soon-hero .v-ico { width: 56px; height: 56px; }
.v-soon-hero .v-chip { justify-self: start; }
.v-soon-hero p { margin: 0; font-size: 18px; font-weight: 500; }

/* ---------- Chips ---------- */
.v-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--md-shape-full);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    background: var(--md-primary-container);
    color: var(--md-on-primary-container);
}
.v-chip-soon { background: var(--md-tertiary-container); color: var(--md-on-tertiary-container); }

/* ---------- Feature cards (home) ---------- */
.v-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.v-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    border-radius: var(--md-shape-xl);
    background: var(--md-surface-container);
    border: 1px solid transparent;
    text-decoration: none;
    color: var(--md-on-surface);
    transition: border-color .2s, transform .2s;
}
.v-card:hover { border-color: var(--md-outline-variant); transform: translateY(-2px); }
.v-card:focus-visible { outline: 2px solid var(--md-primary); outline-offset: 2px; }
.v-card .v-ico-box {
    width: 48px;
    height: 48px;
    border-radius: var(--md-shape-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--md-secondary-container);
    color: var(--md-on-secondary-container);
}
.v-card h3 { margin: 6px 0 0; font-size: 19px; font-weight: 600; line-height: 1.3; }
.v-card p { margin: 0; font-size: 15px; color: var(--md-on-surface-variant); }
.v-card .v-more { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 600; color: var(--md-primary); }
.v-card .v-chip { position: absolute; top: 20px; right: 20px; }

/* ---------- Screenshots ---------- */
.v-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; align-items: start; }
.v-shots .h-shot { box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .5); }
.v-shot-wide { margin-top: 16px; }
.v-cap { margin: 12px 0 0; font-size: 13px; color: var(--md-on-surface-variant); }
.v-page .h-shot img { background: var(--md-surface-container-low); }

/* ---------- Sections of a feature page ---------- */
.v-sec { padding: 72px 0; }
.v-sec + .v-sec { padding-top: 0; }
.v-sec-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.v-sec-grid.v-rev .v-sec-text { order: 2; }
.v-sec-text h2 { margin: 0 0 16px; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.2; font-weight: 600; }
.v-sec-text p { margin: 0 0 18px; color: var(--md-on-surface-variant); }
.v-page .v-sec-solo { max-width: 830px; }
.v-plans-line {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 18px 22px;
    border-radius: var(--md-shape-lg);
    background: var(--md-surface-container);
    font-weight: 500;
}
.v-plans-line a { color: var(--md-primary); font-weight: 600; }

/* The check marks of the lists, drawn without the icon font. */
.v-page .h-list li::before {
    content: "";
    width: 18px;
    height: 18px;
    top: 3px;
    background: var(--md-free);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.4 14.2-4.2-4.2 1.4-1.4 2.8 2.8 5.8-5.8 1.4 1.4-7.2 7.2z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.4 14.2-4.2-4.2 1.4-1.4 2.8 2.8 5.8-5.8 1.4 1.4-7.2 7.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Facts strip ---------- */
.v-page .h-facts li .v-ico { color: var(--md-primary); }

/* ---------- Rain on the terrace (home) ---------- */
.v-h4 { margin: 22px 0 8px; font-size: 18px; font-weight: 600; line-height: 1.3; }
.h-feature-text .v-plans-line { margin-top: 20px; font-size: 15px; }

/* ---------- Soyez trouve ---------- */
.v-found { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.v-found-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 6px 16px;
    padding: 24px;
    border-radius: var(--md-shape-xl);
    background: var(--md-surface-container);
}
.v-found-item .v-ico-box {
    grid-row: span 3;
    width: 48px;
    height: 48px;
    border-radius: var(--md-shape-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--md-primary-container);
    color: var(--md-on-primary-container);
}
.v-found-item h3 { margin: 0; font-size: 18px; font-weight: 600; }
.v-found-item p { margin: 0; color: var(--md-on-surface-variant); font-size: 15px; }
.v-found-item a.v-link { justify-self: start; margin-top: 6px; color: var(--md-primary); font-weight: 600; }

/* ---------- Small cards ("Et aussi") ---------- */
.v-page .h-card .v-ico-box {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--md-shape-lg);
    background: var(--md-secondary-container);
    color: var(--md-on-secondary-container);
}

/* ---------- Plans ---------- */
.v-page .h-plan { display: flex; flex-direction: column; }
.v-page .h-plan .v-year { margin: -8px 0 12px; font-size: 13px; color: var(--md-on-surface-variant); }
.v-page .h-plan .v-desc { margin: 0; color: var(--md-on-surface-variant); font-size: 15px; }

/* ---------- Questions ---------- */
.v-faq { max-width: 860px; display: grid; gap: 10px; }
.v-faq details {
    border-radius: var(--md-shape-lg);
    background: var(--md-surface-container);
    border: 1px solid transparent;
}
.v-faq details[open] { border-color: var(--md-outline-variant); }
.v-faq summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 52px 18px 22px;
    font-weight: 600;
    position: relative;
}
.v-faq summary::-webkit-details-marker { display: none; }
.v-faq summary::after {
    content: "+";
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 400;
    color: var(--md-primary);
}
.v-faq details[open] summary::after { content: "\2212"; }
.v-faq summary:focus-visible { outline: 2px solid var(--md-primary); outline-offset: 2px; border-radius: var(--md-shape-lg); }
.v-faq .v-answer { margin: 0; padding: 0 22px 20px; color: var(--md-on-surface-variant); }

/* ---------- Related features ---------- */
.v-related { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.v-related a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: var(--md-shape-lg);
    background: var(--md-surface-container);
    color: var(--md-on-surface);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
}
.v-related a:hover { background: var(--md-surface-container-high); }
.v-related a:focus-visible { outline: 2px solid var(--md-primary); outline-offset: 2px; }
.v-related .v-ico { color: var(--md-primary); width: 20px; height: 20px; }

/* ---------- Footer ---------- */
.v-footer {
    border-top: 1px solid var(--md-outline-variant);
    background: var(--md-surface-container-lowest);
    padding: 48px 0 24px;
    font-size: 14px;
}
.v-footer-in { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 32px; }
.v-footer .v-foot-h {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--md-on-surface-variant);
}
.v-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.v-footer a { color: var(--md-on-surface); text-decoration: none; }
.v-footer a:hover { color: var(--md-primary); text-decoration: underline; }
.v-footer .v-foot-brand p { margin: 12px 0 0; color: var(--md-on-surface-variant); max-width: 26em; }
.v-footer .v-foot-brand img { height: 36px; width: auto; }
html:not([data-theme="ivory"]) .v-footer .v-foot-brand img { content: url("../img/logo/md/logo-dark-01-r-or.svg"); }
[data-theme="ivory"] .v-footer .v-foot-brand img { content: url("../img/logo/md/logo-ivory-01-r.svg"); }
.v-footer .site-id {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 14px;
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid var(--md-outline-variant);
    font-size: 12px;
    line-height: 1.6;
    color: var(--md-on-surface-variant);
    text-align: center;
}
.v-footer .site-id a { color: var(--md-on-surface-variant); text-decoration: underline; }
/* "Swiss made" and the legal links (js/md-footer.js) follow the footer. */
body.v-page .md-footer.md-footer-public { background: var(--md-surface-container-lowest); }

/* ---------- Narrow screens ---------- */
@media (max-width: 1000px) {
    .v-cards { grid-template-columns: repeat(2, 1fr); }
    .v-sec-grid, .v-hero-feature .h-hero-in { grid-template-columns: 1fr; gap: 28px; }
    .v-sec-grid.v-rev .v-sec-text { order: 0; }
    .v-related { grid-template-columns: repeat(2, 1fr); }
    .v-footer-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .v-footer .v-foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .v-cards, .v-found, .v-shots { grid-template-columns: 1fr; }
    .v-sec { padding: 48px 0; }
    .h-lang a { padding: 8px 7px; }
    .v-found-item { grid-template-columns: 1fr; }
    .v-found-item .v-ico-box { grid-row: auto; }
}
/* A phone of 360 px: the logo's mark alone, so the bar keeps one line. */
@media (max-width: 440px) {
    .v-page .h-logo, html:not([data-theme="ivory"]) .v-page .h-logo { content: url("../img/logo/md/icon-dark-r-or.svg"); width: 34px; height: 34px; }
    [data-theme="ivory"] .v-page .h-logo, [data-theme="ivory"] body.v-page .h-logo { content: url("../img/logo/md/icon-ivory-r.svg"); }
    .v-page .h-bar-in { gap: 6px; }
    .v-page .h-login { padding: 0 12px; font-size: 13px; }
    .v-related { grid-template-columns: 1fr; }
    .v-footer-in { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .v-card { transition: none; }
}
