/* ===========================================
   2EC — Elite Conseil & Expertise Comptable
   Stylesheet principal
   =========================================== */

/* === CUSTOM PROPERTIES === */
:root {
  --navy-950: #040C1B;
  --navy-900: #060F1E;
  --navy-800: #0B1F3A;
  --navy-700: #112849;
  --navy-600: #1A3460;

  --gold-700: #9A7632;
  --gold-600: #A8843C;
  --gold-500: #C9A04C;
  --gold-400: #D9B468;
  --gold-300: #EACB90;
  --gold-100: #FBF5E8;

  --white:     #FFFFFF;
  --off-white: #F7F5F1;
  --gray-100:  #EDEBE6;
  --gray-200:  #D9D5CC;
  --gray-400:  #9B9488;
  --gray-600:  #6B6560;
  --gray-800:  #2E2B26;
  --gray-900:  #1A1714;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --shadow-xs:   0 1px 3px rgba(0,0,0,0.06);
  --shadow-sm:   0 2px 10px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.16);
  --shadow-xl:   0 20px 60px rgba(0,0,0,0.20);
  --shadow-gold: 0 8px 32px rgba(201,160,76,0.30);

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  --ease:   cubic-bezier(0.4, 0, 0.2, 1);
  --t:      0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --nav-h:    80px;
  --max-w:    1200px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); color: var(--gray-900); background: var(--white); line-height: 1.6; overflow-x: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.18; font-weight: 700; color: var(--navy-800); }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.125rem; }
p  { color: var(--gray-600); line-height: 1.75; }

/* === LAYOUT === */
.container  { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 6rem 0; }
.section--sm { padding: 4rem 0; }
.section--lg { padding: 8rem 0; }
.text-center { text-align: center; }

.section-label {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold-500); margin-bottom: 1rem;
}
.section-label::before { content: ''; width: 2rem; height: 2px; background: var(--gold-500); display: inline-block; }
.section-header { margin-bottom: 3.5rem; }
.section-header p { font-size: 1.1rem; margin-top: 1rem; max-width: 580px; }
.text-center .section-header p { margin: 1rem auto 0; }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .875rem 2rem; font-size: .9375rem; font-weight: 600;
  border-radius: var(--radius-sm); transition: var(--t); white-space: nowrap;
  cursor: pointer; letter-spacing: .02em; border: 1.5px solid transparent;
}
.btn-lg { padding: 1rem 2.5rem; font-size: 1rem; }

.btn-primary { background: var(--gold-500); color: var(--navy-900); border-color: var(--gold-500); }
.btn-primary:hover { background: var(--gold-400); border-color: var(--gold-400); transform: translateY(-2px); box-shadow: var(--shadow-gold); }

.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: var(--white); transform: translateY(-2px); }

.btn-outline-navy { background: transparent; color: var(--navy-800); border-color: var(--navy-800); }
.btn-outline-navy:hover { background: var(--navy-800); color: var(--white); transform: translateY(-2px); }

.btn-ghost-gold { background: transparent; color: var(--gold-600); padding: 0; border: none; font-size: .875rem; gap: .4rem; }
.btn-ghost-gold:hover { color: var(--gold-500); gap: .7rem; }
.btn-ghost-gold svg { transition: transform var(--t); }
.btn-ghost-gold:hover svg { transform: translateX(4px); }

/* === NAVBAR === */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h); display: flex; align-items: center;
  transition: background var(--t), box-shadow var(--t);
}
.navbar--transparent { background: transparent; }
.navbar--solid { background: var(--navy-800); box-shadow: 0 2px 24px rgba(0,0,0,.3); }

.navbar__inner {
  width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.navbar__logo { display: flex; align-items: center; gap: .75rem; }
.navbar__logo-mark {
  width: 44px; height: 44px; background: var(--gold-500); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--navy-900);
  flex-shrink: 0;
}
.navbar__logo-img { height: 44px; width: auto; border-radius: var(--radius-sm); flex-shrink: 0; object-fit: contain; }
.navbar__logo-name { font-family: var(--font-display); font-size: .95rem; font-weight: 700; color: var(--white); line-height: 1.1; display: block; }
.navbar__logo-sub  { font-size: .62rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-400); display: block; }

.navbar__nav { display: flex; align-items: center; gap: 2.25rem; }
.navbar__link {
  font-size: .875rem; font-weight: 500; color: rgba(255,255,255,.82);
  letter-spacing: .02em; transition: color var(--t); position: relative;
}
.navbar__link::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1.5px; background: var(--gold-500); transform: scaleX(0);
  transform-origin: left; transition: transform var(--t);
}
.navbar__link:hover,
.navbar__link.active { color: var(--white); }
.navbar__link:hover::after,
.navbar__link.active::after { transform: scaleX(1); }

.navbar__cta {
  padding: .6rem 1.4rem; background: var(--gold-500); color: var(--navy-900);
  border-radius: var(--radius-sm); font-size: .85rem; font-weight: 600; transition: var(--t);
}
.navbar__cta:hover { background: var(--gold-400); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(201,160,76,.4); }

.navbar__hamburger { display: none; flex-direction: column; gap: 5px; width: 28px; cursor: pointer; padding: 4px 0; }
.navbar__hamburger span { display: block; height: 2px; background: var(--white); border-radius: 2px; transition: var(--t); }
.navbar__hamburger span:nth-child(3) { width: 70%; }
.navbar__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 100%; }

.navbar__mobile {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--navy-800); padding: 1.25rem 1.5rem; flex-direction: column; gap: .25rem;
  border-top: 1px solid rgba(255,255,255,.08); box-shadow: 0 8px 32px rgba(0,0,0,.3); z-index: 999;
}
.navbar__mobile.open { display: flex; }
.navbar__mobile-link { display: block; padding: .75rem 1rem; color: rgba(255,255,255,.82); font-weight: 500; border-radius: var(--radius-md); transition: var(--t); }
.navbar__mobile-link:hover { background: rgba(255,255,255,.07); color: var(--white); }
.navbar__mobile-cta { display: block; text-align: center; margin-top: 1rem; padding: 1rem; background: var(--gold-500); color: var(--navy-900); font-weight: 600; border-radius: var(--radius-sm); }

/* === PAGE HERO (inner pages) === */
.page-hero {
  padding: calc(var(--nav-h) + 4.5rem) 0 4.5rem;
  background: var(--navy-800); position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(201,160,76,.08) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 50%, rgba(201,160,76,.04) 0%, transparent 55%);
}
.page-hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: linear-gradient(90deg, transparent, rgba(201,160,76,.45), transparent);
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .78rem; color: rgba(255,255,255,.42); margin-bottom: 1.25rem; }
.page-hero__breadcrumb a { color: rgba(255,255,255,.42); transition: color var(--t); }
.page-hero__breadcrumb a:hover { color: var(--gold-400); }
.page-hero__sep { opacity: .4; }
.page-hero__curr { color: var(--gold-400); }
.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero p  { color: rgba(255,255,255,.65); font-size: 1.125rem; max-width: 600px; }

/* === HERO (homepage) === */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover; background-position: center;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(4,12,27,.96) 0%, rgba(11,31,58,.90) 45%, rgba(11,31,58,.82) 70%, rgba(4,12,27,.90) 100%);
}
.hero__content {
  position: relative; z-index: 1; width: 100%; max-width: var(--max-w);
  margin: 0 auto; padding: calc(var(--nav-h) + 4rem) 1.5rem 5rem;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 5rem; align-items: center;
}

.hero__badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem 1rem; border: 1px solid rgba(201,160,76,.35);
  border-radius: var(--radius-full); font-size: .72rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 1.5rem;
}
.hero__badge-pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); animation: pulse 2s infinite; }

.hero__title { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 700; color: var(--white); line-height: 1.1; margin-bottom: 1.25rem; }
.hero__title-name   { display: block; }
.hero__title-accent { display: block; color: var(--gold-500); font-style: italic; }

.hero__slogan { font-family: var(--font-display); font-size: 1.2rem; color: rgba(255,255,255,.75); font-style: italic; margin-bottom: 1rem; border-left: 3px solid var(--gold-500); padding-left: 1rem; }
.hero__desc   { font-size: 1rem; color: rgba(255,255,255,.6); max-width: 460px; margin-bottom: 2.5rem; line-height: 1.75; }
.hero__actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  z-index: 1; animation: fadeInUp .8s ease 1.2s both; color: rgba(255,255,255,.38);
}
.hero__scroll-text { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.hero__scroll-arrow { animation: bounce 2s ease infinite; }

/* Hero right panel */
.hero__panel {
  background: rgba(255,255,255,.05); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-xl);
  padding: 2rem; animation: fadeIn .7s ease .4s both;
}
.hero__panel-title { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.42); margin-bottom: 1.5rem; }
.hero__stats { display: flex; flex-direction: column; gap: 1rem; }
.hero__stat { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: rgba(255,255,255,.04); border-radius: var(--radius-md); border: 1px solid rgba(255,255,255,.06); }
.hero__stat-icon { width: 40px; height: 40px; background: rgba(201,160,76,.14); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--gold-400); flex-shrink: 0; }
.hero__stat-val { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--white); line-height: 1; }
.hero__stat-lbl { font-size: .78rem; color: rgba(255,255,255,.48); margin-top: 2px; }
.hero__panel-footer { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.07); }
.hero__panel-cert { display: flex; align-items: flex-start; gap: .6rem; font-size: .78rem; color: rgba(255,255,255,.52); line-height: 1.5; }
.hero__panel-cert svg { color: var(--gold-500); flex-shrink: 0; margin-top: 2px; }

/* === STATS BAR === */
.stats-bar { background: var(--gold-500); }
.stats-bar__inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.5rem 1rem; position: relative; }
.stat-item + .stat-item::before { content: ''; position: absolute; left: 0; top: 25%; bottom: 25%; width: 1px; background: rgba(11,31,58,.18); }
.stat-item__num { font-family: var(--font-display); font-size: 2.25rem; font-weight: 700; color: var(--navy-900); line-height: 1; }
.stat-item__lbl { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: rgba(11,31,58,.65); margin-top: .3rem; }

/* === SERVICES (homepage cards) === */
.services-home { background: var(--off-white); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.svc-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 2rem;
  border: 1px solid var(--gray-100); box-shadow: var(--shadow-xs);
  transition: var(--t); position: relative; overflow: hidden;
}
.svc-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gold-500); transform: scaleX(0); transform-origin: left; transition: transform var(--t); }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.svc-card:hover::after { transform: scaleX(1); }
.svc-card__icon { width: 52px; height: 52px; background: var(--gold-100); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: var(--gold-600); margin-bottom: 1.5rem; transition: var(--t); }
.svc-card:hover .svc-card__icon { background: var(--gold-500); color: var(--navy-900); }
.svc-card__title { font-family: var(--font-display); font-size: 1.1rem; color: var(--navy-800); margin-bottom: .75rem; }
.svc-card__desc  { font-size: .875rem; color: var(--gray-600); line-height: 1.7; margin-bottom: 1.25rem; }

/* === ABOUT TEASER === */
.about-teaser { background: var(--white); }
.about-teaser__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-teaser__img-wrap { position: relative; }
.about-teaser__img { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-xl); aspect-ratio: 4/5; }
.about-teaser__img img { width: 100%; height: 100%; object-fit: cover; }
.about-teaser__badge {
  position: absolute; bottom: 2rem; right: -1.5rem;
  background: var(--gold-500); color: var(--navy-900);
  padding: 1.25rem 1.5rem; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-gold); text-align: center; z-index: 1;
}
.about-teaser__badge-num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1; display: block; }
.about-teaser__badge-lbl { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; display: block; margin-top: .25rem; opacity: .75; }

.features { display: flex; flex-direction: column; gap: 1.25rem; margin: 2rem 0; }
.feature { display: flex; align-items: flex-start; gap: 1rem; }
.feature__icon { width: 36px; height: 36px; background: var(--gold-100); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--gold-600); }
.feature__title { font-weight: 600; font-size: .9375rem; color: var(--navy-800); margin-bottom: .15rem; }
.feature__desc  { font-size: .85rem; color: var(--gray-600); }

/* === VALUES === */
.values { background: var(--navy-800); position: relative; overflow: hidden; }
.values::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 10% 40%, rgba(201,160,76,.08) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 60%, rgba(201,160,76,.05) 0%, transparent 50%);
}
.values .section-label { color: var(--gold-400); }
.values h2 { color: var(--white); }
.values .section-header p { color: rgba(255,255,255,.6); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; position: relative; z-index: 1; }
.val-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg); padding: 2rem; transition: var(--t); }
.val-card:hover { background: rgba(255,255,255,.07); border-color: rgba(201,160,76,.25); transform: translateY(-4px); }
.val-card__icon { width: 50px; height: 50px; background: rgba(201,160,76,.12); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: var(--gold-400); margin-bottom: 1.25rem; }
.val-card h3 { color: var(--white); font-size: 1.2rem; margin-bottom: .75rem; }
.val-card p  { color: rgba(255,255,255,.58); font-size: .9rem; line-height: 1.7; }

/* === TEAM === */
.team { background: var(--off-white); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.team-card { background: var(--white); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100); transition: var(--t); }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.team-card__photo { aspect-ratio: 1; overflow: hidden; }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform var(--t-slow); }
.team-card:hover .team-card__photo img { transform: scale(1.06); }
.team-card__info { padding: 1.5rem; }
.team-card__name { font-family: var(--font-display); font-size: 1.2rem; color: var(--navy-800); margin-bottom: .25rem; }
.team-card__role { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-600); margin-bottom: .75rem; }
.team-card__bio  { font-size: .85rem; color: var(--gray-600); line-height: 1.65; }

.team-card__photo--placeholder {
  aspect-ratio: 1;
  background: var(--gray-100);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  color: var(--gray-400);
}
.team-card__photo--placeholder svg { opacity: .35; }
.team-card__photo--placeholder span {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; opacity: .5;
}

/* === CTA BANNER === */
.cta-banner { background: linear-gradient(135deg, var(--navy-800), var(--navy-700) 55%, var(--navy-600)); padding: 5rem 0; position: relative; overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; top: -40%; right: -8%; width: 480px; height: 480px; border-radius: 50%; background: rgba(201,160,76,.06); }
.cta-banner::after  { content: ''; position: absolute; bottom: -30%; left: -5%; width: 300px; height: 300px; border-radius: 50%; background: rgba(201,160,76,.04); }
.cta-banner__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 3rem; }
.cta-banner h2 { color: var(--white); }
.cta-banner p  { color: rgba(255,255,255,.65); max-width: 480px; margin-top: .75rem; }
.cta-banner__actions { display: flex; gap: 1rem; flex-shrink: 0; }

/* === FOOTER === */
.footer { background: var(--navy-950); padding: 5rem 0 0; }
.footer__top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem;
  padding-bottom: 4rem; border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer__logo { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.footer__logo-mark { width: 40px; height: 40px; background: var(--gold-500); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: var(--navy-900); flex-shrink: 0; }
.footer__logo-img { height: 40px; width: auto; border-radius: var(--radius-sm); flex-shrink: 0; object-fit: contain; }
.footer__logo-name { font-family: var(--font-display); font-weight: 700; color: var(--white); font-size: .95rem; }
.footer__desc { font-size: .875rem; color: rgba(255,255,255,.48); line-height: 1.7; max-width: 280px; margin-bottom: 1.5rem; }
.footer__social { display: flex; gap: .75rem; }
.footer__social-a { width: 36px; height: 36px; border-radius: var(--radius-sm); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.5); transition: var(--t); }
.footer__social-a:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); }
.footer__col-title { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--white); margin-bottom: 1.25rem; }
.footer__links { display: flex; flex-direction: column; gap: .75rem; }
.footer__links a { font-size: .875rem; color: rgba(255,255,255,.5); transition: color var(--t); }
.footer__links a:hover { color: var(--gold-400); }
.footer__contact-items { display: flex; flex-direction: column; gap: 1rem; }
.footer__contact-item { display: flex; align-items: flex-start; gap: .75rem; font-size: .875rem; color: rgba(255,255,255,.52); }
.footer__contact-item svg { color: var(--gold-500); flex-shrink: 0; margin-top: 2px; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem 0; }
.footer__copyright { font-size: .78rem; color: rgba(255,255,255,.3); }
.footer__legal { display: flex; gap: 1.5rem; }
.footer__legal a { font-size: .78rem; color: rgba(255,255,255,.3); transition: color var(--t); }
.footer__legal a:hover { color: var(--gold-400); }

/* === SERVICES PAGE === */
.svc-detail { padding: 5rem 0; }
.svc-detail:nth-child(even) { background: var(--off-white); }
.svc-detail__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.svc-detail--rev .svc-detail__inner { direction: rtl; }
.svc-detail--rev .svc-detail__inner > * { direction: ltr; }
.svc-detail__img { border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-xl); }
.svc-detail__img img { width: 100%; height: 100%; object-fit: cover; }
.svc-detail__icon { width: 56px; height: 56px; background: var(--gold-100); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: var(--gold-600); margin-bottom: 1.25rem; }
.svc-detail h3 { margin-bottom: 1rem; }
.svc-detail__list { margin: 1.5rem 0 2rem; display: flex; flex-direction: column; gap: .75rem; }
.svc-detail__item { display: flex; align-items: center; gap: .75rem; font-size: .9rem; color: var(--gray-700); }
.svc-detail__item::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); flex-shrink: 0; }

/* === ABOUT PAGE === */
.about-history { background: var(--white); }
.about-history__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-history__img { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-xl); }
.about-history__img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.vm-section { background: var(--off-white); }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem; }
.vm-card { background: var(--white); border-radius: var(--radius-xl); padding: 2.5rem; box-shadow: var(--shadow-sm); border-top: 4px solid var(--gold-500); }
.vm-card__icon { width: 50px; height: 50px; background: var(--gold-100); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: var(--gold-600); margin-bottom: 1.25rem; }
.vm-card h3 { margin-bottom: .75rem; }

.accred { background: var(--navy-800); padding: 4rem 0; }
.accred__inner { display: flex; align-items: center; gap: 3rem; }
.accred__badge { flex-shrink: 0; width: 110px; height: 110px; border-radius: 50%; background: rgba(201,160,76,.12); border: 2px solid var(--gold-500); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1rem; color: var(--gold-400); }
.accred__badge-abbr { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.accred__badge-sub  { font-size: .58rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3; margin-top: 2px; }
.accred h3 { color: var(--white); margin-bottom: .75rem; }
.accred p  { color: rgba(255,255,255,.62); max-width: 600px; }

/* === CONTACT PAGE === */
.contact-body { background: var(--off-white); }
.contact-body__inner { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; }
.contact-cards { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.contact-card { background: var(--white); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; display: flex; align-items: flex-start; gap: 1rem; box-shadow: var(--shadow-xs); border: 1px solid var(--gray-100); }
.contact-card__icon { width: 40px; height: 40px; background: var(--gold-100); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--gold-600); flex-shrink: 0; }
.contact-card__lbl { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-400); margin-bottom: .2rem; }
.contact-card__val { font-size: .9rem; color: var(--navy-800); font-weight: 500; line-height: 1.55; }

.contact-hours { background: var(--white); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-xs); border: 1px solid var(--gray-100); }
.contact-hours__title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--navy-800); margin-bottom: 1rem; }
.hours-row { display: flex; justify-content: space-between; font-size: .875rem; padding: .5rem 0; border-bottom: 1px solid var(--gray-100); }
.hours-row:last-child { border: none; }
.hours-row__day  { color: var(--gray-600); }
.hours-row__time { color: var(--navy-800); font-weight: 500; }

.contact-form { background: var(--white); border-radius: var(--radius-xl); padding: 2.5rem; box-shadow: var(--shadow-md); }
.contact-form h3 { margin-bottom: .25rem; }
.contact-form > p { font-size: .9rem; color: var(--gray-600); margin-bottom: 2rem; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .78rem; font-weight: 600; color: var(--navy-800); margin-bottom: .4rem; letter-spacing: .02em; }
.form-control { width: 100%; padding: .75rem 1rem; border: 1.5px solid var(--gray-200); border-radius: var(--radius-md); font-size: .9375rem; color: var(--gray-900); background: var(--white); transition: border-color var(--t), box-shadow var(--t); outline: none; }
.form-control:focus { border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(201,160,76,.12); }
.form-control::placeholder { color: var(--gray-400); }
textarea.form-control { resize: vertical; min-height: 130px; }
select.form-control { cursor: pointer; }
.form-submit { width: 100%; justify-content: center; padding: 1rem; font-size: 1rem; }

.form-control--error { border-color: #dc2626 !important; box-shadow: 0 0 0 3px rgba(220,38,38,.1) !important; }
.form-error { display: block; font-size: .75rem; color: #dc2626; margin-top: .35rem; font-weight: 500; }

/* === ANIMATIONS === */
@keyframes pulse    { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.5; transform:scale(.8); } }
@keyframes bounce   { 0%,100% { transform:translateY(0); } 50% { transform:translateY(8px); } }
@keyframes fadeIn   { from { opacity:0; } to { opacity:1; } }
@keyframes fadeInUp { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:translateY(0); } }

.reveal { opacity:0; transform:translateY(26px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal.visible { opacity:1; transform:none; }
.reveal-d1 { transition-delay:.1s; }
.reveal-d2 { transition-delay:.2s; }
.reveal-d3 { transition-delay:.3s; }
.reveal-d4 { transition-delay:.4s; }
.reveal-d5 { transition-delay:.5s; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero__content { grid-template-columns: 1fr; max-width: 680px; }
  .hero__panel { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  :root { --nav-h: 68px; }
  .navbar__nav, .navbar__cta { display: none; }
  .navbar__hamburger { display: flex; }

  .stats-bar__inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2)::before { display: none; }

  .services-grid { grid-template-columns: 1fr; }
  .about-teaser__inner,
  .svc-detail__inner,
  .about-history__inner,
  .contact-body__inner { grid-template-columns: 1fr; }
  .svc-detail--rev .svc-detail__inner { direction: ltr; }
  .about-teaser__badge { right: 1rem; }
  .values-grid, .team-grid, .vm-grid { grid-template-columns: 1fr; }
  .cta-banner__inner { flex-direction: column; text-align: center; }
  .cta-banner p { margin: .75rem auto 0; }
  .cta-banner__actions { flex-direction: column; width: 100%; }
  .cta-banner__actions .btn { justify-content: center; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .accred__inner { flex-direction: column; text-align: center; }
  .accred p { margin: 0 auto; }
}

@media (max-width: 480px) {
  .hero__actions .btn { flex: 1; justify-content: center; }
  .stat-item__num { font-size: 1.8rem; }
}

/* =============================================
   MÉDIATHÈQUE
   ============================================= */

/* --- Filtres --- */
.media-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin: 2.5rem auto 3rem;
}
.media-filters__btn {
  padding: .5rem 1.25rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-full);
  background: transparent;
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: var(--t);
}
.media-filters__btn:hover {
  border-color: var(--gold-500);
  color: var(--gold-600);
}
.media-filters__btn.active {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: var(--white);
}

/* --- Grille vidéos --- */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* --- Carte vidéo --- */
.vid-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--t);
  border: 1px solid var(--gray-100);
}
.vid-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.vid-card.hidden { display: none; }

/* Miniature 16:9 */
.vid-card__thumb {
  position: relative;
  padding-bottom: 56.25%;
  overflow: hidden;
  background: var(--navy-900);
}

/* Placeholder (avant la vidéo) */
.vid-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
}
.vid-card__play-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(201,160,76,.12);
  border: 2px solid rgba(201,160,76,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
}
.vid-card__placeholder-lbl {
  font-size: .75rem;
  color: rgba(255,255,255,.3);
  font-family: var(--font-body);
  letter-spacing: .07em;
  text-transform: uppercase;
}

/* iframe YouTube */
.vid-card__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Badge "À venir" */
.vid-card__badge-coming {
  position: absolute;
  top: .75rem;
  left: .75rem;
  background: var(--gold-500);
  color: var(--navy-900);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .22rem .6rem;
  border-radius: var(--radius-full);
}

/* Corps de la carte */
.vid-card__body {
  padding: 1.2rem 1.4rem 1.5rem;
}
.vid-card__cat {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: .55rem;
}
.vid-card__title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--navy-900);
  line-height: 1.35;
  margin-bottom: .45rem;
}
.vid-card__desc {
  font-size: .855rem;
  color: var(--gray-600);
  line-height: 1.55;
  margin-bottom: .8rem;
}
.vid-card__meta {
  font-size: .78rem;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: .35rem;
}

/* État vide après filtre */
.media-empty {
  display: none;
  text-align: center;
  padding: 4rem 1rem;
  color: var(--gray-400);
  grid-column: 1 / -1;
}
.media-empty.visible { display: block; }

/* --- Teaser médiathèque (page d'accueil) --- */
.media-teaser { background: var(--off-white); }
.media-teaser__cats {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  margin: 2rem 0 2.5rem;
}
.media-teaser__cat {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.15rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: .875rem;
  font-weight: 500;
  color: var(--gray-800);
  background: var(--white);
  box-shadow: var(--shadow-xs);
}
.media-teaser__cat svg { color: var(--gold-500); flex-shrink: 0; }

/* --- Responsive médiathèque --- */
@media (max-width: 1024px) {
  .videos-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .videos-grid { grid-template-columns: 1fr; }
  .media-filters { gap: .4rem; }
  .media-filters__btn { font-size: .8rem; padding: .42rem .95rem; }
  .media-teaser__cats { gap: .5rem; }
}
