/* ==========================================================================
   Page d'accueil ProAdmin (/index).
   Meme monde que l'icone : verts, eclats triangulaires, Montserrat.
   Le bloc RGPD est le seul bloc sombre de la page : c'est lui qu'on met en avant.
   ========================================================================== */

@font-face {
  font-family: "Montserrat";
  src: url("/static/assets/fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --citron: #b4f21a;
  --vert: #4cb81a;
  --vert-fonce: #2f8a12;
  --foret: #12501a;
  --nuit: #0a2410;
  --rouge: #e30b34;
  --papier: #ffffff;
  --brume: #f4f7f1;
  --encre: #14210f;
  --doux: #55664d;
  --bord: #dfe7d8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: inherit; }
:focus-visible { outline: 3px solid var(--vert); outline-offset: 3px; }

.cadre { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }

h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.1875rem; font-weight: 700; line-height: 1.25; }

.intro { max-width: 68ch; margin: 18px 0 0; color: var(--doux); }

/* --- Boutons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: filter 120ms ease, background-color 120ms ease;
}
.btn--grand { padding: 15px 28px; font-size: 1.0625rem; }
.btn--plein { background: var(--foret); color: #ffffff; }
.btn--plein:hover { filter: brightness(1.18); }
.btn--clair { background: rgba(255, 255, 255, 0.7); color: var(--foret); box-shadow: inset 0 0 0 1.5px rgba(18, 80, 26, 0.3); }
.btn--clair:hover { background: #ffffff; }
.btn--blanc { background: #ffffff; color: var(--foret); }
.btn--blanc:hover { filter: brightness(0.95); }

/* --- En-tete -------------------------------------------------------------- */

.tete {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bord);
}
.tete-barre { display: flex; align-items: center; gap: 28px; min-height: 68px; }

.marque { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; font-size: 1.25rem; text-decoration: none; color: var(--rouge); }
.marque b { font-weight: 800; color: var(--encre); }

.tete-nav { display: flex; gap: 22px; margin-left: 12px; font-size: 0.9375rem; font-weight: 600; white-space: nowrap; }
.tete-nav a { text-decoration: none; color: var(--doux); }
.tete-nav a:hover { color: var(--encre); }

.tete-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.lien-connexion { font-size: 0.9375rem; font-weight: 700; text-decoration: none; color: var(--foret); white-space: nowrap; }
.lien-connexion:hover { text-decoration: underline; }

/* Le menu des petits ecrans : un bouton a trois traits qui deroule les pages
   sous l'en-tete. Cache tant que les liens tiennent dans l'en-tete. */
.tete-menu { display: none; flex: none; }
.tete-menu summary {
  list-style: none; cursor: pointer;
  width: 42px; height: 42px; border-radius: 10px;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1.5px var(--bord); color: var(--foret);
}
.tete-menu summary::-webkit-details-marker { display: none; }
.tete-menu summary svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.tete-menu[open] summary { background: var(--brume); }
.tete-menu nav {
  position: absolute; left: 0; right: 0; top: 100%;
  display: flex; flex-direction: column; padding: 8px 16px 16px;
  background: #ffffff; border-bottom: 1px solid var(--bord);
  box-shadow: 0 18px 30px -18px rgba(10, 36, 16, 0.35);
}
.tete-menu nav a {
  padding: 13px 12px; border-radius: 10px;
  font-size: 1rem; font-weight: 700; text-decoration: none; color: var(--encre);
}
.tete-menu nav a + a { border-top: 1px solid var(--bord); }
.tete-menu nav a:hover { background: var(--brume); }
.tete-menu nav a[aria-current="page"] { color: var(--vert-fonce); }

/* --- Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 84px;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.55) 0 30%, transparent 30%),
    linear-gradient(100deg, #f6fcec 0%, #e3f6c6 48%, #a9e667 82%, #6fcd2c 100%);
}

.hero-eclat { position: absolute; clip-path: polygon(0 0, 100% 46%, 12% 100%); pointer-events: none; }
.hero-eclat--a { width: 120px; height: 140px; right: 3%; top: 8%; background: rgba(255, 255, 255, 0.45); }
.hero-eclat--b { width: 70px; height: 88px; left: 46%; bottom: 7%; background: rgba(110, 205, 44, 0.4); transform: rotate(160deg); }

.hero-grille { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }

.hero h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800; line-height: 1.04; }
.hero-chapo { max-width: 54ch; margin: 24px 0 0; font-size: 1.125rem; color: #33442c; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-note { margin: 18px 0 0; font-size: 0.9375rem; font-weight: 600; color: var(--foret); }

.hub { margin: 0; }
.hub svg { display: block; width: 100%; height: auto; font-family: inherit; }
.hub-liens path { fill: none; stroke: var(--foret); stroke-width: 2; stroke-dasharray: 3 9; stroke-linecap: round; opacity: 0.55; }
.hub-halo { fill: rgba(255, 255, 255, 0.5); }
.hub-tuile > rect { fill: #ffffff; filter: drop-shadow(0 8px 18px rgba(18, 80, 26, 0.16)); }
/* 15px : « Регистър GDPR » et « Реестр GDPR » doivent tenir dans la tuile. */
.hub-tuile text { font-size: 15px; font-weight: 700; fill: var(--encre); }
.hub-pic { fill: none; stroke: var(--vert-fonce); stroke-width: 2.200; stroke-linecap: round; stroke-linejoin: round; }
.hub-tuile--rgpd > rect { fill: var(--foret); }
.hub-tuile--rgpd text { fill: #ffffff; }
.hub-tuile--rgpd .hub-pic { stroke: var(--citron); }
.hub-email rect { fill: var(--encre); }
.hub-email text { font-size: 16px; font-weight: 600; fill: #ffffff; }

/* --- Blocs ---------------------------------------------------------------- */

.bloc { padding: 88px 0; }

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 48px; }
.trio article { padding: 28px; border-radius: 16px; background: var(--brume); }
.trio svg { width: 40px; height: 40px; margin-bottom: 18px; fill: none; stroke: var(--vert-fonce); stroke-width: 1.700; stroke-linecap: round; stroke-linejoin: round; }
.trio p { margin: 10px 0 0; color: var(--doux); font-size: 1rem; }

/* --- Le bloc RGPD --------------------------------------------------------- */

.bloc--nuit {
  color: #eef5e8;
  background:
    linear-gradient(152deg, rgba(255, 255, 255, 0.04) 0 26%, transparent 26%),
    linear-gradient(332deg, rgba(0, 0, 0, 0.26) 0 22%, transparent 22%),
    radial-gradient(120% 120% at 20% 10%, #1b4a20 0%, #103018 50%, #071a0b 100%);
}
.bloc--nuit .intro { color: #b9cdb0; }

.rgpd-tete { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: end; }

.rgpd-tete blockquote {
  margin: 0;
  padding: 26px 28px;
  border-left: 4px solid var(--citron);
  border-radius: 0 14px 14px 0;
  background: rgba(255, 255, 255, 0.06);
}
.rgpd-tete blockquote p { margin: 0; font-size: 1.125rem; font-weight: 600; line-height: 1.45; }
.rgpd-tete cite { display: block; margin-top: 12px; font-size: 0.875rem; font-style: normal; color: var(--citron); }

.droits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 56px 0 0; padding: 0; list-style: none; border-radius: 16px; overflow: hidden; background: rgba(180, 242, 26, 0.22); }
.droits li { padding: 28px; background: #0d2a14; }
.droits span { display: inline-block; margin-bottom: 14px; padding: 4px 10px; border-radius: 999px; background: var(--citron); color: var(--nuit); font-size: 0.8125rem; font-weight: 800; }
.droits p { margin: 8px 0 0; color: #b9cdb0; font-size: 1rem; }

/* --- Comparaison ---------------------------------------------------------- */

.compare { margin-top: 44px; border: 1px solid var(--bord); border-radius: 16px; overflow: hidden; }
.compare-ligne { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--bord); }
.compare-ligne > * { padding: 20px 24px; }
.compare-ligne > :nth-child(2) { color: var(--doux); }
.compare-ligne > :nth-child(3) { background: #eef9df; font-weight: 600; }
.compare-ligne--tete { border-top: 0; background: var(--brume); font-size: 0.9375rem; font-weight: 700; }
.compare-ligne--tete > :nth-child(2) { color: var(--encre); }
.compare-ligne--tete > :nth-child(3) { background: var(--foret); color: #ffffff; }

/* --- Appel final ---------------------------------------------------------- */

.appel {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  color: #ffffff;
  background:
    linear-gradient(152deg, rgba(255, 255, 255, 0.14) 0 34%, transparent 34%),
    radial-gradient(120% 140% at 50% 40%, #8fdc24 0%, #4fb81a 48%, #1f7a17 100%);
}
.hero-eclat--c { width: 110px; height: 130px; right: 6%; top: 14%; background: rgba(255, 255, 255, 0.2); }
.hero-eclat--d { width: 64px; height: 80px; left: 4%; bottom: 10%; background: rgba(255, 255, 255, 0.16); transform: rotate(170deg); }
.appel-corps { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.appel p { max-width: 56ch; margin: 14px 0 0; }

/* --- Pied ----------------------------------------------------------------- */

.pied { padding: 28px 0; border-top: 1px solid var(--bord); font-size: 0.9375rem; }
.pied-barre { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.pied nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 600; }
.pied nav a { text-decoration: none; color: var(--doux); }
.pied nav a:hover { color: var(--encre); }
.pied p { margin: 0 0 0 auto; color: var(--doux); }

/* Le cartouche : le pied de toutes les pages publiques, sombre comme celui de
   ProSuite, avec les informations légales. */
.pied--cartouche { padding: 64px 0 28px; border-top: 0; background: var(--nuit); color: #b9cdb0; font-size: 0.9375rem; }
.pied--cartouche .marque { color: #ff5a78; }
.pied--cartouche .marque b { color: #ffffff; }
.pied-grille { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.pied-marque p { max-width: 34ch; margin: 18px 0 0; line-height: 1.6; color: #9fb595; }
.pied--cartouche nav { display: flex; flex-direction: column; gap: 12px; font-weight: 500; }
.pied--cartouche nav h2 { margin: 0 0 6px; font-size: 1rem; font-weight: 800; color: #ffffff; }
.pied--cartouche nav a, .pied-bas a { text-decoration: none; color: #c9dbbf; }
.pied--cartouche nav a:hover, .pied-bas a:hover { color: var(--citron); }
.pied-bas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.pied--cartouche .pied-bas p { margin: 0; color: #9fb595; }
.pied-bas p + p { display: flex; gap: 24px; }
@media (max-width: 960px) {
  .pied-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pied-marque { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .pied--cartouche { padding-top: 44px; }
  .pied-grille { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* --- Ecrans etroits ------------------------------------------------------- */

/* Six liens dans l'en-tete. Sous 1560 px (le russe est le plus long), les
   ancres de la page d'accueil laissent la place a ODESA, Technologie et
   Documentation ; sous 1100 px, plus de liens du tout. */
/* Le russe, le plus long, n'entre a six liens qu'avec un espacement resserre. */
html[lang="ru"] .tete-nav { gap: 14px; }
@media (max-width: 1600px) {
  .tete-nav { gap: 16px; }
  html[lang="ru"] .tete-nav { gap: 10px; }
}
@media (max-width: 1560px) {
  .tete-nav a[href^="#"], .tete-nav a[href^="/index#"] { display: none; }
}
@media (max-width: 1100px) {
  .tete-nav { display: none; }
  .tete-menu { display: block; }
  .tete-actions { gap: 12px; }
}

@media (max-width: 960px) {
  .hero { padding: 48px 0 56px; }
  .hero-grille, .rgpd-tete { grid-template-columns: minmax(0, 1fr); }
  .trio { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .droits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bloc { padding: 64px 0; }
  .appel-corps { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .cadre { padding: 0 20px; }
  .tete-barre { gap: 12px; min-height: 60px; }
  .lien-connexion { display: none; }
  .tete .btn { padding: 9px 14px; font-size: 0.875rem; }
  .droits { grid-template-columns: minmax(0, 1fr); }
  .compare-ligne { grid-template-columns: minmax(0, 1fr); }
  .compare-ligne--tete { display: none; }
  .compare-ligne > * { padding: 14px 18px; }
  .compare-ligne > strong { padding-bottom: 4px; }
  .compare-ligne > span::before { content: attr(data-titre); display: block; margin-bottom: 2px; font-size: 0.75rem; font-weight: 700; color: var(--vert-fonce); }
  .pied p { margin-left: 0; }
}

/* Le nom reste sur une ligne : sur un telephone, le logo et le bouton
   rapetissent, et sous 400 px seule l'icone reste. */
@media (max-width: 480px) {
  .tete .cadre { padding: 0 16px; }
  .tete-barre { gap: 10px; }
  .tete-menu summary { width: 38px; height: 38px; }
  .tete .marque { gap: 8px; font-size: 1.0625rem; }
  .tete .marque img { width: 32px; height: 32px; }
  .tete .btn { padding: 8px 12px; font-size: 0.8125rem; }
}
@media (max-width: 400px) {
  .tete .marque span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
