/* ============================================================
   SYNEXIA CONSEIL — Styles globaux
   Palette : Marine #0B1F3A · Or #C9A84C · Blanc #F8F6F2
   ============================================================ */

/* --- Variables --- */
:root {
  --marine:       #0B1F3A;
  --marine-mid:   #152D52;
  --marine-light: #1E3F70;
  --marine-pale:  #8FA5BF;
  --or:           #C9A84C;
  --or-light:     #E2C97A;
  --or-pale:      #F5EED4;
  --or-dark:      #8B6914;
  --white:        #F8F6F2;
  --gray-light:   #F0EDE8;
  --gray:         #D8D2C8;
  --gray-mid:     #8A9BB0;
  --text:         #1A2D44;
  --text-light:   #4A6080;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;

  --shadow-sm:  0 1px 3px rgba(11,31,58,.08);
  --shadow-md:  0 4px 16px rgba(11,31,58,.12);
  --shadow-lg:  0 8px 32px rgba(11,31,58,.16);

  --transition: 200ms ease;
  --container:  1160px;
}

/* --- 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-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-serif); line-height: 1.25; font-weight: 600; }
p { max-width: 72ch; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* --- Skip link accessibilité --- */
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--or); color: var(--marine);
  padding: 8px 16px; z-index: 9999; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { top: 0; }

/* --- Container --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===================== NAVIGATION ===================== */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--marine);
  border-bottom: 2px solid var(--or);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo-mark {
  width: 36px; height: 36px;
  background: var(--or);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 18px; font-weight: 600;
  color: var(--marine); flex-shrink: 0;
}
.nav-brand {
  font-family: var(--font-serif);
  font-size: 18px; font-weight: 400;
  color: var(--white);
  letter-spacing: .02em;
}
.nav-brand-dot { color: var(--or); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-link {
  font-size: 13px; font-weight: 400;
  color: #8FA5BF;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.nav-link:hover,
.nav-link--active {
  color: var(--or);
  border-bottom-color: var(--or);
}

.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  z-index: 200;
}
.nav-toggle-bar {
  width: 22px; height: 2px;
  background: var(--or);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ===================== BOUTONS ===================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform .1s;
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.btn:active { transform: scale(.98); }
.btn--full  { width: 100%; }

.btn--gold {
  background: var(--or); color: var(--marine);
  border-color: var(--or);
}
.btn--gold:hover { background: var(--or-light); border-color: var(--or-light); }

.btn--outline-gold {
  background: transparent; color: var(--or);
  border-color: rgba(201,168,76,.4);
}
.btn--outline-gold:hover { border-color: var(--or); background: rgba(201,168,76,.08); }

.btn--outline-white {
  background: transparent; color: var(--white);
  border-color: rgba(248,246,242,.3);
}
.btn--outline-white:hover { border-color: var(--white); background: rgba(248,246,242,.08); }

.btn--submit { position: relative; min-height: 48px; }

/* ===================== HERO ===================== */

.hero {
  background: var(--marine);
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(30,63,112,.5) 0%, transparent 70%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 40px,
      rgba(201,168,76,.025) 40px,
      rgba(201,168,76,.025) 41px
    );
}
.hero-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 3rem;
}
.hero-content { max-width: 620px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,168,76,.12);
  border: 1px solid rgba(201,168,76,.3);
  padding: 6px 14px;
  border-radius: 2px;
  margin-bottom: 1.5rem;
  font-size: 11px; font-weight: 500;
  color: var(--or); letter-spacing: .12em; text-transform: uppercase;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--or); border-radius: 50%;
}
.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.2rem;
}
.hero-title em {
  color: var(--or); font-style: normal;
}
.hero-sub {
  color: var(--marine-pale);
  font-size: 1rem; font-weight: 300;
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 540px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  display: flex; gap: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.08);
  flex-wrap: wrap;
}
.hero-stat {}
.hero-stat-val {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem; font-weight: 600;
  color: var(--or);
}
.hero-stat-lab {
  display: block;
  font-size: 11px; font-weight: 400;
  color: var(--marine-pale);
  letter-spacing: .08em; text-transform: uppercase;
  margin-top: 2px;
}

/* ===================== SECTIONS ===================== */

.section { padding: 4.5rem 0; }
.section--light  { background: var(--gray-light); }
.section--white  { background: var(--white); }
.section--dark   { background: var(--marine); }
.section--cta    {
  background: var(--marine);
  border-top: 2px solid var(--or);
  padding: 3.5rem 0;
}

.section-header  { margin-bottom: 3rem; }
.section-label {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: .5rem;
  font-size: 11px; font-weight: 500;
  color: var(--or); letter-spacing: .12em; text-transform: uppercase;
}
.section-line {
  width: 24px; height: 2px; background: var(--or);
  flex-shrink: 0;
}
.section-title {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  color: var(--marine);
  line-height: 1.25;
}
.section--dark .section-title { color: var(--white); }

/* ===================== CTA ===================== */

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-title {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  color: var(--white);
  margin-bottom: .4rem;
}
.cta-text p { color: var(--marine-pale); max-width: none; }
.cta-actions { display: flex; gap: 1rem; flex-shrink: 0; flex-wrap: wrap; }

/* ===================== PAGE HERO ===================== */

.page-hero {
  padding: 4rem 0 3rem;
}
.page-hero--dark {
  background: var(--marine);
  border-bottom: 2px solid var(--or);
}
.page-hero--dark .section-label { color: var(--or); }
.page-hero-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--white);
  margin: .5rem 0 1rem;
}
.page-hero-sub {
  color: var(--marine-pale);
  font-size: 1rem; font-weight: 300;
  max-width: 560px;
}

/* ===================== FOOTER ===================== */

.site-footer { background: var(--marine); border-top: 2px solid var(--or); }

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  padding: 3.5rem 2rem;
}
.footer-tagline {
  color: var(--marine-pale);
  font-size: 14px; line-height: 1.6;
  margin: 1rem 0 1.2rem;
}
.footer-contact-info {
  display: flex; flex-direction: column; gap: 4px;
}
.footer-contact-link {
  color: var(--or-light);
  font-size: 13px;
  transition: color var(--transition);
}
.footer-contact-link:hover { color: var(--or); }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer-nav-title {
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 500;
  color: var(--or);
  letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-nav ul { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a {
  font-size: 13px; color: var(--marine-pale);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2rem;
  border-top: 1px solid rgba(201,168,76,.15);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy { font-size: 12px; color: #3D5068; }
.footer-legal-links {
  display: flex; gap: 1.5rem;
}
.footer-legal-links a { font-size: 12px; color: #3D5068; transition: color var(--transition); }
.footer-legal-links a:hover { color: var(--marine-pale); }

/* ===================== FLASH ===================== */

.flash {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: 14px; font-weight: 500;
}
.flash--success { background: #EAF3DE; color: #3B6D11; border: 1px solid #C0DD97; }
.flash--error   { background: #FCEBEB; color: #A32D2D; border: 1px solid #F7C1C1; }
.flash--info    { background: #E6F1FB; color: #185FA5; border: 1px solid #B5D4F4; }
