/* ===================================================================
   Savigni Consulting — feuille de style
   Palette issue du logo : marine, sarcelle, or
=================================================================== */
:root {
  --navy: #1c2f52;
  --navy-deep: #14233d;
  --teal: #2e8ea0;
  --teal-light: #40b0c4;
  --gold: #f0ab1e;
  --gold-soft: #f5c04d;
  --ink: #1a2233;
  --muted: #5d6b82;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --line: #e2e8f2;
  --radius: 14px;
  --shadow: 0 18px 40px -20px rgba(20, 35, 61, 0.35);
  --max: 1120px;
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; color: var(--navy); }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-block;
  margin-bottom: 14px;
}

.accent { color: var(--teal); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn--lg { padding: 16px 32px; font-size: 1rem; }
.btn { white-space: nowrap; }
.btn--primary { background: var(--gold); color: var(--navy-deep); box-shadow: 0 10px 24px -10px rgba(240, 171, 30, .7); }
.btn--primary:hover { transform: translateY(-2px); background: var(--gold-soft); }
.btn--ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--ghost:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 96px; }
.brand img { height: 76px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-family: var(--font-head); font-weight: 600; font-size: .93rem; color: var(--navy); transition: color .15s; }
.nav a:hover { color: var(--teal); }
.nav-cta { background: var(--navy); color: #fff !important; padding: 9px 20px; border-radius: 999px; }
.nav-cta:hover { background: var(--teal) !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--navy); border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 80px 0 90px; background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%); }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; z-index: 0; }
.hero-glow--gold { width: 420px; height: 420px; background: rgba(240, 171, 30, .35); top: -120px; right: -80px; }
.hero-glow--teal { width: 380px; height: 380px; background: rgba(46, 142, 160, .28); bottom: -140px; left: -100px; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 54px; align-items: center; }
.hero-text h1 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); font-weight: 800; margin-bottom: 20px; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 40ch; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 4px; }
.hero-difference { font-family: var(--font-head); font-weight: 700; color: var(--teal); font-size: 1rem; margin-bottom: 22px; }

.hero-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px; box-shadow: var(--shadow); }
.hero-card-tag { font-family: var(--font-head); font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.quali-list { list-style: none; display: grid; gap: 12px; margin-bottom: 24px; }
.quali-list li { position: relative; padding-left: 26px; font-size: .95rem; color: var(--ink); }
.quali-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 12px; border-radius: 3px; background: var(--teal); }
.quali-block { display: grid; justify-items: center; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.quali-logo { width: 100%; max-width: 380px; margin: 0 auto; }
.quali-cert { padding: 10px 22px; font-size: .88rem; }
.quali-ref { font-size: .78rem; color: var(--muted); text-align: center; line-height: 1.5; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section--alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 auto 46px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; }
.section-sub { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Pillars ---------- */
.pillar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; transition: transform .2s, box-shadow .2s; }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pillar h3 { font-size: 1.15rem; margin-bottom: 8px; padding-bottom: 12px; position: relative; }
.pillar h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; border-radius: 3px; background: var(--gold); }
.pillar p { color: var(--muted); font-size: .95rem; }

/* ---------- Offers ---------- */
.offer { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 34px 28px; transition: transform .2s, box-shadow .2s; }
.offer:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.offer h3 { font-size: 1.3rem; margin-bottom: 6px; }
.offer-meta { font-family: var(--font-head); font-weight: 700; color: var(--teal); margin-bottom: 16px; font-size: .95rem; }
.offer p:last-child { color: var(--muted); }
.offer--featured { border-color: var(--gold); box-shadow: 0 20px 46px -24px rgba(240, 171, 30, .55); }
.offer-flag { position: absolute; top: -13px; left: 28px; background: var(--gold); color: var(--navy-deep); font-family: var(--font-head); font-weight: 800; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; }

/* ---------- Download band ---------- */
.download-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: 22px; padding: 48px; color: #fff;
  box-shadow: var(--shadow);
  text-align: left;
}
.download-text .eyebrow { color: var(--gold-soft); }
.download-text h2 { color: #fff; font-size: 1.9rem; font-weight: 800; margin-bottom: 12px; }
.download-text p { color: rgba(255, 255, 255, .82); max-width: 60ch; }
.download-action { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 26px; }
.download-action .btn { justify-content: flex-start; width: -moz-fit-content; width: fit-content; }
.download-note { font-size: .82rem; color: rgba(255, 255, 255, .6); text-align: left; }

/* ---------- Calendly ---------- */
.calendly-embed { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.calendly-embed iframe { display: block; min-width: 320px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 54px; align-items: start; }
.contact-intro h2 { font-size: 2rem; font-weight: 800; margin-bottom: 14px; }
.contact-intro p { color: var(--muted); margin-bottom: 26px; }
.contact-list { list-style: none; display: grid; gap: 18px; }
.contact-list li { display: flex; flex-direction: column; }
.ci-label { font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 3px; }
.contact-list a { font-weight: 600; color: var(--navy); }
.contact-list a:hover { color: var(--teal); }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 34px; box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: .85rem; color: var(--navy); margin-bottom: 6px; }
.field input, .field textarea {
  font-family: var(--font-body); font-size: .95rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfe;
  transition: border-color .15s, box-shadow .15s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(46, 142, 160, .15); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--muted); margin-bottom: 22px; }
.consent input { margin-top: 4px; }
.form-ok { display: none; background: rgba(46, 142, 160, .12); color: #1c6f7c; border: 1px solid rgba(46, 142, 160, .3); border-radius: 12px; padding: 16px; font-size: .95rem; font-weight: 600; margin-bottom: 20px; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #fff; padding: 56px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-logo { height: 170px; background: #fff; border-radius: 14px; padding: 14px 22px; }
.footer-meta { text-align: center; }
.footer-meta p { font-size: .9rem; color: rgba(255, 255, 255, .78); }
.footer-meta .copyright { margin-top: 6px; font-size: .82rem; color: rgba(255, 255, 255, .5); }
.footer-links { margin-top: 8px; }
.footer-links a { font-size: .82rem; color: var(--gold-soft); font-weight: 600; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

/* ---------- Page mentions légales ---------- */
.legal { padding: 60px 0 80px; background: var(--bg-alt); }
.legal-inner { max-width: 820px; }
.legal h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; margin-bottom: 30px; }
.legal h2 { font-size: 1.35rem; font-weight: 800; margin: 38px 0 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.legal h3 { font-size: 1.08rem; font-weight: 700; color: var(--teal); margin: 24px 0 8px; }
.legal p { color: var(--ink); margin-bottom: 12px; }
.legal-list { list-style: none; display: grid; gap: 8px; margin: 8px 0 12px; }
.legal-list li { position: relative; padding-left: 20px; color: var(--ink); }
.legal-list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 7px; border-radius: 2px; background: var(--gold); }
.legal a { color: var(--teal); font-weight: 600; }
.legal a:hover { text-decoration: underline; }
.legal-back { margin-top: 40px; }

.legal-version { margin-top: 30px; font-size: .85rem; color: var(--muted); font-style: italic; }
.footer-quali { height: auto; width: 300px; max-width: 100%; background: #fff; border-radius: 14px; padding: 14px 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .download-band { grid-template-columns: 1fr; padding: 36px; text-align: left; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }

  .nav {
    position: fixed; top: 88px; right: 16px; left: auto;
    width: min(240px, 78vw);
    flex-direction: column; gap: 2px; align-items: stretch;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    box-shadow: 0 18px 40px -18px rgba(20, 35, 61, .4);
    padding: 10px 12px;
    transform: translateY(-10px) scale(.97); opacity: 0; pointer-events: none;
    transition: transform .22s ease, opacity .22s ease;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 11px 10px; width: 100%; border-bottom: 1px solid var(--line); border-radius: 8px; }
  .nav a:last-of-type { border-bottom: 0; }
  .nav-cta { text-align: center; margin-top: 8px; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 540px) {
  .grid-4 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ---------- Bandeau cookies ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 20px 50px -18px rgba(20, 35, 61, .45);
  animation: cookieUp .4s ease;
}
.cookie-inner { max-width: var(--max); margin: 0 auto; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cookie-text { font-size: .9rem; color: var(--ink); margin: 0; flex: 1 1 340px; }
.cookie-text a { color: var(--teal); font-weight: 600; text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn { padding: 10px 22px; font-size: .9rem; }
@keyframes cookieUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@media (max-width: 540px) {
  .cookie-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-actions { justify-content: center; }
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
