/* sav.inklusive.fr — in www.inklusive.fr's style (Roboto titles, Open Sans text, its blue and slate),
   light and dark. The fonts are served with the site (SIL OFL, latin subset): no third party is asked
   for anything, unlike www's Google Fonts. */
@font-face { font-family: "Roboto"; src: url(../fonts/roboto-latin-wght-normal.woff2) format("woff2");
             font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url(../fonts/open-sans-latin-wght-normal.woff2) format("woff2");
             font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url(../fonts/open-sans-latin-wght-italic.woff2) format("woff2");
             font-weight: 300 800; font-style: italic; font-display: swap; }

:root {
  --shadow: 0 2px 6px #23272f14, 0 8px 24px #23272f12;
  --titles: "Roboto", system-ui, sans-serif;
  --text: "Open Sans", system-ui, sans-serif;
  --blue: #47bceb; --blue-dark: #2ea3d2;
  --heading: #434955; --body: #676f7a; --muted: #9ca4af;
  --paper: #fff; --soft: #f5f7fa; --line: #eaedf2;
  --slate: #434955; --slate-dark: #353b47; --on-slate: #9ca4af;
  --logo-filter: none; --backdrop: #353b47b3;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --heading: #eef0f3; --body: #b9bfc8; --muted: #8a919c;
    --paper: #2b3039; --soft: #323844; --line: #414856;
    --slate: #23272f; --slate-dark: #1c1f26;
    --logo-filter: invert(1) hue-rotate(180deg) brightness(1.15); --backdrop: #000000c7;
    --shadow: 0 2px 6px #0006, 0 8px 24px #0005;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --heading: #eef0f3; --body: #b9bfc8; --muted: #8a919c;
  --paper: #2b3039; --soft: #323844; --line: #414856;
  --slate: #23272f; --slate-dark: #1c1f26;
  --logo-filter: invert(1) hue-rotate(180deg) brightness(1.15); --backdrop: #000000c7;
  --shadow: 0 2px 6px #0006, 0 8px 24px #0005;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 15px/1.6 var(--text); color: var(--body); background: var(--paper);
       -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }
h1, h2, h3 { font-family: var(--titles); font-weight: 500; color: var(--heading); }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1rem; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem;
                     min-height: 70px; }
.brand img { display: block; width: 160px; height: auto; filter: var(--logo-filter); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.75rem; }
.site-nav a { color: var(--body); font-size: 1.05rem; padding: .4rem 0; border-bottom: 3px solid transparent; }
.site-nav a:hover { color: var(--heading); text-decoration: none; border-bottom-color: var(--blue); }
.site-nav .phone { color: var(--blue); }
.site-nav .phone::before { content: "☎ "; }
.site-nav .phone b { font-weight: 400; color: var(--heading); }

.theme-toggle { background: none; border: 1px solid var(--line); border-radius: 50%; color: var(--body);
                width: 2.2rem; height: 2.2rem; padding: 0; display: inline-grid; place-items: center; cursor: pointer; }
.theme-toggle:hover { color: var(--blue); border-color: var(--blue); }
.theme-toggle svg { width: 1.05rem; height: 1.05rem; }
.theme-toggle .icon-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Hero: a photo band with its title, as www's inner pages */
.hero { text-align: center; color: #fff; padding: 4.5rem 0;
        background: linear-gradient(#353b4799, #353b47b3), url(../img/bg_contact.jpg) center / cover; }
.hero h1 { color: #fff; font-weight: 400; font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.15; margin: 0 0 .75rem; }
.hero h1 .brand-ink { color: var(--blue); font-weight: 700; }
.lead { font-size: 1.25rem; margin: 0 0 .5rem; }
.hero-aside { margin: 0 0 1.75rem; opacity: .9; }
.hero-aside a { color: #fff; text-decoration: underline; }

/* Sections */
.section { padding: 3.5rem 0; }
.section:nth-of-type(odd) { background: var(--soft); }
.section-title { text-align: center; font-size: 1.75rem; margin: 0 0 .5rem; }
.section-title::after { content: ""; display: block; width: 3rem; height: 3px; background: var(--blue);
                        margin: .75rem auto 0; }
.section-intro { text-align: center; margin: 0 0 1.75rem; }
.section-title + .cards, .section-title + .links { margin-top: 2rem; }
.subsection-title { font-size: 1.1rem; margin: 2rem 0 .75rem; }

/* Cards */
.cards { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
        padding: 1.75rem; transition: box-shadow .2s, border-color .2s; }
.card:hover { box-shadow: var(--shadow); border-color: transparent; }
.card h3 { margin: 0 0 .5rem; font-size: 1.4rem; }
.card p { flex: 1; margin: 0 0 1.5rem; }
.badge { font-size: .75rem; vertical-align: middle; background: var(--blue); color: #fff; padding: .1rem .45rem;
         border-radius: 3px; }
.badge-muted { background: var(--line); color: var(--body); }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Buttons, as www's "contrast" ones */
.btn { display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
       border: 2px solid transparent; border-radius: 5px; padding: .6rem 1.2rem; font: 600 .95rem/1.4 var(--text);
       transition: background .15s, box-shadow .15s; }
.btn:hover { text-decoration: none; }
.btn-primary, .btn-ghost { background: var(--blue); color: #fff; }
.btn-primary:hover, .btn-ghost:hover { background: var(--blue-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--heading); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); }

/* Diagnostic tiles */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem;
         grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
.tile { display: flex; align-items: center; gap: .75rem; height: 100%; background: var(--paper);
        border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; color: var(--heading); font-weight: 600;
        transition: box-shadow .2s, border-color .2s; }
.tile:hover { box-shadow: var(--shadow); border-color: transparent; color: var(--blue); text-decoration: none; }
.tile small { margin-left: auto; font-weight: 400; color: var(--muted); }
.swatch { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.swatch-k { background: #111; }
.swatch-c { background: #00aeef; }
.swatch-m { background: #ec008c; }
.swatch-y { background: #fff200; }
.swatch-all { background: conic-gradient(#00aeef 0 25%, #ec008c 0 50%, #fff200 0 75%, #111 0); }
.swatch-grid { border-radius: 3px; background-color: #fff;
               background-image: repeating-linear-gradient(0deg, var(--c) 0 1.5px, transparent 1.5px 5px),
                                 repeating-linear-gradient(90deg, var(--c) 0 1.5px, transparent 1.5px 5px); }
.swatch-grid.swatch-k { --c: #111; }
.swatch-grid.swatch-c { --c: #00aeef; }
.swatch-grid.swatch-y { --c: #e6d800; }
.swatch-grid.swatch-m { --c: #ec008c; }
.swatch-squares { background: repeating-conic-gradient(#111 0 25%, #fff 0 50%) 0 0 / .5rem .5rem; }

.links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center;
         gap: .75rem 2rem; }
.links a { font-family: var(--titles); font-size: 1.2rem; font-weight: 500; }

/* Footer, as www's: slate, then the copyright bar */
.site-footer { color: var(--on-slate); }
.footer-main { background: var(--slate); padding: 2.5rem 0; }
.footer-columns { display: grid; gap: 1.5rem 3rem; grid-template-columns: 2fr 1fr; }
@media (max-width: 40rem) { .footer-columns { grid-template-columns: 1fr; } }
.site-footer h2 { color: #fff; font-size: 1.15rem; margin: 0 0 .75rem; }
.site-footer p { margin: 0; }
.footer-copyright { background: var(--slate-dark); padding: 1.1rem 0; font-size: .9rem; }

/* "En savoir plus" dialog */
.dialog { max-width: min(36rem, calc(100vw - 2rem)); border: 0; border-top: 4px solid var(--blue); padding: 2rem;
          background: var(--paper); color: var(--body); box-shadow: 0 20px 60px #0005; }
.dialog::backdrop { background: var(--backdrop); }
.dialog h2 { margin-top: 0; font-size: 1.6rem; }
.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 1.6em; position: relative; margin: .35em 0; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.downloads { margin: 0 0 1.5rem; }
.downloads dt { font-family: var(--titles); font-weight: 500; color: var(--heading); margin-top: .9rem; }
.downloads dd { margin: .15rem 0 0; }

/* File listings of /fichiers/, generated at build */
.listing-title { font-size: clamp(1.4rem, 4vw, 2rem); margin: 2.5rem 0 1.5rem; word-break: break-word; }
.listing { width: 100%; border-collapse: collapse; margin-bottom: 3rem; }
.listing td { border-top: 1px solid var(--line); padding: .6rem .25rem; }
.listing tr:last-child td { border-bottom: 1px solid var(--line); }
.listing td:last-child { text-align: right; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.listing a { font-weight: 600; word-break: break-word; }
.listing .dir a::after { content: "/"; }

/* 404 */
.not-found { padding: 4rem 0; text-align: center; }
.not-found h1 { font-size: clamp(2rem, 6vw, 3rem); margin: 0 0 1rem; }
