/* PRIMUD Glambot : charte commune (public + admin) */
:root {
  --fond: #04120F;
  --fond-2: #06140F;
  --fond-3: #0B1F19;
  --vert: #0F3B2E;
  --vert-clair: #1D5C47;
  --or: #D7B45F;
  --or-clair: #EDCD78;
  --or-pale: #F3E6C2;
  --or-sombre: #8C6A24;
  --creme: #EEE7D8;
  --creme-2: rgba(238, 231, 216, .62);
  --creme-3: rgba(238, 231, 216, .38);
  --ligne: rgba(215, 180, 95, .22);
  --ligne-2: rgba(215, 180, 95, .45);
  --danger: #E0795F;
  --succes: #6FCF97;
  --degrade-or: linear-gradient(180deg, #F7E7B4 0%, #EDCD78 35%, #D7B45F 60%, #9A7426 100%);
  --titre: "Montserrat", system-ui, sans-serif;
  --serif: "Inter", system-ui, sans-serif;
  --etroit: "Montserrat", system-ui, sans-serif;
  --texte: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--fond);
  color: var(--creme);
  font-family: var(--texte);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--or-clair); text-decoration: none; }
img, video { max-width: 100%; display: block; }
button { font: inherit; }

/* grain de pellicule */
.grain::after {
  content: ""; position: fixed; inset: -50%; pointer-events: none; z-index: 50; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-3%)} 75%{transform:translate(-2%,-1%)} 100%{transform:translate(1%,3%)} }

/* projecteur */
.projecteur {
  position: absolute; inset: 0 0 auto 0; height: 100vh; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 38% 70% at 50% -8%, rgba(243, 230, 194, .26), rgba(237, 205, 120, .08) 45%, transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(29, 92, 71, .45), transparent 70%);
}

.conteneur { width: min(1180px, 100% - 32px); margin-inline: auto; position: relative; z-index: 1; }

/* en-tête */
.entete { position: relative; z-index: 2; }
.entete__ligne { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 16px; }
.marque { display: flex; align-items: center; gap: 12px; color: var(--creme); }
.marque img { height: 44px; width: auto; }
.marque__mots { display: flex; flex-direction: column; line-height: 1.05; }
.marque__nom { font-family: var(--titre); font-weight: 800; letter-spacing: .14em; font-size: 17px; color: var(--or-clair); }
.marque__sous { font-family: var(--etroit); font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--creme-2); }

.titre-or {
  font-family: var(--titre); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; line-height: 1;
  background: var(--degrade-or); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 18px rgba(215, 180, 95, .25));
}
.surtitre { font-family: var(--etroit); font-weight: 600; text-transform: uppercase; letter-spacing: .34em; font-size: 12px; color: var(--or); }
.italique { font-family: var(--texte); font-size: 17px; line-height: 1.5; color: var(--creme-2); }

/* boutons */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
  font-family: var(--etroit); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: 13px;
  padding: 15px 26px; border-radius: 999px; border: 1px solid var(--ligne-2); color: var(--creme); background: rgba(15, 59, 46, .35);
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.bouton:hover { border-color: var(--or); background: rgba(15, 59, 46, .6); }
.bouton:active { transform: scale(.98); }
.bouton--or { background: var(--degrade-or); color: #17140D; border-color: transparent; font-weight: 600; box-shadow: 0 10px 30px -10px rgba(215, 180, 95, .6); }
.bouton--or:hover { background: var(--degrade-or); filter: brightness(1.06); }
.bouton[disabled] { opacity: .45; cursor: default; }

/* cartes / billets */
.carte {
  position: relative; border: 1px solid var(--ligne); border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, rgba(15, 59, 46, .55), rgba(4, 18, 15, .9));
}
.carte::before {
  content: ""; position: absolute; inset: 6px; border: 1px solid rgba(215, 180, 95, .14); border-radius: 13px; pointer-events: none;
}

.champ {
  width: 100%; background: rgba(4, 18, 15, .7); color: var(--creme); border: 1px solid var(--ligne-2); border-radius: 12px;
  padding: 14px 16px; font-size: 16px; outline: none;
}
.champ:focus { border-color: var(--or); box-shadow: 0 0 0 3px rgba(215, 180, 95, .15); }

.pied { border-top: 1px solid var(--ligne); margin-top: 80px; padding: 28px 0 40px; color: var(--creme-3); font-size: 13px; }
.pied .conteneur { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) { .grain::after { animation: none; } }
