/* =========================================================
   AMSI CONSEILS V2 — FRONT-OFFICE
   Palette : bleu nuit intense + bleu digital + blanc premium
   ========================================================= */

:root {
  --navy-950: #020b24;
  --navy-900: #031c52;
  --navy-800: #083577;
  --blue-700: #0a57b7;
  --blue-600: #0a66c2;
  --cyan-600: #0782b5;
  --sky-400: #5ca5d1;
  --sky-200: #96c7e4;
  --soft: #e8eff9;
  --white: #ffffff;
  --ink: #0f2d64;
  --muted: #647396;
  --gold: #c9a96e;
  --line: rgba(150, 199, 228, 0.55);
  --shadow: 0 24px 80px rgba(3, 28, 82, 0.15);
  --shadow-strong: 0 35px 100px rgba(2, 11, 36, 0.28);
  --radius: 24px;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font: 16px/1.65 "Segoe UI", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -70px;
  z-index: 1000;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--white);
  color: var(--navy-900);
  box-shadow: var(--shadow);
}
.skip-link:focus { top: 16px; }

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(150, 199, 228, 0.45);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(18px);
}
.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}
.brand img {
  display: block;
  width: 54px;
  height: 54px;
  border-radius: 50%;
}
.brand span { display: grid; line-height: 1; }
.brand strong {
  color: var(--navy-900);
  font: 700 23px/1 Georgia, serif;
  letter-spacing: .09em;
}
.brand small {
  margin-top: 6px;
  color: var(--navy-800);
  font-size: 10px;
  letter-spacing: .34em;
}
.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.main-nav a {
  padding: 32px 0 27px;
  border-bottom: 3px solid transparent;
  color: var(--navy-900);
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--blue-600);
  border-color: var(--blue-600);
}
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { position: relative; }
.lang-switch > button {
  border: 1px solid var(--sky-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy-900);
  padding: 10px 14px;
}
.lang-switch > div {
  position: absolute;
  right: 0;
  top: 54px;
  min-width: 150px;
  display: none;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.lang-switch.open > div { display: grid; }
.lang-switch a { padding: 8px 12px; border-radius: 9px; }
.lang-switch a:hover,
.lang-switch a[aria-current="true"] { background: var(--soft); color: var(--blue-600); }
.menu-toggle { display: none; border: 0; background: transparent; }
.menu-toggle b { position: absolute; clip: rect(0,0,0,0); }

/* BUTTONS */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 23px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-600), var(--navy-800));
  box-shadow: 0 14px 34px rgba(10,102,194,0.25);
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(10,102,194,0.35); }
.button-small { min-height: 44px; padding: 11px 18px; font-size: 14px; }
.button-ghost,
.button-ghost-light {
  background: transparent;
  box-shadow: none;
  border: 1px solid var(--sky-200);
  color: var(--navy-900);
}
.button-ghost-light { color: var(--white); border-color: rgba(255,255,255,0.5); }
.button-light { background: var(--white); color: var(--navy-900); box-shadow: none; }

/* HERO */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 18%, rgba(10,102,194,0.5), transparent 28%),
    linear-gradient(125deg, var(--navy-950) 0%, var(--navy-900) 44%, var(--navy-800) 100%);
}
.home-hero { min-height: 760px; display: flex; align-items: center; }
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 70px;
  padding: 90px 0 105px;
}
.hero h1 {
  max-width: 800px;
  margin: 0 0 28px;
  color: var(--white);
  font: clamp(48px, 6.2vw, 82px)/1.01 Georgia, serif;
  letter-spacing: -.045em;
}
.kicker {
  display: block;
  margin-bottom: 20px;
  color: #8fd5f1;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .22em;
}
.kicker-dark { color: var(--blue-600); }
.lead {
  max-width: 780px;
  margin: 0 0 34px;
  color: #d8e9f8;
  font-size: clamp(19px, 2vw, 23px);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 34px;
  color: #c9ddf0;
  font-size: 13px;
}
.hero-proof span::before { content: "✓"; margin-right: 8px; color: var(--gold); }
.hero-portrait-wrap { position: relative; min-height: 590px; }
.hero-portrait-frame {
  position: absolute;
  inset: 0 18px 0 55px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.23);
  border-radius: 260px 260px 32px 32px;
  background: rgba(255,255,255,0.06);
  box-shadow: var(--shadow-strong);
}
.hero-portrait-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 28%;
}
.hero-badge {
  position: absolute;
  left: 0;
  bottom: 58px;
  display: grid;
  padding: 18px 22px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 18px;
  background: rgba(3,28,82,.82);
  backdrop-filter: blur(14px);
}
.hero-badge strong { color: var(--gold); font: 38px/1 Georgia, serif; }
.hero-badge span { margin-top: 5px; font-size: 13px; }
.hero-card {
  position: absolute;
  right: -10px;
  top: 55px;
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--white);
  color: var(--navy-900);
  box-shadow: var(--shadow);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
}
.hero-glow { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); }
.hero-glow-one { width: 760px; height: 760px; right: -300px; top: -260px; }
.hero-glow-two { width: 440px; height: 440px; left: -250px; bottom: -220px; }
.simple-hero { padding: 118px 0 90px; }
.simple-hero-inner { max-width: 1060px; }
.simple-hero h1 { font-size: clamp(42px, 5.4vw, 70px); }

/* METRICS */
.metrics-wrap { position: relative; z-index: 4; margin-top: -45px; }
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.metrics article { padding: 28px 30px; border-right: 1px solid var(--soft); }
.metrics article:last-child { border-right: 0; }
.metrics strong { display: block; color: var(--blue-600); font: 35px/1 Georgia, serif; }
.metrics span { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; }

/* SECTIONS */
.section { padding: 100px 0; }
.section-soft { background: var(--soft); }
.section-navy { color: var(--white); background: linear-gradient(135deg, var(--navy-950), var(--navy-900)); }
.section-head { display: flex; align-items: flex-start; gap: 24px; margin-bottom: 48px; }
.section-head > span { color: var(--blue-600); font: 22px Georgia, serif; }
.section-head h2,
.founder h2,
.cta-band h2,
.prose h2 {
  max-width: 900px;
  margin: 0;
  color: var(--navy-900);
  font: clamp(34px, 4vw, 56px)/1.1 Georgia, serif;
  letter-spacing: -.03em;
}
.section-navy .section-head h2 { color: var(--white); }
.section-lead { max-width: 780px; color: var(--muted); font-size: 18px; }
.section-navy .section-lead { color: #c7d9eb; }

/* CARDS */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  min-height: 230px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-5px); border-color: var(--blue-600); box-shadow: var(--shadow); }
.card-index { color: var(--gold); font: 20px Georgia, serif; }
.card h3 { margin: 24px 0 10px; color: var(--navy-900); font: 27px Georgia, serif; }
.card p { margin: 0; color: var(--muted); }
.section-navy .card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); }
.section-navy .card h3 { color: var(--white); }
.section-navy .card p { color: #cbd9e8; }

/* STEPS */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps article {
  padding: 30px;
  border-top: 4px solid var(--blue-600);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(3,28,82,.06);
}
.steps b { color: var(--gold); font: 23px Georgia, serif; }
.steps h3 { margin: 20px 0 9px; color: var(--navy-900); font: 27px Georgia, serif; }
.steps p { margin: 0; color: var(--muted); }

/* FOUNDER / PORTRAIT */
.founder-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 72px; align-items: center; }
.founder-photo {
  max-width: 500px;
  overflow: hidden;
  border-radius: 260px 260px 28px 28px;
  box-shadow: var(--shadow);
  background: var(--soft);
}
.founder-photo img {
  display: block;
  width: 100%;
  height: 680px;
  object-fit: cover;
  object-position: center 32%;
}
.founder-copy p { max-width: 720px; color: var(--muted); font-size: 20px; }
.text-link { color: var(--blue-600); font-weight: 850; }

/* RICH TEXT */
.prose { max-width: 900px; }
.prose p,
.prose li { font-size: 18px; }
.prose h2 { margin: 45px 0 14px; font-size: 38px; }
.prose h3 { color: var(--navy-900); font: 28px Georgia, serif; }
.prose a { color: var(--blue-600); text-decoration: underline; }

/* PROOFS */
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.proof-grid article { padding: 36px; border: 1px solid var(--line); border-radius: var(--radius); }
.proof-grid strong { color: var(--blue-600); font: 54px Georgia, serif; }
.proof-grid h3 { color: var(--navy-900); font: 27px Georgia, serif; }
.proof-grid p { color: var(--muted); }
.proof-note { color: var(--muted); font-size: 14px; }

/* CTA */
.cta-band { padding: 80px 0; color: var(--white); background: linear-gradient(115deg, var(--blue-600), var(--navy-800)); }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-band h2 { color: var(--white); }
.cta-band p { max-width: 760px; color: #d7e7f6; font-size: 18px; }

/* ARTICLES */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.article-grid article { display: flex; flex-direction: column; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); }
.article-grid article > span { color: var(--blue-600); font-size: 11px; font-weight: 900; letter-spacing: .17em; }
.article-grid h2 { margin: 22px 0 12px; color: var(--navy-900); font: 28px Georgia, serif; }
.article-grid p { color: var(--muted); }
.article-meta { margin-top: auto; display: flex; justify-content: space-between; gap: 18px; padding-top: 20px; color: var(--muted); font-size: 13px; }
.article-meta a { color: var(--blue-600); font-weight: 800; }
.article-hero { padding: 120px 0 90px; color: var(--white); background: linear-gradient(135deg, var(--navy-950), var(--navy-800)); }
.article-hero h1 { max-width: 1000px; margin: 0 0 24px; font: clamp(42px, 5.4vw, 70px)/1.05 Georgia, serif; }
.article-author { display: flex; align-items: center; gap: 12px; margin-top: 32px; }
.article-author img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.article-author span { display: grid; }
.article-author small { color: #bdd3e7; }
.article-content { padding-top: 80px; padding-bottom: 90px; }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 60px; }
.contact-aside h2 { color: var(--navy-900); font: 42px Georgia, serif; }
.contact-aside > p { color: var(--muted); }
.contact-portrait { width: 130px; height: 130px; object-fit: cover; border-radius: 50%; box-shadow: var(--shadow); }
.contact-card { display: grid; gap: 4px; margin-top: 30px; padding: 22px; border-left: 4px solid var(--blue-600); background: var(--soft); }
.contact-card span { color: var(--muted); }
.contact-card a { color: var(--blue-600); }
.lead-form { padding: 38px; border-radius: var(--radius); background: var(--soft); }
.lead-form > h2 { margin-top: 0; color: var(--navy-900); font: 38px Georgia, serif; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-grid label { display: grid; gap: 7px; font-weight: 700; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  padding: 13px;
  border: 1px solid #b7cde1;
  border-radius: 10px;
  background: var(--white);
  color: var(--navy-900);
}
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus { outline: 3px solid rgba(10,102,194,.18); border-color: var(--blue-600); }
.check { grid-template-columns: auto 1fr !important; align-items: start; }
.honeypot { position: absolute !important; left: -9999px !important; }
.form-note { color: var(--muted); font-size: 13px; }
.form-success { margin-bottom: 18px; padding: 16px; border-radius: 12px; color: #0a5a3b; background: #ddf7ea; }

/* FOOTER */
.site-footer { padding: 78px 0 28px; color: #d4e1ef; background: var(--navy-950); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 45px; }
.footer-grid > div { display: flex; flex-direction: column; gap: 10px; }
.footer-grid h2 { color: var(--white); font: 20px Georgia, serif; }
.footer-grid a,
.link-button { color: #b8c9da; text-align: left; }
.footer-grid a:hover,
.link-button:hover { color: var(--white); }
.link-button { border: 0; padding: 0; background: transparent; }
.footer-brand strong,
.footer-brand small { color: var(--white); }
.footer-about p { max-width: 360px; }
.footer-signature { color: var(--gold); font-size: 13px; letter-spacing: .08em; }
.footer-bottom { margin-top: 54px; padding-top: 24px; display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.14); font-size: 13px; }
.admin-link { opacity: .55; font-size: 12px; }

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  z-index: 500;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 1180px;
  margin: auto;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 4px 0 0; max-width: 700px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
dialog { max-width: 560px; padding: 0; border: 0; border-radius: 18px; color: var(--ink); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(2,11,36,.68); }
dialog form { padding: 28px; }
.dialog-head { display: flex; justify-content: space-between; }
.dialog-head h2 { color: var(--navy-900); font: 30px Georgia, serif; }
.dialog-head button { border: 0; background: transparent; font-size: 30px; }
.consent-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 0; border-top: 1px solid var(--soft); }
.consent-row span { display: grid; }
.consent-row small { color: var(--muted); }
.consent-row input { width: 22px; height: 22px; }

/* RESPONSIVE */
@media (max-width: 1120px) {
  .main-nav {
    position: fixed;
    inset: 88px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
    background: var(--white);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 8px 0; border: 0; font-size: 18px; }
  .menu-toggle { margin-left: auto; display: grid; gap: 5px; }
  .menu-toggle span { width: 26px; height: 2px; background: var(--navy-900); }
  .header-actions .button { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 900px; }
  .hero-portrait-wrap { max-width: 650px; width: 100%; margin: 0 auto; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .header-inner { min-height: 74px; }
  .main-nav { inset: 74px 0 auto 0; }
  .brand img { width: 46px; height: 46px; }
  .brand strong { font-size: 19px; }
  .home-hero { min-height: auto; }
  .hero-grid { padding: 82px 0 70px; gap: 45px; }
  .hero h1 { font-size: 44px; }
  .lead { font-size: 18px; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .hero-portrait-wrap { min-height: 520px; }
  .hero-portrait-frame { inset: 0 8px 0 28px; }
  .hero-card { display: none; }
  .metrics-wrap { margin-top: 0; }
  .metrics { grid-template-columns: 1fr 1fr; border-radius: 0; }
  .metrics article { padding: 20px; }
  .section { padding: 72px 0; }
  .card-grid,
  .steps,
  .proof-grid,
  .article-grid,
  .form-grid,
  .contact-grid,
  .founder-grid { grid-template-columns: 1fr; }
  .founder-grid { gap: 38px; }
  .founder-photo { max-width: 100%; }
  .founder-photo img { height: auto; aspect-ratio: 2/3; object-position: center 25%; }
  .cta-band .container { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .cookie-banner { align-items: stretch; flex-direction: column; }
  .cookie-actions { display: grid; grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
