Repository Public
1/* Groupe Ka — la rotonde. Identité neutre (papier, encre, pierre) : les seules couleurs sont celles des six marques. */23@font-face {4 font-family: "Newsreader";5 font-style: normal;6 font-weight: 200 800;7 font-display: swap;8 src: url("/fonts/newsreader-latin-v5.woff2") format("woff2-variations");9}10@font-face {11 font-family: "Geist";12 font-style: normal;13 font-weight: 100 900;14 font-display: swap;15 src: url("/fonts/geist-latin-v5.woff2") format("woff2-variations");16}17/* Polices d'attente aux métriques rapprochées : le texte ne bouge pas quand la vraie police arrive. */18@font-face {19 font-family: "Newsreader attente";20 src: local("Georgia");21 size-adjust: 96%;22 ascent-override: 92%;23 descent-override: 26%;24 line-gap-override: 0%;25}26@font-face {27 font-family: "Geist attente";28 src: local("Helvetica Neue"), local("Arial");29 size-adjust: 101%;30 ascent-override: 96%;31 descent-override: 24%;32 line-gap-override: 0%;33}3435:root {36 color-scheme: light dark;37 --bg: #f4f2ec;38 --surface: #fbfaf6;39 --ink: #1a1b1e;40 --ink-2: #44464b;41 --ink-3: #67696e;42 --line: #dedad0;43 --line-2: #bdb9ae;44 --serif: "Newsreader", "Newsreader attente", Georgia, "Times New Roman", serif;45 --sans: "Geist", "Geist attente", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;46 --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);4748 /* Régime compact (téléphone) : le cercle occupe toute la largeur */49 --S: min(100vw - 16px, 460px);50 --sym: calc(var(--S) * 0.135);51 --rs: 43; /* rayon de repos des symboles, en % du côté */52 --yc: -0.082; /* centre du symbole choisi, en fraction du côté (négatif : au-dessus du centre) */53 --zc: 1.9; /* agrandissement du symbole choisi */54 --trait-fin: 3.6;55 --pad: 16px;56}57.a-louka { --c: #e96b32; --e: #181c1a; --ct: #b0471a; }58.a-immoka { --c: #d12c37; --e: #1b1d22; --ct: #b5252f; }59.a-vraiprix { --c: #2540a6; --e: #15171c; --ct: #2540a6; }60.a-autoka { --c: #0a5f6b; --e: #14181a; --ct: #0a5f6b; }61.a-foodka { --c: #8a1f52; --e: #1b2023; --ct: #8a1f52; }62.a-fabrika { --c: #855e00; --e: #211d19; --ct: #7a5600; }6364@media (prefers-color-scheme: dark) {65 :root:not([data-theme="light"]) {66 --bg: #131416; --surface: #1a1b1e; --ink: #efede6; --ink-2: #c9c7c1; --ink-3: #989a9f; --line: #2b2d31; --line-2: #4a4c51;67 }68 :root:not([data-theme="light"]) .a-louka { --c: #e96b32; --e: #f7f6f0; --ct: #f08a57; }69 :root:not([data-theme="light"]) .a-immoka { --c: #ea5a61; --e: #f6f3ec; --ct: #f0777b; }70 :root:not([data-theme="light"]) .a-vraiprix { --c: #9db0ff; --e: #f1efe9; --ct: #9db0ff; }71 :root:not([data-theme="light"]) .a-autoka { --c: #62c6d3; --e: #eef0ec; --ct: #62c6d3; }72 :root:not([data-theme="light"]) .a-foodka { --c: #e58fb0; --e: #f2eee4; --ct: #e58fb0; }73 :root:not([data-theme="light"]) .a-fabrika { --c: #e2b553; --e: #f2ede2; --ct: #e2b553; }74}75:root[data-theme="light"] { color-scheme: light; }76:root[data-theme="dark"] {77 color-scheme: dark;78 --bg: #131416; --surface: #1a1b1e; --ink: #efede6; --ink-2: #c9c7c1; --ink-3: #989a9f; --line: #2b2d31; --line-2: #4a4c51;79}80:root[data-theme="dark"] .a-louka { --c: #e96b32; --e: #f7f6f0; --ct: #f08a57; }81:root[data-theme="dark"] .a-immoka { --c: #ea5a61; --e: #f6f3ec; --ct: #f0777b; }82:root[data-theme="dark"] .a-vraiprix { --c: #9db0ff; --e: #f1efe9; --ct: #9db0ff; }83:root[data-theme="dark"] .a-autoka { --c: #62c6d3; --e: #eef0ec; --ct: #62c6d3; }84:root[data-theme="dark"] .a-foodka { --c: #e58fb0; --e: #f2eee4; --ct: #e58fb0; }85:root[data-theme="dark"] .a-fabrika { --c: #e2b553; --e: #f2ede2; --ct: #e2b553; }8687/* Régime large (tablette, bureau) : tout tient dans le cercle */88@media (min-width: 760px) and (min-height: 620px) {89 :root {90 --S: min(720px, 100vw - 64px, 100svh - 172px);91 --sym: calc(var(--S) * 0.085);92 --rs: 39.2;93 --yc: -0.125;94 --zc: 2;95 --trait-fin: 1.7;96 --pad: 32px;97 }98}99100*, *::before, *::after { box-sizing: border-box; }101html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }102body {103 margin: 0;104 background: var(--bg);105 color: var(--ink);106 font: 400 1rem/1.5 var(--sans);107 -webkit-font-smoothing: antialiased;108 overflow-x: clip;109}110h1, h2, h3, p, ul { margin: 0; }111a { color: inherit; }112.num { font-variant-numeric: tabular-nums; }113.vh, .evitement:not(:focus) {114 position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;115 clip-path: inset(50%); white-space: nowrap; border: 0;116}117.evitement:focus {118 position: fixed; z-index: 10; top: 8px; left: 8px; padding: 10px 14px; border-radius: 8px;119 background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none;120}121:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }122123/* ── Mot-symbole ─────────────────────────────────────────────────────────── */124.mot { font-family: var(--serif); font-weight: 500; letter-spacing: -0.022em; white-space: nowrap; }125.mot .tu { color: var(--ink-3); margin: 0 0.05em; font-weight: 300; }126.mot .ka { color: var(--ct); }127.gk { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; min-height: 44px; }128.gk-sym { width: 26px; height: 26px; flex: none; }129.gk-mot { font-family: var(--serif); font-weight: 500; font-size: 1.22rem; letter-spacing: -0.022em; white-space: nowrap; }130.gk-mot > span:first-child { color: var(--ink-3); }131132/* ── En-tête ─────────────────────────────────────────────────────────────── */133.entete {134 display: flex; align-items: center; justify-content: space-between;135 height: 56px; padding: 0 var(--pad); padding-top: env(safe-area-inset-top);136 box-sizing: content-box;137}138.theme {139 width: 44px; height: 44px; margin-right: -12px; display: grid; place-items: center;140 border: 0; border-radius: 50%; background: none; color: var(--ink-2); cursor: pointer;141}142.theme svg { width: 20px; height: 20px; transition: transform 0.5s var(--ease-out); }143:root[data-theme="dark"] .theme svg { transform: rotate(180deg); }144.theme:hover { color: var(--ink); }145.theme[hidden] { display: none; }146147/* ── La scène : le plan et les volets ────────────────────────────────────── */148.scene {149 position: relative;150 width: var(--S);151 margin: 0 auto;152 container-type: inline-size;153 padding-bottom: 214px; /* place du texte sous le cercle, réservée : rien ne saute */154}155.plan { position: relative; width: 100%; aspect-ratio: 1; touch-action: pan-y; user-select: none; -webkit-user-select: none; }156.murs { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }157.mur path { stroke: var(--ink); }158.battant { stroke: var(--c); stroke-width: 10; stroke-linecap: round; fill: none; }159.gond { fill: var(--ink); }160/* l'arc de débattement n'apparaît que lorsque le battant bouge */161.arc { fill: none; stroke: var(--c); stroke-width: var(--trait-fin); opacity: 0; }162.filet { fill: none; stroke: var(--c); stroke-width: calc(var(--trait-fin) * 1.25); stroke-dasharray: 1; stroke-dashoffset: 1; }163164.portes { list-style: none; padding: 0; position: absolute; inset: 0; }165.porte {166 position: absolute;167 left: calc(50% + var(--cx) * var(--rs) * 1%);168 top: calc(50% + var(--cy) * var(--rs) * 1%);169 translate: -50% -50%;170 width: max(44px, var(--sym));171 height: max(44px, var(--sym));172 display: grid; place-items: center;173 text-decoration: none;174 -webkit-tap-highlight-color: transparent;175 touch-action: pan-y;176}177.plan.vif .porte { left: 50%; top: 50%; }178.porte-sym { display: block; width: var(--sym); height: var(--sym); }179.sym { display: block; width: 100%; height: 100%; overflow: visible; }180.porte:focus-visible { outline: none; }181.porte:focus-visible .porte-sym { outline: 2px solid var(--ink); outline-offset: 5px; border-radius: 8px; }182/* Sur téléphone le nom des portes du pourtour n'est pas dessiné (il apparaît au centre dès qu'on choisit),183 mais il reste le nom accessible du lien. */184.porte-nom {185 position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;186}187188/* Volets : empilés au même endroit, un seul visible */189.volets { position: absolute; inset: 0; pointer-events: none; text-align: center; }190.volet { visibility: hidden; opacity: 0; transition: opacity 0.2s ease, visibility 0s 0.2s; }191.volet.actif {192 visibility: visible; opacity: 1;193 /* visible (et atteignable au clavier) tout de suite ; seule l'opacité attend que le symbole soit posé */194 transition: opacity 0.5s ease var(--entree, 0s), visibility 0s;195}196.volet .tete, .volet .corps { transform: translateY(8px); transition: transform 0.2s ease; }197.volet.actif .tete, .volet.actif .corps { transform: none; transition: transform 0.7s var(--ease-out) var(--entree, 0s); }198.volet.actif .corps { transition-delay: calc(var(--entree, 0s) + 0.09s); }199.volet a { pointer-events: auto; }200.tete { position: absolute; left: 50%; translate: -50% 0; top: calc(54.6cqw + 3px); width: 56cqw; }201.corps { position: absolute; left: 0; right: 0; top: calc(100cqw + 16px); padding: 0 8px; }202.titre { font-size: 1.5rem; line-height: 1.1; }203.genre { font-size: 0.8rem; line-height: 1.3; color: var(--ink-3); margin-top: 0.2rem; }204.phrase { font-size: 0.95rem; line-height: 1.45; color: var(--ink-2); max-width: 21.5rem; margin: 0 auto; text-wrap: balance; }205.chiffre { font-size: 0.84rem; font-weight: 600; color: var(--ink); }206.volet .chiffre { min-height: 1.3rem; line-height: 1.3rem; margin-top: 0.55rem; }207.entrer {208 display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;209 min-height: 46px; padding: 0 1.15rem; margin-top: 0.75rem; border-radius: 10px;210 background: var(--ct); color: var(--bg); font-weight: 600; font-size: 0.94rem; text-decoration: none; white-space: nowrap;211}212.entrer:focus-visible { outline-color: var(--ct); }213.fleche { width: 16px; height: 16px; flex: none; transition: transform 0.24s var(--ease-out); }214a:hover > .fleche { transform: translateX(3px); }215.liens { margin-top: 0.6rem; font-size: 0.84rem; display: flex; gap: 1rem; justify-content: center; }216.liens a { color: var(--ink-2); min-height: 44px; display: inline-flex; align-items: center; }217218.volet-groupe .tete { top: 50cqw; translate: -50% -50%; width: 50cqw; }219.volet-groupe h1 { font: 500 1.42rem/1.12 var(--serif); letter-spacing: -0.022em; text-wrap: balance; }220.volet-groupe .corps { top: calc(100cqw + 14px); }221.indice { margin-top: 0.8rem; font-size: 0.86rem; color: var(--ink-3); min-height: 1.3rem; }222.si-js, .si-clavier { display: none; }223.js .si-js { display: inline; }224225/* ── Les six adresses ────────────────────────────────────────────────────── */226.adresses { max-width: 1040px; margin: 0 auto; padding: 8px var(--pad) 0; }227.adresses-tete { border-top: 1px solid var(--ink); padding: 18px 0 22px; }228.adresses-tete h2 { font: 500 1.55rem/1.15 var(--serif); letter-spacing: -0.022em; }229.adresses-tete p { color: var(--ink-2); font-size: 0.95rem; margin-top: 0.4rem; max-width: 34rem; }230.adresses-liste { list-style: none; padding: 0; }231.adresse {232 display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; row-gap: 8px; align-items: center;233 padding: 18px 0 10px; border-top: 1px solid var(--line);234}235.adresse-sym { width: 44px; height: 44px; }236.adresse h3 { font-size: 1.3rem; line-height: 1.1; font-weight: 500; }237.adresse-texte { grid-column: 1 / -1; color: var(--ink-2); font-size: 0.95rem; }238.adresse-texte .chiffre:not(:empty) { display: block; margin-top: 0.3rem; }239.adresse-lien { grid-column: 1 / -1; }240.adresse-lien > a {241 display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px;242 color: var(--ct); font-weight: 600; font-size: 0.95rem; text-decoration: none;243}244.adresse-lien > a span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }245246/* ── Pied ────────────────────────────────────────────────────────────────── */247.pied {248 max-width: 1040px; margin: 40px auto 0; padding: 18px var(--pad) calc(28px + env(safe-area-inset-bottom));249 display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px;250 border-top: 1px solid var(--line); color: var(--ink-2); font-size: 0.9rem;251}252.pied a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; display: inline-flex; min-height: 44px; align-items: center; }253254/* ── Régime large ────────────────────────────────────────────────────────── */255@media (min-width: 760px) and (min-height: 620px) {256 .entete { height: 64px; }257 .gk-mot { font-size: 1.32rem; }258 .gk-sym { width: 28px; height: 28px; }259 .scene { padding-bottom: 44px; }260 .porte-nom {261 width: auto; height: auto; overflow: visible; clip-path: none;262 /* le nom se tient du côté extérieur du symbole, dans l'axe de sa porte (le moteur suit la même formule) */263 top: 50%; left: 50%; translate: -50% -50%;264 transform: translate(calc(var(--cx) * (var(--sym) / 2 + 40px)), calc(var(--cy) * (var(--sym) / 2 + 20px)));265 font-size: 0.98rem; line-height: 1.2; color: var(--ink);266 }267 .tete { position: static; translate: none; width: auto; }268 .corps { position: static; padding: 0; }269 /* Le texte du centre est proportionnel au cercle : sa taille suit le côté de la scène (16 px à 720 px). */270 .volet {271 position: absolute; left: 50%; translate: -50% 0; top: calc(46cqw + 0.5em); width: 56cqw;272 font-size: clamp(13px, 2.222cqw, 16px);273 }274 .titre { font-size: 2em; }275 .genre { font-size: 0.86em; margin-top: 0.15em; }276 .phrase { font-size: 0.95em; margin-top: 0.5em; max-width: 23em; }277 .volet .chiffre { font-size: 0.84em; min-height: 1.5em; line-height: 1.5em; margin-top: 0.35em; }278 .entrer { font-size: 0.94em; min-height: 44px; margin-top: 0.45em; }279 .volet-groupe { top: 50cqw; translate: -50% -50%; width: 46cqw; }280 .volet-groupe .tete { width: auto; translate: none; }281 .volet-groupe h1 { font-size: 2.3em; }282 .volet-groupe .corps { margin-top: 0.9em; }283 .volet-groupe .phrase { margin-top: 0; }284 .indice { font-size: 0.86em; }285 @media (hover: hover) { .js .si-clavier { display: inline; } }286287 .adresses { padding-top: 0; }288 .adresses-tete { display: grid; grid-template-columns: 300px 1fr; column-gap: 24px; align-items: baseline; padding: 20px 0 26px; }289 .adresses-tete p { margin-top: 0; }290 .adresse { grid-template-columns: 56px 220px 1fr auto; column-gap: 24px; padding: 20px 0; }291 .adresse-sym { width: 48px; height: 48px; }292 .adresse-texte, .adresse-lien { grid-column: auto; }293 .adresse-lien { min-width: 150px; text-align: right; }294}295/* Cercle large mais petit (fenêtre basse ou étroite) : la phrase ne tient plus dans le mur, elle reste dans la liste */296@media (min-width: 760px) and (min-height: 620px) {297 @container (max-width: 650px) {298 .volet:not(.volet-groupe) .phrase { display: none; }299 .volet .chiffre { margin-top: 0.8em; }300 .entrer { margin-top: 0.7em; }301 }302}303304@media (prefers-reduced-motion: reduce) {305 *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; animation: none !important; }306 .volet.actif { transition: opacity 0.14s ease !important; }307}308:root[data-motion="off"] .volet .tete, :root[data-motion="off"] .volet .corps { transform: none; }309