/* Commun aux pages du site (statut, confidentialité) : couleurs, polices, fond animé, bandeau du haut avec la
   navigation, en-tête de page, titres de section et pied de page. Chaque page n'ajoute que ce qui lui est propre. */

/* Polices de l'app, servies sur place (sous-ensemble latin, SIL OFL : polices/LICENSES.txt) : le visiteur ne contacte
   aucun autre site. */
@font-face { font-family: Rajdhani; src: url(polices/Rajdhani-SemiBold.woff2) format("woff2"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: Rajdhani; src: url(polices/Rajdhani-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Barlow; src: url(polices/Barlow-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Barlow; src: url(polices/Barlow-Medium.woff2) format("woff2"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(polices/JetBrainsMono.woff2) format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #090c10; --panel: #10151b; --yellow: #fcee0a; --cyan: #6debf6;
  --green: #9aefb6; --red: #ff7486; --text: #eef1ef; --soft: #c0c9ca;
  --muted: #929fa5; --line: #2d363d;
  --display: Rajdhani, "Arial Narrow", sans-serif;
  --body: Barlow, system-ui, sans-serif;
  --mono: "JetBrains Mono", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; scrollbar-gutter: stable; }
/* Une langue visible sur toutes les pages, y compris dans le pied de page commun. */
html[data-lang="fr"] .lang-en, html[data-lang="en"] .lang-fr { display: none !important; }

/* Fond : halo cyan en haut à droite, grille fixe qui s'efface vers le bas, grille lumineuse qui dérive lentement. */
body {
  margin: 0; color: var(--text); background: var(--bg);
  font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; isolation: isolate;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  /* Le halo et les grilles ont la taille de l'écran, même sur un long document. */
  background-image: radial-gradient(ellipse at 90% 4%, #16303566, transparent 45%),
    linear-gradient(#ffffff03 1px, transparent 1px),
    linear-gradient(#9cbdc707 1px, transparent 1px), linear-gradient(90deg, #9cbdc707 1px, transparent 1px);
  background-size: auto, 64px 64px, 64px 64px, 64px 64px;
  -webkit-mask-image: linear-gradient(#000, transparent 85%);
  mask-image: linear-gradient(#000, transparent 85%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(ellipse at center, #37dce914, transparent 60%),
    linear-gradient(#6debf62b 1px, transparent 1px),
    linear-gradient(90deg, #6debf62b 1px, transparent 1px);
  background-size: 180% 180%, 64px 64px, 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 28% 38% at center, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 28% 38% at center, #000 10%, transparent 75%);
  -webkit-mask-size: 180% 160%; mask-size: 180% 160%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  animation: ambient-grid 24s ease-in-out infinite alternate;
}
@keyframes ambient-grid {
  from { -webkit-mask-position: 0% 30%; mask-position: 0% 30%; background-position: 0% 0%, 0 0, 0 0; }
  to { -webkit-mask-position: 100% 80%; mask-position: 100% 80%; background-position: 100% 100%, 64px 32px, 64px 32px; }
}

::selection { background: var(--yellow); color: var(--bg); }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 6px; }
.skip { position: absolute; top: -100px; left: 20px; z-index: 10; padding: 10px 16px; background: var(--yellow); color: var(--bg); }
.skip:focus { top: 16px; }
.page {
  width: min(1160px, calc(100% - 80px)); margin: 0 auto;
  min-height: 100vh; min-height: 100svh; min-height: 100dvh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }

/* Bandeau du haut : marque, navigation entre les pages, langue. Un trait cyan balaie le filet du bas. */
.top {
  position: relative; flex-shrink: 0; display: grid; grid-template-columns: 220px minmax(0, 1fr) auto;
  align-items: center; gap: 24px; min-height: 95px; padding: 25px 0; border-bottom: 1px solid var(--line);
}
.top::after {
  content: ""; position: absolute; bottom: -1px; left: 0; width: 100%; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent) no-repeat;
  background-size: 140px 1px; animation: signal-sweep 11s linear infinite;
}
@keyframes signal-sweep { from { background-position: -140px 0; } to { background-position: calc(100% + 140px) 0; } }
.identity { display: flex; gap: 13px; align-items: center; min-width: 0; color: inherit; text-decoration: none; }
.identity > div { min-width: 0; }
.brand-mark { display: block; width: 35px; height: 35px; flex: none; border-radius: 22%; object-fit: contain; }
.brand-name { font: 700 21px/1 var(--display); letter-spacing: 1.1px; white-space: nowrap; }
.brand-name span { color: var(--yellow); }
.brand-label { margin-top: 6px; font: 400 10px/1.3 var(--mono); letter-spacing: 1.9px; color: var(--muted); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-meta { display: flex; align-items: center; gap: 20px; }

/* Navigation : onglets à coin coupé, la page ouverte en jaune. */
.site-nav { display: flex; gap: 6px; margin: 0; }
.site-nav a {
  --cut: 8px; position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 12px;
  color: var(--muted); text-decoration: none; font: 500 10px var(--mono); letter-spacing: 1.5px; text-transform: uppercase;
  --edge: var(--line); border: 1px solid var(--edge); background: #10151bb3;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  transition: color .15s, border-color .15s, background .15s;
}
/* Coin coupé : le clip-path retire aussi la bordure, le trait en biais est redessiné pour fermer le coin (à moitié
   rogné par le clip-path, d’où son épaisseur). */
.site-nav a::before {
  content: ""; position: absolute; top: -1px; right: -1px; width: var(--cut); height: var(--cut); pointer-events: none;
  background: linear-gradient(to top right, transparent calc(50% - 1.4px), var(--edge) calc(50% - 1.4px),
    var(--edge) calc(50% + 1.4px), transparent calc(50% + 1.4px));
}
.site-nav a span { color: var(--cyan); }
.site-nav b { font-weight: inherit; }
.site-nav a:hover { color: var(--text); --edge: #4a565e; }
.site-nav a[aria-current="page"] { color: var(--yellow); --edge: #fcee0a55; background: #fcee0a10; }
.site-nav a[aria-current="page"] span { color: var(--yellow); }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 14px; bottom: -1px; height: 2px; background: var(--yellow); }

.lang { display: flex; border: 1px solid var(--line); }
.lang button { padding: 8px 9px; border: 0; background: none; color: var(--muted); font: 500 10px var(--mono); letter-spacing: 1.2px; cursor: pointer; }
.lang button + button { border-left: 1px solid var(--line); }
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { color: var(--yellow); background: #fcee0a10; }

/* En-tête de page : surtitre, grand titre deux tons, texte à droite avec son filet cyan. */
.hero { display: grid; grid-template-columns: 1.45fr 1fr; gap: 44px; align-items: end; padding: 52px 0 38px; }
.eyebrow { margin: 0 0 15px; font: 400 10px var(--mono); color: var(--muted); letter-spacing: 2.1px; text-transform: uppercase; }
.eyebrow span { color: var(--yellow); padding-right: 11px; }
h1 { margin: 0; width: fit-content; font: 700 clamp(46px, 6.2vw, 80px)/.82 var(--display); letter-spacing: -2.4px; text-transform: uppercase; }
h1 span { display: block; }
h1 .cyber { color: var(--yellow); }
h1 .cardex { padding-top: 6px; color: var(--text); }
.hero-copy { position: relative; padding: 22px 0 3px 24px; border-left: 1px solid #57636a; }
.hero-copy::before { content: ""; position: absolute; top: 0; left: -1px; width: 2px; height: 24px; background: var(--cyan); }
.hero-copy p { margin: 0; max-width: 34ch; color: var(--soft); font-size: 17px; line-height: 1.65; }
.hero-copy strong { font-weight: 500; color: var(--text); }
.hero-copy .local { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--muted); font: 400 11px/1.7 var(--mono); }
.local svg { width: 14px; height: 14px; flex: none; color: var(--cyan); }

.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 37px 0 15px; }
.section-heading h2 { margin: 0; font: 500 11px var(--mono); letter-spacing: 1.7px; text-transform: uppercase; color: var(--soft); }
.section-heading h2 span { color: var(--yellow); margin-right: 13px; }
.section-heading .section-meta { font: 400 10px var(--mono); letter-spacing: 1.2px; color: var(--muted); text-transform: uppercase; }

footer { flex-shrink: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: end; margin-top: auto; padding: 29px 0 30px; }
footer p { margin: 0; max-width: 86ch; color: var(--muted); font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.footer-contact { margin-top: 8px; }
.legal-links { margin-top: 8px !important; }
.legal-links a { color: var(--soft); text-decoration: underline; text-decoration-color: #fcee0a66; text-underline-offset: 3px; }
.legal-links a:hover { color: var(--yellow); }
footer .transmission { justify-self: end; max-width: 100%; }
footer .end-mark { display: block; margin: 0; padding: 0; border: 0; background: none; color: var(--muted); font: 400 11px/1.6 var(--mono); letter-spacing: 1px; overflow-wrap: anywhere; text-align: left; }
footer button.end-mark { cursor: pointer; }
footer button.end-mark:hover { color: var(--cyan); }

@media (min-width: 1500px) { .hero { padding-top: 66px; padding-bottom: 44px; } }
@media (max-width: 1060px) { .site-nav a { padding: 9px 11px 9px 10px; letter-spacing: 1px; } }
@media (max-width: 930px) {
  .page { width: calc(100% - 48px); }
  .hero { grid-template-columns: 1.15fr 1fr; gap: 28px; padding-top: 40px; }
  h1 { font-size: clamp(44px, 7.4vw, 66px); letter-spacing: -2px; }
  .hero-copy p { font-size: 15px; }
  /* La navigation passe sur sa propre ligne, sous la marque. */
  .top { grid-template-columns: minmax(0, 1fr) auto; row-gap: 16px; min-height: 0; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .site-nav a { flex: 1; justify-content: center; }
}
@media (max-width: 650px) {
  .page { width: calc(100% - 36px); }
  .top { gap: 12px; padding: 20px 0 16px; }
  .top-meta { gap: 8px; }
  .brand-name { font-size: 18px; letter-spacing: .6px; } .brand-label { font-size: 10px; letter-spacing: 1px; }
  .brand-mark { width: 29px; height: 29px; } .identity { gap: 9px; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding: 34px 0 26px; }
  h1 { font-size: clamp(50px, 15vw, 70px); line-height: .8; letter-spacing: -2px; }
  .eyebrow { font-size: 10px; letter-spacing: 1.6px; margin-bottom: 16px; }
  .hero-copy { padding: 0 0 0 15px; }
  .hero-copy p { font-size: 15px; max-width: 39ch; line-height: 1.6; }
  .hero-copy .local { margin-top: 11px; }
  .section-heading { padding-top: 29px; }
  .section-heading h2 { font-size: 10px; letter-spacing: 1.1px; }
  .section-heading .section-meta { font-size: 10px; letter-spacing: .6px; }
  footer { grid-template-columns: 1fr; gap: 18px; padding-top: 24px; }
  footer .transmission { justify-self: start; }
}
@media (max-width: 360px) {
  .top { column-gap: 8px; }
  .brand-name { font-size: 16px; }
  .brand-mark { width: 26px; height: 26px; }
  .identity { gap: 7px; }
  .site-nav a { gap: 5px; padding-right: 8px; padding-left: 8px; letter-spacing: .5px; }
}

/* Mouvement réduit demandé par le téléphone : tout est immobile. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
