/* =========================================================
   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);
}

/* SOUS-MENU EXPERTISES → AMSI ONE — VERSION PREMIUM */
.nav-parent {
  position: relative;
  display: flex;
  align-items: center;
  align-self: stretch;
  height: 88px;
}

.nav-parent-row {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-parent-row > a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 32px 0 27px;
}

.nav-submenu-toggle {
  width: 20px;
  height: 32px;
  margin-left: 3px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--navy-900);
  font-size: 15px;
  line-height: 1;
}

.nav-submenu-toggle:hover {
  color: var(--blue-600);
}

.nav-submenu-toggle span {
  display: block;
  transform: translateY(-1px);
  transition: transform .2s ease;
}

.nav-parent.open .nav-submenu-toggle span {
  transform: translateY(-1px) rotate(180deg);
}

.nav-submenu {
  position: absolute;
  z-index: 130;
  top: calc(100% - 1px);
  left: 50%;
  width: 310px;
  display: none;
  padding: 10px;
  border: 1px solid rgba(150, 199, 228, .58);
  border-radius: 16px;
  background: rgba(255,255,255,.985);
  box-shadow: 0 22px 55px rgba(3, 28, 82, .16);
  transform: translateX(-50%);
}

.nav-submenu::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  border-left: 1px solid rgba(150, 199, 228, .58);
  border-top: 1px solid rgba(150, 199, 228, .58);
  background: var(--white);
  transform: translateX(-50%) rotate(45deg);
}

.nav-parent.open .nav-submenu {
  display: grid;
  gap: 4px;
}

.nav-submenu a {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border: 0;
  border-radius: 11px;
  color: var(--navy-900);
  line-height: 1.3;
}

.nav-submenu a strong {
  font-size: 14px;
  font-weight: 800;
}

.nav-submenu a small {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  white-space: normal;
}

.nav-submenu a:hover,
.nav-submenu a.active {
  border: 0;
  background: var(--soft);
  color: var(--blue-600);
}

.nav-submenu a:hover small,
.nav-submenu a.active small {
  color: var(--ink);
}

.nav-parent.active-parent > .nav-parent-row > a {
  color: var(--blue-600);
  border-color: var(--blue-600);
}

@media (min-width: 1121px) {
  .nav-parent:hover .nav-submenu {
    display: grid;
    gap: 4px;
  }
}

.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; }

.block-action {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}
.section-navy .block-action .button {
  color: var(--navy-900);
  background: var(--white);
  box-shadow: none;
}
.prose .block-action .button {
  color: var(--white);
  text-decoration: 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%;
}


/* Visuel principal d’accueil administrable : équipe horizontale ou portrait. */
.hero-grid-team {
  grid-template-columns: .95fr 1.05fr;
  gap: 52px;
}
.hero-portrait-wrap.hero-visual-team {
  min-height: 460px;
  display: flex;
  align-items: center;
}
.hero-visual-team .hero-portrait-frame {
  position: relative;
  inset: auto;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0 0 34px 34px;
}
.hero-visual-team .hero-portrait-frame img {
  object-position: center;
}
.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; }
.metrics-wrap .block-action { margin-top: 24px; }

/* 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; }



/* VISUEL ÉQUIPE HORIZONTAL
   Haut droit, angles arrondis uniquement en bas. */
.team-section { background: var(--white); }
.team-visual {
  margin: 0;
  overflow: hidden;
  border-radius: 0 0 32px 32px;
  background: var(--navy-900);
  box-shadow: var(--shadow);
}
.team-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}
.team-visual-action {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

/* 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; }

/* RESULTATS CLIENTS — alignement typographique sur la page Expertises */
.client-results-case .section-head h2,
.client-results-case .proof-grid strong,
.client-results-case .proof-grid h3 {
  font-family: "Segoe UI", Arial, sans-serif;
}

/* RESULTATS CLIENTS — visuel aligne a droite du texte */
.client-results-case .results-intro-with-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
  margin-bottom: 48px;
}
.client-results-case .results-intro-with-media .section-head {
  margin-bottom: 0;
}
.client-results-case .results-media {
  width: min(100%, 320px);
  margin: 0;
  justify-self: end;
}
.client-results-case .results-media img {
  display: block;
  width: 100%;
  height: auto;
}
.client-results-case .results-period {
  display: table;
  margin: 0 auto 2rem;
  padding: .55rem 1rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.client-results-case .proof-grid-seven {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}
.client-results-case .proof-grid-seven > article {
  grid-column: span 2;
}
.client-results-case .proof-grid-seven > article:nth-child(5) {
  grid-column: 2 / span 2;
}
.client-results-case .results-action {
  margin-top: 2rem;
  text-align: center;
}

@media (max-width: 900px) {
  .client-results-case .proof-grid-seven {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .client-results-case .proof-grid-seven > article,
  .client-results-case .proof-grid-seven > article:nth-child(5) {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .client-results-case .results-intro-with-media {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .client-results-case .results-media {
    justify-self: center;
  }

  /* Typographie mobile ciblee : page Resultats clients uniquement */
  .client-results-case .section-head {
    gap: 14px;
  }
  .client-results-case .section-head > span {
    font-size: 15px;
  }
  .client-results-case .section-head h2 {
    font-size: 26px;
    line-height: 1.16;
  }
  .client-results-case .section-lead {
    font-size: 16px;
    line-height: 1.55;
  }
  .client-results-case .proof-grid strong {
    font-size: 32px;
    line-height: 1.1;
  }
  .client-results-case .proof-grid h3 {
    font-size: 19px;
    line-height: 1.25;
  }
  .client-results-case .proof-grid p {
    font-size: 15px;
    line-height: 1.55;
  }
  .client-results-case .proof-grid-seven {
    grid-template-columns: 1fr;
  }
}

/* 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; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.article-card-media { display: block; overflow: hidden; aspect-ratio: 16 / 9; background: var(--soft); }
.article-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.article-card:hover .article-card-media img { transform: scale(1.025); }
.article-card-body { display: flex; flex: 1; flex-direction: column; padding: 28px 30px 30px; }
.article-card-body > 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; object-position: 50% 50%; }
.article-author span { display: grid; }
.article-author small { color: #bdd3e7; }
.article-cover { padding-top: 56px; }
.article-cover img { display: block; width: 100%; max-height: 650px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: 0 24px 70px rgba(3, 28, 82, .16); }
.article-content { padding-top: 64px; 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;
  object-position: 50% 25%;
  border-radius: 50%;
  box-shadow: var(--shadow);
  display: block;
}
.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; }

  .main-nav .nav-parent {
    width: 100%;
    height: auto;
    align-self: auto;
  }

  .main-nav .nav-parent-row {
    width: 100%;
    min-height: 42px;
    gap: 8px;
    overflow: hidden;
  }

  .main-nav .nav-parent-row > a {
    flex: 1;
    height: auto;
    padding: 8px 0;
    border: 0;
    font-size: 18px;
  }

  .main-nav .nav-submenu-toggle {
    width: 42px;
    height: 38px;
    margin-left: 8px;
    border: 1px solid var(--soft);
    border-radius: 10px;
    background: var(--white);
  }

  .main-nav .nav-submenu {
    position: static;
    width: 100%;
    margin: 3px 0 8px;
    padding: 6px;
    border: 1px solid var(--soft);
    border-radius: 12px;
    background: #f8fbff;
    box-shadow: none;
    transform: none;
  }

  .main-nav .nav-submenu::before {
    display: none;
  }

  .main-nav .nav-submenu a {
    padding: 10px 12px;
    border-radius: 9px;
  }

  .main-nav .nav-submenu a strong {
    font-size: 16px;
  }

  .main-nav .nav-submenu a small {
    display: none;
  }

  .main-nav .nav-submenu a strong {
    display: block;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .main-nav .nav-submenu {
    max-width: 100%;
    overflow: hidden;
  }

  .main-nav .nav-submenu a:hover,
  .main-nav .nav-submenu a.active {
    background: var(--white);
  }

  .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%; }
  .block-action .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; }
}


@media (max-width: 1120px) {
  .hero-grid-team { grid-template-columns: 1fr; }
  .hero-portrait-wrap.hero-visual-team { min-height: auto; }
}
@media (max-width: 720px) {
  .hero-visual-team .hero-portrait-frame { border-radius: 0 0 24px 24px; }
}
/* PAGE A PROPOS - rapprochement du bloc fondateur et du bloc suivant */
.section:has(.founder-grid) {
    padding-bottom: 35px;
}

.section:has(.founder-grid) + .section {
    padding-top: 35px;
}

/* =========================================================
   AMSI ONE - STRUCTURE GENERALE
   ========================================================= */

.amsi-one-section {
    padding: 56px 0 64px;
    background: #ffffff;
}

.amsi-one-container {
    width: min(1480px, calc(100% - 48px));
    max-width: none;
    margin: 0 auto;
}

.amsi-one-top {
    display: grid;
    grid-template-columns: 1.65fr 1.25fr 0.85fr;
    gap: 34px;
    align-items: start;
    margin-bottom: 32px;
}

.amsi-one-main {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(280px, 0.9fr);
    gap: 30px;
    align-items: stretch;
}

.amsi-one-agents {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.amsi-agent-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.amsi-agent-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
}

.amsi-agent-card > p {
    flex: 1;
}

.amsi-one-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.amsi-one-why {
    flex: 1;
}

.amsi-one-bottom {
    display: grid;
    grid-template-columns: 1.65fr repeat(4, 1fr);
    gap: 0;
    margin-top: 22px;
    align-items: stretch;
}

@media (max-width: 1180px) {
    .amsi-one-top {
        grid-template-columns: 1fr 1fr;
    }

    .amsi-one-difference {
        grid-column: 1 / -1;
    }

    .amsi-one-main {
        grid-template-columns: 1fr;
    }

    .amsi-one-agents {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .amsi-one-bottom {
        grid-template-columns: repeat(2, 1fr);
    }

    .amsi-one-bottom-intro {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .amsi-one-section {
        padding: 36px 0 44px;
    }

    .amsi-one-container {
        width: min(100% - 28px, 1480px);
    }

    .amsi-one-top,
    .amsi-one-main,
    .amsi-one-agents,
    .amsi-one-bottom {
        grid-template-columns: 1fr;
    }

    .amsi-one-difference,
    .amsi-one-bottom-intro {
        grid-column: auto;
    }
}

/* =========================================================
   AMSI ONE - DESIGN PREMIUM
   ========================================================= */

.amsi-one-section {
    color: #031C52;
}

/* TITRE PRINCIPAL */
.amsi-one-heading h2 {
    margin: 0;
    color: #031C52;
    font-size: clamp(38px, 3vw, 58px);
    line-height: 1.05;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.amsi-one-heading h2 span {
    color: #D6A03B;
}

/* TEXTE INTRO */
.amsi-one-intro {
    padding-top: 8px;
}

.amsi-one-intro p {
    margin: 0 0 13px;
    color: #0F2D64;
    font-size: 16px;
    line-height: 1.65;
}

.amsi-one-intro strong {
    color: #031C52;
}

/* DIFFERENCE AMSI */
.amsi-one-difference {
    display: flex;
    gap: 16px;
    padding: 22px;
    border: 1px solid #96C7E4;
    border-radius: 14px;
    background: #FFFFFF;
}

.amsi-one-difference-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border: 2px solid #031C52;
    border-radius: 50%;
    color: #031C52;
    font-weight: 700;
}

.amsi-one-difference h3 {
    margin: 0 0 8px;
    color: #031C52;
    font-size: 21px;
}

.amsi-one-difference p,
.amsi-one-difference strong {
    display: block;
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
}

/* CARTES AGENTS */
.amsi-agent-card {
    padding: 22px;
    border: 1px solid #C9DCEC;
    border-radius: 16px;
    background: #FFFFFF;
    box-shadow: 0 8px 28px rgba(3, 28, 82, 0.04);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.amsi-agent-card:hover {
    transform: translateY(-4px);
    border-color: #5CA5D1;
    box-shadow: 0 14px 36px rgba(3, 28, 82, 0.09);
}

.amsi-agent-head {
    margin-bottom: 18px;
}

.amsi-agent-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 2px solid #083577;
    border-radius: 50%;
    color: #D6A03B;
    font-weight: 700;
    font-size: 14px;
}

.amsi-agent-head h3 {
    margin: 0 0 4px;
    color: #031C52;
    font-size: 18px;
    line-height: 1.15;
}

.amsi-agent-head span {
    color: #D6A03B;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
}

.amsi-agent-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #96C7E4;
    border-radius: 50%;
    color: #031C52;
    font-size: 12px;
    font-weight: 700;
}

.amsi-agent-card > p {
    margin: 0 0 20px;
    color: #0F2D64;
    font-size: 14px;
    line-height: 1.55;
}

.amsi-agent-value {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 14px;
    border-top: 1px solid #D8E5F0;
}

.amsi-agent-value span {
    display: inline-block;
    padding: 5px 8px;
    border-radius: 5px;
    background: #F7E8C3;
    color: #6A4B0D;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
}

.amsi-agent-value strong {
    color: #031C52;
    font-size: 14px;
    font-weight: 500;
}

/* COLONNE DROITE */
.amsi-one-why {
    padding: 28px 26px;
    border-radius: 16px;
    background: linear-gradient(145deg, #F2F7FC 0%, #E8EFF9 100%);
}

.amsi-one-why > h3 {
    margin: 0 0 26px;
    color: #031C52;
    font-size: 26px;
    line-height: 1.15;
}

.amsi-one-why > h3 span {
    color: #D6A03B;
}

.amsi-one-benefit {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 14px;
    margin-bottom: 22px;
}

.amsi-one-benefit b {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 2px solid #083577;
    border-radius: 50%;
    color: #083577;
}

.amsi-one-benefit strong {
    display: block;
    margin-bottom: 5px;
    color: #031C52;
    font-size: 15px;
}

.amsi-one-benefit p {
    margin: 0;
    color: #0F2D64;
    font-size: 13px;
    line-height: 1.5;
}

.amsi-one-button {
    display: block;
    margin-top: 28px;
    padding: 14px 18px;
    border-radius: 8px;
    background: #031C52;
    color: #FFFFFF !important;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    transition: background .2s ease, transform .2s ease;
}

.amsi-one-button:hover {
    background: #083577;
    transform: translateY(-2px);
}

/* VOIR AMSI ONE EN ACTION */
.amsi-one-action {
    display: flex;
    gap: 16px;
    padding: 22px;
    border: 1px solid #D6A03B;
    border-radius: 14px;
    background: #FFFFFF;
}

.amsi-one-action > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border: 2px solid #D6A03B;
    border-radius: 50%;
    color: #D6A03B;
    font-size: 20px;
}

.amsi-one-action strong {
    display: block;
    margin-bottom: 8px;
    color: #031C52;
    font-size: 17px;
    line-height: 1.15;
}

.amsi-one-action p {
    margin: 0;
    color: #0F2D64;
    font-size: 13px;
    line-height: 1.45;
}

/* BANDEAU BAS */
.amsi-one-bottom {
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(120deg, #031C52 0%, #083577 100%);
    color: #FFFFFF;
}

.amsi-one-bottom-intro,
.amsi-one-pillar {
    padding: 24px 22px;
}

.amsi-one-pillar {
    border-left: 1px solid rgba(255,255,255,.22);
}

.amsi-one-bottom strong {
    display: block;
    margin-bottom: 8px;
    color: #FFFFFF;
    font-size: 14px;
}

.amsi-one-bottom-intro > strong {
    color: #FFFFFF;
    font-size: 17px;
}

.amsi-one-bottom p {
    margin: 0;
    color: rgba(255,255,255,.88);
    font-size: 12px;
    line-height: 1.5;
}

/* RESPONSIVE AMSI ONE */
@media (max-width: 1180px) {
    .amsi-one-pillar {
        border-left: 0;
        border-top: 1px solid rgba(255,255,255,.18);
    }
}

@media (max-width: 720px) {
    .amsi-one-heading h2 {
        font-size: 36px;
    }

    .amsi-one-top {
        gap: 24px;
    }

    .amsi-agent-card {
        padding: 20px;
    }

    .amsi-one-why {
        padding: 24px 20px;
    }

    .amsi-one-bottom-intro,
    .amsi-one-pillar {
        padding: 20px;
    }
}

/* =========================================================
   NEWSLETTER KLAVIYO — FOOTER AMSI CONSEILS
   ========================================================= */

.footer-newsletter {
    padding: 0 0 34px;
}

.footer-newsletter .klaviyo-form-SVxaei {
    width: 100%;
    max-width: 1020px;
    margin: 0 auto;
    background: #EEF4FA;
    border-radius: 16px;
    overflow: hidden;
}

@media (max-width: 760px) {
    .footer-newsletter {
        padding: 0 0 24px;
    }

    .footer-newsletter .klaviyo-form-SVxaei {
        max-width: 100%;
        border-radius: 12px;
    }
}

/* =========================================================
   MODE & RETAIL — GALERIE ÉDITORIALE ADMINISTRABLE
   4 vignettes portrait en desktop, 2 en tablette, 1 en mobile
   ========================================================= */
.mode-gallery-section {
  padding: 18px 0 92px;
  background: var(--white);
}

.mode-gallery-section .section-head {
  margin-bottom: 34px;
}

.mode-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.mode-gallery-item {
  display: block;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  background: var(--soft);
  box-shadow: 0 14px 38px rgba(3, 28, 82, .08);
}

.mode-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

a.mode-gallery-item:hover img {
  transform: scale(1.025);
}

a.mode-gallery-item:focus-visible {
  outline: 3px solid rgba(10, 102, 194, .35);
  outline-offset: 4px;
}

@media (max-width: 980px) {
  .mode-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .mode-gallery-section {
    padding: 8px 0 64px;
  }

  .mode-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .mode-gallery-item {
    border-radius: 16px;
  }
}

/* =========================================================
   SECTEURS — 6 CARTES EN 2 + 2 + 2 SUR MOBILE UNIQUEMENT
   ========================================================= */
@media (max-width: 760px) {

  body[data-page="sectors"] .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  body[data-page="sectors"] .card-grid .card {
    min-height: 0;
    padding: 16px;
    border-radius: 16px;
  }

  body[data-page="sectors"] .card-grid .card-index {
    font-size: 16px;
  }

  body[data-page="sectors"] .card-grid .card h3 {
    margin: 12px 0 8px;
    font-size: 18px;
    line-height: 1.2;
  }

  body[data-page="sectors"] .card-grid .card p {
    font-size: 13px;
    line-height: 1.5;
  }
}

/* =========================================================
   AMSI ONE — GALERIE AGENTS JUSQU’À 6 VISUELS
   Desktop : 3 + 3 ; avec 5 visuels : 3 + 2 centrés
   Tablette/mobile : 2 colonnes ; dernier visuel centré si nombre impair
   ========================================================= */
@media (min-width: 981px) {
  body[data-page="amsi_one"] .mode-gallery-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
  }

  body[data-page="amsi_one"] .mode-gallery-item {
    grid-column: span 2;
  }

  /* 5 visuels : la seconde ligne de 2 cartes est centrée. */
  body[data-page="amsi_one"] .mode-gallery-item:nth-child(4):nth-last-child(2) {
    grid-column: 2 / span 2;
  }

  body[data-page="amsi_one"] .mode-gallery-item:nth-child(5):last-child {
    grid-column: 4 / span 2;
  }

  /* 4 visuels : la dernière carte est centrée sur la seconde ligne. */
  body[data-page="amsi_one"] .mode-gallery-item:nth-child(4):last-child {
    grid-column: 3 / span 2;
  }

  /* 2 visuels : centrés sur une seule ligne. */
  body[data-page="amsi_one"] .mode-gallery-item:first-child:nth-last-child(2) {
    grid-column: 2 / span 2;
  }

  body[data-page="amsi_one"] .mode-gallery-item:nth-child(2):last-child {
    grid-column: 4 / span 2;
  }

  /* 1 seul visuel : centré. */
  body[data-page="amsi_one"] .mode-gallery-item:only-child {
    grid-column: 3 / span 2;
  }
}

@media (max-width: 980px) {
  /* Avec 5 visuels : 2 + 2 + 1, le dernier reste à la largeur d’une carte et centré. */
  body[data-page="amsi_one"] .mode-gallery-item:nth-child(5):last-child {
    grid-column: 1 / -1;
    width: calc((100% - 16px) / 2);
    justify-self: center;
  }
}

