
/* Ultra-modern UI layer (non-destructive overrides)
   Keeps existing pages, improves typography, spacing, components, and nav.
*/

/* Google Font is linked in head; fallbacks here */
:root{
  --bg: #0b1220;
  --surface: rgba(255,255,255,0.06);
  --surface2: rgba(255,255,255,0.10);
  --card: rgba(255,255,255,0.08);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.72);
  --brand: #3FA535;
  --brand2: #F6B500;
  --ink: #1E3A5F;
  --shadow: 0 14px 40px rgba(0,0,0,0.35);
  --radius: 18px;
  --radius2: 12px;
  --max: 1080px;
}

/* Base */
html, body { background: #0b1220; }
body{
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing: 0.1px;
}
a{ color: #9fd6ff; }
a:hover{ color: #c7e8ff; }

/* Constrain content */
.container{
  max-width: var(--max) !important;
}

/* Header hero */
#header{
  background: radial-gradient(1200px 600px at 20% 10%, rgba(63,165,53,0.26), transparent 60%),
              radial-gradient(900px 500px at 80% 15%, rgba(246,181,0,0.22), transparent 60%),
              linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.00));
}
#header .inner{
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 2.2rem 1.4rem !important;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
#header img{
  max-height: 84px;
  width: auto;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.25));
}
#header h1{
  color: var(--text) !important;
  font-weight: 800;
  letter-spacing: -0.6px;
}
#header p{ color: var(--muted) !important; }

/* Sections as cards */
.main.style1, .main.style2{
  background: transparent !important;
}
.main.style1 .container, .main.style2 .container{
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 2.2rem 1.4rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

/* Headings */
header.major h2, h2{
  color: var(--text) !important;
  font-weight: 800 !important;
  letter-spacing: -0.5px;
}
h3{ color: rgba(255,255,255,0.88) !important; font-weight: 750; }
p, li{ color: var(--muted) !important; }

/* Buttons */
.button, input[type="submit"], input[type="reset"], button{
  border-radius: 999px !important;
  font-weight: 750 !important;
  letter-spacing: 0.1px;
}
.button.primary{
  background: linear-gradient(135deg, var(--brand), #2f8b2b) !important;
  box-shadow: 0 12px 26px rgba(63,165,53,0.25);
}
.button.wide.primary, .button.primary:hover{
  filter: brightness(1.03);
}
.button:not(.primary){
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
}

/* Nav modern (works with our existing mobile toggle) */
nav{
  margin: 18px auto 0;
  max-width: var(--max);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  padding: 8px 10px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
nav ul{ justify-content: center; gap: 0.25rem; }
nav ul li a{
  color: var(--text) !important;
  border-radius: 999px;
  padding: 10px 14px !important;
  transition: all .15s ease;
}
nav ul li a:hover{
  background: rgba(255,255,255,0.08);
}
nav ul li .sous{
  background: rgba(15,20,35,0.96);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 10px;
  box-shadow: var(--shadow);
}
nav ul li .sous li a{
  border-radius: 10px;
  padding: 10px 12px !important;
}

/* Info callout blocks (we injected earlier) */
div[style*="border-left:4px"]{
  border-radius: 16px;
  border-left: 4px solid rgba(159,214,255,0.9) !important;
  background: rgba(159,214,255,0.08) !important;
}

/* Footer */
#footer{
  background: transparent !important;
}
#footer .copyright{
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 18px 14px;
  max-width: var(--max);
  margin: 18px auto;
  box-shadow: var(--shadow);
}

/* Forms */
input, textarea, select{
  border-radius: 14px !important;
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: var(--text) !important;
}
input::placeholder, textarea::placeholder{ color: rgba(255,255,255,0.55) !important; }

/* Mobile tweaks */
@media screen and (max-width: 736px){
  nav{ border-radius: 18px; padding: 10px; }
  #header .inner{ padding: 1.6rem 1rem !important; }
  .main.style1 .container, .main.style2 .container{ padding: 1.6rem 1rem; }
}
