/* LexAventa — site institutionnel v1 */
:root {
  --navy: #10294a;
  --navy-deep: #071a31;
  --navy-soft: #253d5e;
  --blue-gray: #66758a;
  --gold: #b89451;
  --gold-light: #e2cca0;
  --red: #c5202e;
  --paper: #f7f5f1;
  --paper-2: #eeece7;
  --white: #ffffff;
  --ink: #142033;
  --muted: #5d6877;
  --line: rgba(16, 41, 74, 0.15);
  --shadow: 0 22px 55px rgba(7, 26, 49, 0.12);
  --radius: 22px;
  --container: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(rgba(247,245,241,.90), rgba(247,245,241,.92)),
    url("assets/site-bg.webp") center top / cover no-repeat;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 16%, rgba(184,148,81,.10), transparent 22%),
    radial-gradient(circle at 88% 16%, rgba(16,41,74,.05), transparent 25%);
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.12;
  color: var(--navy);
}
h1 { font-size: clamp(2.6rem, 6vw, 5.25rem); letter-spacing: -0.045em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.65rem); letter-spacing: -0.035em; }
h3 { font-size: 1.45rem; }

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section { padding: 110px 0; }
.section-tint {
  background:
    linear-gradient(135deg, rgba(184,148,81,.07), transparent 40%),
    rgba(238,236,231,.74);
}
.section-dark {
  background:
    radial-gradient(circle at 80% 0%, rgba(184,148,81,.18), transparent 34%),
    linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: rgba(255,255,255,.82);
}
.section-dark h2, .section-dark h3, .section-dark strong { color: var(--white); }

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 9999;
  padding: 10px 14px;
  background: var(--white);
  color: var(--navy);
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(247,245,241,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
}
.brand img {
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(7,26,49,.12);
}
.brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.main-nav a {
  text-decoration: none;
  color: var(--navy-soft);
  font-size: .93rem;
  font-weight: 650;
}
.main-nav a:hover, .main-nav a:focus { color: var(--red); }
.main-nav .nav-cta {
  border: 1px solid var(--navy);
  padding: 9px 16px;
  border-radius: 999px;
}
.main-nav .nav-cta:hover,
.main-nav .nav-cta:focus {
  background: var(--navy);
  color: var(--white);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
}

.hero {
  position: relative;
  padding: 34px 0 72px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-shell {
  display: grid;
  gap: 26px;
}

.hero-banner {
  border: 1px solid rgba(16,41,74,.08);
  border-radius: 26px;
  overflow: hidden;
  background: rgba(255,255,255,.55);
  box-shadow: 0 18px 36px rgba(7,26,49,.08);
}

.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-intro {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 28px;
  align-items: start;
}

.hero-emblem {
  align-self: start;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255,255,255,.80);
  box-shadow: var(--shadow);
  border: 1px solid rgba(16,41,74,.08);
  backdrop-filter: blur(8px);
}
.hero-emblem img {
  width: 100%;
  max-width: 250px;
  margin: 0 auto;
}

.hero-card {
  width: 100%;
  padding: 38px 42px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.hero-card h1 { margin-bottom: 20px; }
.hero-lead {
  max-width: 63ch;
  font-size: 1.1rem;
  color: #435064;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 25px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 750;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  box-shadow: 0 12px 26px rgba(16,41,74,.18);
}
.button-primary:hover { box-shadow: 0 16px 32px rgba(16,41,74,.25); }
.button-secondary {
  color: var(--navy);
  border-color: rgba(16,41,74,.28);
  background: rgba(255,255,255,.72);
}
.button-light {
  color: var(--navy);
  background: var(--white);
}
.button.full { width: 100%; border: 0; }

.eyebrow {
  margin-bottom: 14px;
  color: var(--red);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--navy);
  font-weight: 720;
  font-size: .88rem;
}
.hero-points li {
  position: relative;
  padding-left: 14px;
}
.hero-points li::before {
  content: "";
  position: absolute;
  left: 0; top: .67em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.two-col {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: 90px;
  align-items: start;
}
.section-heading { max-width: 760px; margin-bottom: 48px; }
.section-heading h2 { margin-bottom: 20px; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.05rem; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading.light p { color: rgba(255,255,255,.73); }
.large { font-size: 1.32rem; color: var(--navy); }
.prose p:not(.large) { color: var(--muted); }

.fact-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 36px;
}
.fact-row > div {
  padding: 18px;
  border-left: 3px solid var(--gold);
  background: rgba(255,255,255,.74);
}
.fact-row strong {
  display: block;
  color: var(--navy);
  font-size: 1.1rem;
}
.fact-row span {
  display: block;
  color: var(--muted);
  font-size: .82rem;
}

.cards {
  display: grid;
  gap: 24px;
}
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  position: relative;
  padding: 34px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(16,41,74,.10);
  border-radius: var(--radius);
  box-shadow: 0 15px 35px rgba(7,26,49,.06);
}
.card h3 { margin-bottom: 14px; }
.card p { color: var(--muted); margin-bottom: 0; }
.card-number {
  display: block;
  margin-bottom: 34px;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .18em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.66);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.feature:hover {
  transform: translateY(-5px);
  background: var(--white);
  box-shadow: 0 18px 36px rgba(7,26,49,.08);
}
.feature p { color: var(--muted); margin-bottom: 0; }
.icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 25px;
  border-radius: 14px;
  color: var(--navy);
  background: linear-gradient(135deg, rgba(184,148,81,.28), rgba(255,255,255,.85));
  border: 1px solid rgba(184,148,81,.28);
}
.icon svg {
  width: 25px; height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.12);
}
.audience {
  padding: 30px;
  background: rgba(7,26,49,.42);
}
.audience strong { display: block; margin-bottom: 8px; font-size: 1.05rem; }
.audience span { display: block; color: rgba(255,255,255,.67); font-size: .92rem; }

.split-panel {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 44px;
  align-items: stretch;
}
.panel-copy {
  padding: 54px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 18px 45px rgba(7,26,49,.07);
}
.panel-copy > p:not(.eyebrow) { color: var(--muted); }
.check-list {
  margin: 28px 0 34px;
  padding: 0;
  list-style: none;
}
.check-list li {
  position: relative;
  margin: 12px 0;
  padding-left: 28px;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 900;
}
.quote-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 55px;
  color: var(--white);
  background:
    radial-gradient(circle at 90% 10%, rgba(184,148,81,.34), transparent 32%),
    linear-gradient(145deg, var(--navy), var(--navy-deep));
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.quote-mark {
  margin: 0;
  color: var(--gold-light);
  font-family: Georgia, serif;
  font-size: 6rem;
  line-height: .6;
}
.quote-card blockquote {
  margin: 28px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  line-height: 1.35;
}
.quote-source {
  margin: 0;
  color: rgba(255,255,255,.62);
  font-size: .84rem;
  letter-spacing: .06em;
}

.membership .card { min-height: 230px; }
.centered-action { margin-top: 38px; text-align: center; }

.governance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 24px;
}
.person-card,
.principles-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.74);
}
.person-card .role {
  display: inline-block;
  margin-bottom: 34px;
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--red);
  background: rgba(197,32,46,.08);
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.person-card p { color: var(--muted); margin-bottom: 0; }
.principles-card {
  color: var(--white);
  background: var(--navy);
}
.principles-card h3 { color: var(--white); }
.principles-card ul { margin: 18px 0 0; padding-left: 20px; color: rgba(255,255,255,.76); }

.launch-section {
  padding: 70px 0;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(197,32,46,.92), rgba(138,22,32,.95)),
    var(--red);
}
.launch-section h2 { color: var(--white); margin-bottom: 12px; }
.launch-section .eyebrow { color: rgba(255,255,255,.72); }
.launch-section p { margin-bottom: 0; color: rgba(255,255,255,.82); }
.launch-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 45px;
  align-items: center;
}
.launch-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.text-link { color: var(--white); font-weight: 750; text-underline-offset: 5px; }

.contact-section {
  background:
    linear-gradient(130deg, rgba(184,148,81,.06), transparent 34%),
    rgba(247,245,241,.74);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 80px;
  align-items: start;
}
.contact-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.contact-details {
  display: grid;
  gap: 12px;
  margin-top: 35px;
}
.contact-details a,
.contact-details > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.contact-details span { color: var(--muted); }
.contact-details strong { color: var(--navy); }
.contact-card {
  padding: 38px;
  border-radius: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.contact-card label {
  display: block;
  margin: 16px 0 7px;
  color: var(--navy);
  font-weight: 750;
  font-size: .9rem;
}
.contact-card label span { color: var(--muted); font-weight: 500; }
.contact-card input,
.contact-card select,
.contact-card textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--ink);
  border: 1px solid rgba(16,41,74,.22);
  border-radius: 12px;
  background: #fbfaf8;
}
.contact-card textarea { resize: vertical; }
.contact-card input:focus,
.contact-card select:focus,
.contact-card textarea:focus {
  outline: 3px solid rgba(184,148,81,.22);
  border-color: var(--gold);
}
.form-note { color: var(--muted); font-size: .85rem; }

.legal-strip {
  padding: 38px 0;
  background: rgba(238,236,231,.80);
  border-top: 1px solid var(--line);
}
.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.legal-grid details {
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(255,255,255,.72);
}
.legal-grid summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 800;
}
.legal-grid p { margin: 14px 0 0; color: var(--muted); font-size: .86rem; }

.site-footer {
  padding: 30px 0;
  color: rgba(255,255,255,.7);
  background: var(--navy-deep);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .9fr auto;
  gap: 24px;
  align-items: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-brand img { border-radius: 10px; }
.footer-brand strong { display: block; color: var(--white); }
.footer-brand span { display: block; font-size: .8rem; }
.site-footer p { margin: 0; font-size: .85rem; }
.site-footer a { color: var(--white); font-size: .85rem; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1050px) {
  .main-nav { gap: 17px; }
  .main-nav a { font-size: .86rem; }
  .hero { min-height: 710px; }
  .feature-grid, .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .governance-grid { grid-template-columns: 1fr 1fr; }
  .principles-card { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .section { padding: 82px 0; }
  .menu-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 22px;
    background: rgba(247,245,241,.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(7,26,49,.08);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 13px 8px; font-size: .95rem; }
  .main-nav .nav-cta { margin-top: 7px; text-align: center; }
  .hero {
    padding: 22px 0 56px;
  }
  .hero-intro {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .hero-emblem {
    max-width: 280px;
  }
  .hero-card {
    padding: 30px;
    background: rgba(255,255,255,.94);
  }
  .two-col,
  .split-panel,
  .contact-grid,
  .launch-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .cards-3 { grid-template-columns: 1fr; }
  .membership .card { min-height: auto; }
  .legal-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: left; }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .brand small { display: none; }
  .hero { padding: 16px 0 48px; }
  .hero-card { padding: 24px; border-radius: 20px; }
  .hero-emblem { max-width: 220px; padding: 14px; }
  h1 { font-size: clamp(2.25rem, 12vw, 3.2rem); }
  h2 { font-size: clamp(1.9rem, 9vw, 2.7rem); }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .fact-row,
  .feature-grid,
  .audience-grid,
  .governance-grid {
    grid-template-columns: 1fr;
  }
  .principles-card { grid-column: auto; }
  .panel-copy, .quote-card, .contact-card { padding: 27px; }
  .contact-details a,
  .contact-details > div { flex-direction: column; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
