/* ══════════════════════════════════════════════════════════════
   CESO ENTREPRISE — global.css
   Styles communs : design system, nav, top-strip, footer,
   back-to-top, burger, animations, utilitaires, responsive.
   Chaque page conserve ses styles spécifiques dans un <style>
   inline ou un fichier CSS dédié.
══════════════════════════════════════════════════════════════ */

/* ─── Design System ─────────────────────────────────────────── */
:root {
  --ink:      #0D0F14;
  --chalk:    #F7F5F0;
  --gold:     #C9A84C;
  --gold-lt:  #F0D898;
  --azure:    #1A4D8F;
  --azure-lt: #2E6EC4;
  --rouge:    #C0392B;
  --mist:     #E8EDF6;
  --mid:      #6B7280;
  --serif:    'DM Serif Display', Georgia, serif;
  --sans:     'DM Sans', system-ui, sans-serif;
  --radius:   8px;
  --shadow-sm: 0 2px 12px rgba(0,0,0,.06);
  --shadow-md: 0 8px 40px rgba(0,0,0,.10);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.12);
}

/* ─── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--chalk);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.12; }
p { line-height: 1.78; color: #3D4049; }
a { color: inherit; }

/* ─── Utilities ─────────────────────────────────────────────── */
.container   { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.gold        { color: var(--gold); }
.azure       { color: var(--azure); }
.sr-only     { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--mist); border: 1px solid #CBD5E8;
  padding: 6px 16px; border-radius: 100px;
  font-size: .75rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--azure);
}

/* ─── Buttons ───────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--gold), #E8B84B);
  color: var(--ink); padding: 16px 32px; border-radius: var(--radius);
  font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: transform .25s, box-shadow .25s;
  box-shadow: 0 4px 30px rgba(201,168,76,.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 40px rgba(201,168,76,.5); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1.5px solid rgba(255,255,255,.25); color: #fff;
  padding: 16px 32px; border-radius: var(--radius); font-weight: 600;
  text-decoration: none; transition: border-color .25s, background .25s;
}
.btn-secondary:hover { border-color: var(--gold); background: rgba(201,168,76,.1); }

/* ─── Animations ────────────────────────────────────────────── */
@keyframes revealUp   { from{opacity:0;transform:translateY(36px)} to{opacity:1;transform:translateY(0)} }
@keyframes floatY     { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
@keyframes shimmer    { 0%,100%{opacity:.6} 50%{opacity:1} }

.reveal      { animation: revealUp .9s cubic-bezier(.22,1,.36,1) both; }
.reveal-d1   { animation-delay: .10s; }
.reveal-d2   { animation-delay: .20s; }
.reveal-d3   { animation-delay: .30s; }
.reveal-d4   { animation-delay: .40s; }
.reveal-d5   { animation-delay: .50s; }
.float-anim  { animation: floatY 5s ease-in-out infinite; }

/* ─── Section base ──────────────────────────────────────────── */
section { padding: 96px 24px; }

.section-label {
  font-size: .75rem; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--azure);
  margin-bottom: 14px; display: block;
}
.section-title { font-family: var(--serif); font-size: clamp(2rem,4vw,3rem); margin-bottom: 18px; }
.section-sub   { font-size: 1.1rem; color: var(--mid); max-width: 620px; }

/* ─── TOP STRIP ─────────────────────────────────────────────── */
.top-strip {
  background: var(--ink); color: var(--gold-lt);
  text-align: center; padding: 10px 24px;
  font-size: .8rem; font-weight: 500; letter-spacing: .04em;
}
.top-strip a { color: var(--gold); text-decoration: underline; }
.top-strip a:hover { text-decoration: none; }

/* ─── NAV ───────────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,245,240,.93);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(201,168,76,.25);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; max-width: 1200px; margin: 0 auto;
  min-height: 64px;
}

/* Logo */
.nav-brand { text-decoration: none; display: flex; align-items: center; flex-shrink: 0; }
.nav-brand:not(:has(img)) {
  font-family: var(--serif); font-size: 1.4rem; color: var(--ink);
}
.nav-brand:not(:has(img)) span { color: var(--gold); }
.nav-logo { height: 40px; width: auto; object-fit: contain; }

/* Links */
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: .875rem; font-weight: 500; color: var(--mid);
  text-decoration: none; transition: color .2s;
  position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--azure); border-radius: 2px;
  transform: scaleX(0); transition: transform .22s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--azure); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  background: var(--ink) !important; color: var(--gold) !important;
  padding: 10px 22px; border-radius: var(--radius);
  font-weight: 700 !important;
  transition: background .25s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover  { background: var(--azure) !important; color: #fff !important; }
.nav-cta.active { background: var(--azure) !important; color: #fff !important; }

/* Burger mobile */
.nav-burger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none;
  cursor: pointer; padding: 4px;
  border-radius: var(--radius);
  transition: background .2s;
}
.nav-burger:hover { background: var(--mist); }
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── FOOTER ────────────────────────────────────────────────── */
footer { background: #080A0E; color: #fff; padding: 72px 24px 32px; }
.footer-inner  { max-width: 1200px; margin: 0 auto; }
.footer-grid   { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }

.footer-brand  { font-family: var(--serif); font-size: 1.8rem; margin-bottom: 16px; }
.footer-brand span { color: var(--gold); }
.footer-logo   { height: 44px; width: auto; object-fit: contain; margin-bottom: 16px; }
.footer-desc   { font-size: .875rem; color: rgba(255,255,255,.4); line-height: 1.7; margin-bottom: 24px; }

.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; color: rgba(255,255,255,.5);
  text-decoration: none; transition: border-color .2s, color .2s;
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }

.footer-col h5 {
  font-size: .8rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 20px;
}
.footer-col ul  { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  font-size: .875rem; color: rgba(255,255,255,.5);
  text-decoration: none; transition: color .2s;
}
.footer-col ul a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .8rem; color: rgba(255,255,255,.3); flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,.4); text-decoration: none; transition: color .2s; }
.footer-bottom a:hover { color: var(--gold); }

/* ─── BACK TO TOP ───────────────────────────────────────────── */
.back-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 99;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gold); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 1.2rem; font-weight: 700;
  box-shadow: 0 4px 20px rgba(201,168,76,.4);
  opacity: 0;
  transition: opacity .3s, transform .25s, box-shadow .25s;
}
.back-top:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(201,168,76,.5); }

/* ─── Responsive : tablette ─────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links   { display: none; flex-direction: column; gap: 0; }
  .nav-burger  { display: flex; }

  /* Menu mobile ouvert */
  .nav-links.is-open {
    display: flex;
    position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(247,245,240,.98);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(201,168,76,.2);
    padding: 16px 24px 24px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.is-open a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,.06);
    font-size: 1rem;
  }
  .nav-links.is-open a:last-child { border-bottom: none; margin-top: 8px; }
  .nav-links.is-open .nav-cta { width: 100%; justify-content: center; margin-top: 8px; }
}

/* ─── Responsive : mobile ───────────────────────────────────── */
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
