/* Modern Light Theme for Football President Home Page */
/*
   Palette:
   --bg            : main background (white)
   --bg-dark       : subtle section background (light gray)
   --accent        : primary brand color (blue)
   --accent-light  : lighter accent for gradients
   --text          : primary text color (dark gray)
   --muted         : secondary text (mid gray)
   --border        : border/shadow subtle line
   --line          : generic line color
 */

:root {
  --bg: #ffffff;
  --bg-dark: #f7f7f7;
  --accent: #0066cc;
  --accent-light: #3399ff;
  --text: #333333;
  --muted: #777777;
  --border: rgba(0, 0, 0, 0.12);
  --line: rgba(0, 0, 0, 0.08);
}

/* Global reset and base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.sa {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

.sa a { color: var(--accent); text-decoration: underline; }
.sa h1, .sa h2, .sa h3 { color: var(--text); margin: 0; }
.sa-col { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.sa-centre { text-align: center; }

/* Progress bar */
.sa-progres {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none;
}
.sa-progres i {
  display: block; height: 100%; width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--accent-light), var(--accent));
}

/* Header */
.sa-haut {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 22px;
  padding: 16px clamp(16px, 4vw, 48px);
  transition: background .4s, padding .4s, box-shadow .4s;
  background: rgba(255,255,255,.9);
  box-shadow: 0 2px 4px var(--border);
}
.sa-haut.colle {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding-top: 10px; padding-bottom: 10px;
  box-shadow: 0 1px 2px var(--border);
}

.sa-marque {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--accent) !important; text-decoration: none;
  font-weight: 900; letter-spacing: .18em; font-size: 14px; white-space: nowrap;
}
.sa-losange { width: 11px; height: 11px; transform: rotate(45deg);
  background: linear-gradient(135deg, #fff3cf, var(--accent-light));
  box-shadow: 0 0 12px var(--accent); }

.sa-menu { display: flex; gap: 6px; margin-left: auto; }
.sa-menu a {
  color: #555555; text-decoration: none; font-size: 14.5px;
  padding: 8px 12px; border-radius: 10px; position: relative;
}
.sa-menu a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.sa-menu a:hover::after { transform: scaleX(1); }

@media(max-width:860px){ .sa-menu{display:none}.sa-haut .sa-btn-petit{margin-left:auto} }

/* Buttons */
.sa-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  box-shadow: 0 4px 12px rgba(0,102,204,.2);
  overflow: hidden; isolation: isolate; transition: transform .2s, box-shadow .2s; will-change: transform;
}
.sa-btn::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.75) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .8s; z-index: -1;
}
.sa-btn:hover::before { transform: translateX(120%); }
.sa-btn:hover { box-shadow: 0 6px 16px rgba(0,102,204,.3); }
.sa-btn span { position: relative; }

.sa-btn-sec {
  color: #333 !important; background: rgba(255,255,255,.85);
  box-shadow: inset 0 0 1px var(--border); backdrop-filter: blur(3px);
}
.sa-btn-sec:hover { box-shadow: inset 0 0 1px var(--accent), 0 4px 12px rgba(0,0,0,.1); }

.sa-btn-petit { min-height: 36px; padding: 0 16px; font-size: 13px; }
.sa-btn-grand { min-height: 58px; padding: 0 34px; font-size: 17px; }

.sa-aimant::after {
  content: ""; position: absolute; inset: -6px; border-radius: inherit;
  border: 2px solid var(--accent); opacity: 0; animation: saOnde 2.6s ease-out infinite; z-index: -2;
}

/* Hero Section */
.sa-hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  overflow: hidden; padding: 0 clamp(18px,5vw,64px) clamp(70px,12vh,120px);
  background: var(--bg-dark);
}
.sa-hero-fond { position: absolute; inset: -6% -2% -2%; will-change: transform; }
.sa-hero-fond img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transform: scale(1.08); }
.sa-hero-voile { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.3)); }

/* Remove heavy beam animation for a cleaner look */
.sa-faisceaux { display: none; }

.sa-hero-texte { position: relative; max-width: 820px; }
.sa-sur { color: var(--accent); font-weight: 900; letter-spacing: .32em; text-transform: uppercase; font-size: 12.5px; margin: 0 0 14px; }
.sa-titre { font: 700 clamp(42px,8vw,100px)/1.1 "Open Sans", sans-serif; letter-spacing: -.01em; margin-bottom: 22px; color: var(--text); }
.sa-chapo { font-size: clamp(16px,1.6vw,20px); color: var(--muted); max-width: 58ch; margin: 0 0 30px; }
.sa-boutons { display: flex; flex-wrap: wrap; gap: 12px; }
[data-entree] { opacity: 0; transform: translateY(24px); animation: saEntre 1s cubic-bezier(.2,.9,.25,1) forwards; }
.sa-descendre { display: none; }

/* Bandeau */
.sa-bandeau { overflow: hidden; border-block: 1px solid var(--line); background: linear-gradient(90deg, rgba(0,102,204,.06), rgba(0,102,204,.03)); padding: 16px 0; margin: -10px 0 0; }
.sa-bandeau-in { display: inline-flex; align-items: center; gap: 28px; white-space: nowrap; font: 600 clamp(20px,2.6vw,30px)/1 'Open Sans', sans-serif; color: var(--text); animation: saDefile 38s linear infinite; }
.sa-bandeau-in b { color: var(--accent); font-size: .7em; }
@keyframes saDefile { to { transform: translateX(-50%); } }

/* Intro section */
.sa-intro { padding: clamp(80px,14vh,150px) 0 60px; }
.sa-grand { font: 500 clamp(26px,3.4vw,40px)/1.3 "Open Sans", sans-serif; color: var(--text); margin: 0 0 22px; }
.sa-grand em { color: var(--accent); font-style: italic; }
.sa-chiffres { max-width: 1080px; margin: 60px auto 0; padding: 0 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 16px; }
.sa-chiffres > div { border-radius: 18px; padding: 22px 20px; background: rgba(0,0,0,.03); box-shadow: inset 0 0 0 1px var(--line); }
.sa-chiffres b { display: block; font: 700 clamp(38px,4.4vw,56px)/1 "Open Sans", sans-serif; color: var(--accent); }
.sa-chiffres span { font-size: 14px; color: var(--muted); }

/* Galerie (horizontal) */
.sa-galerie { position: relative; height: var(--haut, auto); }
.sa-galerie-colle { position: sticky; top: 0; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 90px 0 40px; }
.sa-piste { display: flex; gap: 26px; padding: 0 clamp(20px,5vw,64px); will-change: transform; }
.sa-carte { flex: none; width: min(72vw,520px); margin: 0; border-radius: 22px; overflow: hidden; background: #f0f0f0; box-shadow: 0 12px 30px rgba(0,0,0,.1), inset 0 0 0 1px var(--line); transition: transform .25s ease; }
.sa-carte img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; transform: scale(1.02); transition: transform .4s ease; }
.sa-carte:hover img { transform: scale(1.08); }
.sa-carte figcaption { padding: 16px 20px 22px; font-size: 15px; line-height: 1.55; }
.sa-carte figcaption b { display: block; color: var(--text); font-size: 19px; margin-bottom: 4px; }

/* Roles */
.sa-roles, .sa-guides, .sa-etapes-sec, .sa-nouv-sec { max-width: 1160px; margin: 0 auto; padding: clamp(70px,12vh,130px) 20px 20px; }
.sa-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,320px),1fr)); gap: 18px; }
.sa-role { position: relative; border-radius: 20px; padding: 26px 24px; background: rgba(255,255,255,.5); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.sa-role:hover { transform: translateY(-6px); box-shadow: 0 12px 24px rgba(0,0,0,.1), inset 0 0 0 1px var(--accent-light); }
.sa-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; font-size: 24px; color: #fff; background: var(--accent); box-shadow: 0 4px 8px rgba(0,102,204,.3); margin-bottom: 16px; }
.sa-role h3 { font-size: 20px; margin-bottom: 8px; }
.sa-role p { margin: 0; font-size: 15.5px; line-height: 1.6; }

/* Keep other sections (orbit, steps, world, guides, frise, final) with minor color tweaks */
.sa-orbite-sec, .sa-monde, .sa-final, .sa-frise, .sa-nouv-sec { background: var(--bg-dark); }
.sa-orbite-texte, .sa-monde .sa-col, .sa-final .sa-col { background: transparent; }
.sa-hero-voile, .sa-bandeau, .sa-etapes .sa-trait path { background: var(--accent-light); }

/* Simple keyframes (retain original names where used) */
@keyframes saOnde { 0% { opacity:.7; transform:scale(.92); } 100% { opacity:0; transform:scale(1.18); } }
@keyframes saEntre { to { opacity:1; transform:none; } }

/* Reduce motion for prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation:none !important; transition:none !important; }
  .sa-hero-fond img, .sa-faisceaux i { animation:none !important; }
}
