/* BLUECHIP : feuille de style du site du groupe. Aucune dépendance externe, polices système. */

:root {
  --fond: #f4f3ee;
  --fond-2: #eae9e2;
  --surface: #ffffff;
  --encre: #12151d;
  --encre-2: #363b47;
  --discret: #575d69;
  --trait: #d8d7cd;
  --trait-fort: #c3c2b6;
  --bleu: #1B4FD8;
  --bleu-vif: #1B4FD8;
  --bleu-doux: #e1e7f4;
  --vert: #1d5a4c;
  --vert-doux: #dcebe4;
  --nuit: #0d1018;
  --nuit-2: #151a26;
  --nuit-encre: #ecedf2;
  --nuit-discret: #a9aebb;
  --nuit-bleu: #9ab6f2;
  --ombre: 0 1px 2px rgb(18 21 29 / .06), 0 12px 32px -12px rgb(18 21 29 / .18);
  --rayon: 14px;
  --serif: "New York", ui-serif, "Iowan Old Style", "Charter", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --largeur: 1160px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fond: #0d1018;
    --fond-2: #131722;
    --surface: #181d29;
    --encre: #ecedf2;
    --encre-2: #c9ccd5;
    --discret: #a1a6b2;
    --trait: #262c3a;
    --trait-fort: #374055;
    --bleu: #8eaef0;
    --bleu-vif: #5b86e0;
    --bleu-doux: #18233d;
    --vert: #74c7ab;
    --vert-doux: #17322b;
    --nuit: #080a10;
    --nuit-2: #121722;
    --ombre: 0 1px 2px rgb(0 0 0 / .4), 0 16px 40px -16px rgb(0 0 0 / .7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font: 17px/1.6 var(--sans);
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.28rem; letter-spacing: -.005em; }
em { font-style: italic; color: var(--bleu); }
:focus-visible { outline: 3px solid var(--bleu-vif); outline-offset: 3px; border-radius: 6px; }

.evitement { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--encre); color: var(--fond); padding: .6em 1em; border-radius: 8px; }
.evitement:focus { left: 8px; }
.conteneur { width: min(100% - 32px, var(--largeur)); margin-inline: auto; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--fond) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--trait) 70%, transparent);
}
.entete .conteneur { display: flex; align-items: center; gap: 24px; height: 64px; }
.marque { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 1.18rem; letter-spacing: .12em; }
.marque svg, .marque img { width: 30px; height: 30px; flex: none; }
.marque .logo-complet { width: auto; height: 46px; aspect-ratio: 488 / 282; color: var(--bleu-vif); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--encre-2); font-size: .94rem; }
.nav a:hover { color: var(--encre); }
@media (max-width: 920px) { .nav { display: none; } .entete .bouton { margin-left: auto; } }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .7em 1.25em; border-radius: 999px;
  font: 600 .98rem/1.1 var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.bouton:hover { transform: translateY(-1px); }
.bouton-plein { background: var(--encre); color: var(--fond); }
.bouton-plein:hover { background: color-mix(in srgb, var(--encre) 84%, var(--bleu-vif)); }
.bouton-bleu { background: var(--bleu); color: #fff; }
.bouton-bleu:hover { background: color-mix(in srgb, var(--bleu) 85%, #000); }
@media (prefers-color-scheme: dark) { .bouton-bleu { color: var(--fond); } .bouton-bleu:hover { background: color-mix(in srgb, var(--bleu) 85%, #fff); } }
.bouton-trait { border-color: var(--trait-fort); color: var(--encre); background: transparent; }
.bouton-trait:hover { border-color: var(--encre); }
.bouton-petit { min-height: 38px; padding: .5em 1em; font-size: .9rem; }
.bouton svg { width: 18px; height: 18px; }

/* ---------- Sections ---------- */
section { padding: clamp(64px, 9vw, 120px) 0; }
.surtitre { display: inline-flex; align-items: center; gap: .6em; font: 600 .78rem/1 var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--bleu); margin-bottom: 1.1rem; }
.surtitre::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.chapo { font-size: clamp(1.06rem, 1.6vw, 1.22rem); color: var(--encre-2); max-width: 62ch; }
.titre-section { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.alt { background: var(--fond-2); border-block: 1px solid var(--trait); }

/* ---------- Héro ---------- */
.hero { padding-top: clamp(48px, 7vw, 96px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--trait) 1px, transparent 1px), linear-gradient(90deg, var(--trait) 1px, transparent 1px);
  background-size: 44px 44px; opacity: .45;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%);
}
.hero .conteneur { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero .chapo { margin-bottom: 1.8rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 920px) { .hero .conteneur { grid-template-columns: 1fr; } }

/* ---------- Schéma du groupe ---------- */
.schema { margin: 0; background: var(--surface); border: 1px solid var(--trait); border-radius: 18px; padding: clamp(14px, 3vw, 28px); box-shadow: var(--ombre); }
.schema svg { width: 100%; max-width: 520px; margin-inline: auto; }
.schema svg text { font-family: var(--sans); }
.s-trait { stroke: var(--trait-fort); }
.s-bleu { stroke: var(--bleu-vif); }
.f-surface { fill: var(--surface); }
.f-fond { fill: var(--fond); }
.f-fond2 { fill: var(--fond-2); }
.f-encre { fill: var(--encre); }
.f-encre2 { fill: var(--encre-2); }
.f-discret { fill: var(--discret); }
.f-bleu { fill: var(--bleu); }
.f-bleu-plein { fill: var(--bleu-vif); }
.f-bleu-doux { fill: var(--bleu-doux); }
.f-inverse { fill: var(--fond); }
.flux { stroke-dasharray: 4 6; animation: flux 1.6s linear infinite; }
@keyframes flux { to { stroke-dashoffset: -20; } }

/* ---------- Pôles ---------- */
.poles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pole { background: var(--surface); border: 1px solid var(--trait); border-radius: 18px; padding: 28px 26px 26px; display: flex; flex-direction: column; gap: 12px; }
.pole .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--bleu-doux); color: var(--bleu); }
.pole .ico svg { width: 23px; height: 23px; }
.pole h3 { margin: 6px 0 0; font-size: 1.45rem; }
.pole p { margin: 0; color: var(--encre-2); font-size: .97rem; }
.pole .points { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; font-size: .93rem; color: var(--encre-2); }
.pole .points li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.pole .points svg { width: 16px; height: 16px; color: var(--bleu); margin-top: 4px; }
.pole .bas { margin-top: auto; padding-top: 10px; }
@media (max-width: 860px) { .poles { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.appel { text-align: center; }
.appel .boite { background: var(--nuit); color: var(--nuit-encre); border: 1px solid #232b3d; border-radius: 26px; padding: clamp(40px, 7vw, 88px) clamp(20px, 5vw, 64px); position: relative; overflow: hidden; }
.appel .boite::before { content: ""; position: absolute; inset: -40%; background: radial-gradient(circle at 50% 0%, rgb(47 95 196 / .45), transparent 55%); pointer-events: none; }
.appel .surtitre { color: var(--nuit-bleu); position: relative; }
.appel h2 { color: #f3f4f8; max-width: 22ch; margin-inline: auto; position: relative; }
.appel p { color: var(--nuit-discret); max-width: 56ch; margin: 0 auto 2rem; position: relative; }
.appel .actions { justify-content: center; position: relative; }
.appel .bouton-plein { background: #f3f4f8; color: #0d1018; }
.appel .bouton-plein:hover { background: #fff; }
.appel .bouton-trait { color: #f3f4f8; border-color: rgb(243 244 248 / .4); }
.appel .bouton-trait:hover { border-color: #f3f4f8; }
.appel .adresse { margin: 1.6rem auto 0; font-size: .95rem; }
.appel .adresse a { color: #f3f4f8; }
.appel :focus-visible { outline-color: var(--nuit-bleu); }

/* ---------- Pied ---------- */
.pied { padding: 40px 0 48px; border-top: 1px solid var(--trait); color: var(--discret); font-size: .9rem; }
.pied .conteneur { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.pied nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.pied a { text-decoration: none; }
.pied a:hover { color: var(--encre); text-decoration: underline; }
.pied .marque { color: var(--encre); font-size: 1rem; }
.pied .marque svg, .pied .marque img { width: 24px; height: 24px; }
.pied .marque .logo-complet { width: auto; height: 38px; }

/* ---------- Pages simples (mentions, 404) ---------- */
.page-simple { padding: clamp(48px, 8vw, 96px) 0; }
.page-simple .conteneur { max-width: 760px; }
.page-simple h2 { font-size: 1.45rem; margin-top: 2.2em; }
.page-simple p, .page-simple li { color: var(--encre-2); }
.erreur { min-height: 62vh; display: grid; place-items: center; text-align: center; }
.erreur .code { font: 500 .9rem var(--mono); color: var(--bleu); letter-spacing: .1em; }

/* ---------- Orbite du groupe (héro) : assets/orbite.js ---------- */
.orb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.orbite-cadre { margin: 0; width: 100%; max-width: 580px; justify-self: center; }
.orbite {
  --orb-accent: var(--bleu-vif);
  --orb-trait: var(--trait-fort);
  --orb-vif: #eef3ff;
  --orb-force: 1.5;
  --orb-k: 1;
  position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; contain: layout paint;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab;
  -webkit-tap-highlight-color: transparent;
}
@media (prefers-color-scheme: dark) { .orbite { --orb-vif: #e6eeff; --orb-force: 1; } }
.orbite.orb-glisse { cursor: grabbing; }
.orb-toile { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.orbite a { -webkit-user-drag: none; }

/* Sans script : les activités en grille autour du groupe ; les satellites restent cachés. */
.orbite:not(.orb-pret) { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 18px 10px; }
.orbite:not(.orb-pret) .orb-centre { flex-basis: 100%; }
.orbite:not(.orb-pret) .orb-satellite { display: none; }

.orb-noeud, .orb-centre, .orb-satellite {
  display: flex; flex-direction: column; align-items: center; gap: 4px; width: 132px; text-align: center; text-decoration: none; color: var(--encre);
}
.orb-pret .orb-noeud, .orb-pret .orb-satellite { position: absolute; left: 0; top: 0; margin: -22px 0 0 -66px; transform-origin: 66px 22px; will-change: transform, opacity; }
.orb-pret .orb-principal { margin-top: -30px; transform-origin: 66px 30px; }
.orb-pret .orb-centre { position: absolute; left: 50%; top: 50%; margin: -34px 0 0 -66px; z-index: 30; transform: scale(var(--orb-k)); transform-origin: 66px 34px; pointer-events: none; }
.orb-pastille {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: radial-gradient(circle at 50% 35%, var(--surface), color-mix(in srgb, var(--bleu-doux) 80%, var(--surface)));
  border: 1px solid color-mix(in srgb, var(--orb-accent) 40%, var(--trait));
  color: var(--bleu);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--orb-accent) 8%, transparent), 0 0 18px -2px color-mix(in srgb, var(--orb-accent) 40%, transparent);
  transition: box-shadow .35s ease, transform .35s ease;
}
.orb-pastille svg { width: 22px; height: 22px; }
.orb-principal .orb-pastille { width: 60px; height: 60px; }
.orb-principal .orb-pastille svg { width: 28px; height: 28px; }
.orb-centre .orb-pastille {
  width: 68px; height: 68px; background: var(--encre); border-color: var(--encre);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--orb-accent) 14%, transparent), 0 0 34px 4px color-mix(in srgb, var(--orb-accent) 45%, transparent);
  animation: orb-souffle 3.2s ease-in-out infinite;
}
.orb-centre .orb-pastille svg { width: 42px; height: 42px; }
.orb-centre .orb-pastille .logo-b { width: 32px; height: 34px; color: var(--fond); }
.orb-nom { font: 600 .82rem/1.15 var(--sans); color: var(--encre); text-shadow: 0 0 6px var(--fond), 0 0 2px var(--fond); }
.orb-principal .orb-nom { font: 600 1.02rem/1.15 var(--serif); }
.orb-sous { font-size: .76rem; line-height: 1.2; color: var(--discret); text-shadow: 0 0 6px var(--fond); }
.orb-satellite .orb-nom { font-weight: 600; color: var(--bleu); opacity: 0; transform: translateY(-3px); transition: opacity .3s ease, transform .3s ease; }
.orb-satellite.orb-actif .orb-nom { opacity: 1; transform: none; }
.orb-centre .orb-nom { font: 600 .98rem/1.1 var(--serif); letter-spacing: .14em; }
.orb-satellite.orb-loin .orb-nom { visibility: hidden; }
.orb-principal:hover .orb-pastille, .orb-principal:focus-visible .orb-pastille, .orb-actif .orb-pastille {
  transform: scale(1.08);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--orb-accent) 22%, transparent), 0 0 26px 4px color-mix(in srgb, var(--orb-accent) 70%, transparent);
}
.orb-principal:hover .orb-nom { color: var(--bleu); }
.orb-principal:focus-visible { outline: none; z-index: 100 !important; opacity: 1 !important; }
.orb-principal:focus-visible .orb-pastille { outline: 3px solid var(--bleu-vif); outline-offset: 3px; }
.orb-principal:focus-visible .orb-nom, .orb-principal:focus-visible .orb-sous { visibility: visible; }
.orb-aide { margin: 6px 0 0; text-align: center; font-size: .78rem; color: var(--discret); }
@keyframes orb-souffle { 0%, 100% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--orb-accent) 14%, transparent), 0 0 30px 2px color-mix(in srgb, var(--orb-accent) 38%, transparent); } 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--orb-accent) 18%, transparent), 0 0 44px 8px color-mix(in srgb, var(--orb-accent) 55%, transparent); } }
@media (prefers-reduced-motion: reduce) { .orb-aide { display: none; } }

/* Symbole Chipset (C aux six segments), palette claire / sombre */
:root { --cs1: #8250DF; --cs2: #DCD2B8; --cs3: #30363F; --cs4: #148A73; --cs5: #CF222E; --cs6: #0969DA; }
@media (prefers-color-scheme: dark) {
  :root { --cs1: #A78BFA; --cs2: #EDE6D6; --cs3: #6B7482; --cs4: #2EC8A6; --cs5: #F85149; --cs6: #58A6FF; }
}
.cs1 { stroke: var(--cs1); } .cs2 { stroke: var(--cs2); } .cs3 { stroke: var(--cs3); }
.cs4 { stroke: var(--cs4); } .cs5 { stroke: var(--cs5); } .cs6 { stroke: var(--cs6); }
.pole .ico .logo-c { width: 28px; height: 28px; }
.orb-principal .orb-pastille .logo-c { width: 32px; height: 32px; }
/* Logo de Cotoyant (écusson, couleur d’origine) */
.pole .ico .logo-cot { width: 26px; height: 29px; }
.orb-principal .orb-pastille .logo-cot { width: 28px; height: 31px; }

/* Logos des activités (fichiers SVG, couleurs d’origine) */
.pole .ico .logo-img { width: 30px; height: 30px; border-radius: 8px; display: block; }
.orb-principal .orb-pastille .logo-img { width: 30px; height: 30px; border-radius: 8px; display: block; }

/* ---------- Sélecteur de langue ---------- */
.entete .langues { margin-left: auto; }
.entete .nav + .langues { margin-left: 0; }
.entete .langues ~ .bouton { margin-left: 0; }
@media (max-width: 920px) { .entete .nav + .langues { margin-left: auto; } }
@media (max-width: 560px) {
  .entete .conteneur { gap: 10px; }
}
/* Traductions des mentions légales : la version française fait foi */
.note-langue { padding: .8em 1em; border-left: 3px solid var(--trait-fort); background: var(--fond-2); border-radius: 6px; font-size: .92rem; }
.erreur-langues { margin-top: 1.4rem; font-size: .9rem; color: var(--discret); }
.erreur-langues span { display: inline-block; margin: 0 .6em; }

/* ---------- Sélecteur de langue à drapeaux : bouton + menu déroulant (remplace FR · EN · ES · DE) ---------- */
.langues { position: relative; display: block; font: 500 .92rem/1.3 var(--sans); letter-spacing: 0; }
.langues-bouton { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border-radius: 50%; border: 1px solid var(--trait); background: transparent; color: var(--encre); cursor: pointer; transition: border-color .15s, background .15s; }
.langues-bouton:hover, .langues-bouton[aria-expanded="true"] { border-color: var(--discret); background: var(--fond-2); }
.langues-bouton:focus-visible, .langues-menu a:focus-visible { outline: 2px solid var(--encre); outline-offset: 2px; }
.langues img { display: block; width: 22px; height: 22px; flex: none; border-radius: 50%; box-shadow: 0 0 0 1px rgb(0 0 0 / .12); }
.langues-menu { display: none; position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; min-width: 176px; margin: 0; padding: 6px; list-style: none; background: var(--surface); color: var(--encre); border: 1px solid var(--trait); border-radius: 12px; box-shadow: 0 12px 32px -8px rgb(0 0 0 / .28); }
.langues.ouvert .langues-menu { display: block; }
@media (scripting: none) { .langues:hover .langues-menu, .langues:focus-within .langues-menu { display: block; } }
.langues-menu li { margin: 0; padding: 0; }
.langues-menu a { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 8px 10px; border-radius: 8px; color: var(--encre); text-decoration: none; white-space: nowrap; }
.langues-menu a:hover { background: var(--fond-2); }
.langues-menu a[aria-current] { font-weight: 600; background: var(--fond-2); }
.langues-menu a[aria-current]::after { content: "✓"; margin-left: auto; padding-left: 12px; color: var(--discret); }
/* Petit écran : le menu s'ancre au bord droit de l'en-tête (le bouton n'est pas au bord) */
@media (max-width: 560px) { .langues { position: static; } .langues-menu { top: calc(100% + 6px); right: 16px; } }
