/* MADYIAMA V4 — palette officielle, ombre / lumière / voie du milieu. */
:root {
  --navy: #071A30;
  --gold: #C58F44;
  --ivory: #FCFCFC;
  --header-height: 86px;
  --axis-width: 4px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.68;
  background: var(--navy);
  color: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.col-light :focus-visible { outline-color: var(--navy); }
.skip-link {
  position: fixed; top: -70px; left: 14px; z-index: 500;
  background: var(--ivory); color: var(--navy);
  padding: 10px 18px; border: 3px solid var(--gold);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.shell { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }
.site-header {
  background: var(--navy);
  color: var(--ivory);
  border-bottom: 1px solid var(--gold);
  position: sticky; top: 0; z-index: 100;
}
.header-inner { min-height: var(--header-height); display: flex; justify-content: space-between; align-items: center; gap: 26px; }
.brand { min-width: 0; display: inline-flex; flex-direction: column; text-decoration: none; gap: 0; }
.brand-word { font-weight: 800; font-size: 1.33rem; letter-spacing: .18em; line-height: 1.2; }
.brand-word span { color: var(--gold); }
.brand-caption { font-size: .68rem; font-weight: 700; letter-spacing: .072em; line-height: 1.6; margin-top: 5px; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: clamp(.5rem, 1.1vw, 1.25rem); }
.main-nav a { text-decoration: none; font-size: .84rem; font-weight: 600; }
.main-nav a:hover, .footer-links a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; }
.main-nav .nav-cta { border: 1px solid var(--gold); padding: .48rem .9rem; border-radius: 999px; }
.menu-toggle { display: none; color: var(--ivory); border: 1px solid var(--gold); border-radius: 8px; background: transparent; padding: 10px; cursor: pointer; }
.menu-lines { display: flex; flex-direction: column; gap: 4px; }
.menu-lines span { width: 23px; height: 2px; background: var(--ivory); display: block; }

/* Independent explicit backgrounds: no white-on-white can occur after section alternations. */
.page-main { position: relative; isolation: isolate; }
.page-main::before {
  display: none;
}
.section { scroll-margin-top: var(--header-height); }
.section:not(.hero) { background: linear-gradient(to right, var(--navy) 0 50%, var(--ivory) 50% 100%); }
.hero { background: linear-gradient(to right, var(--navy) 0 50%, var(--ivory) 50% 100%); }
.section-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: stretch; }
.col { min-width: 0; padding: clamp(2rem, 3.9vw, 4.25rem) clamp(1.7rem, 3.75vw, 3.9rem); }
.col-dark { background: var(--navy); color: var(--ivory); }
.col-light { background: var(--ivory); color: var(--navy); }
.section-grid > .col { display: flex; flex-direction: column; justify-content: center; }
.section-grid > .col:first-child { padding-right: clamp(2rem, 3.9vw, 4.1rem); }
.section-grid > .col:last-child { padding-left: clamp(2rem, 3.9vw, 4.1rem); }
.section-band {
  min-height: 45px;
  background: var(--gold);
  color: var(--navy);
  display: flex; justify-content: center; align-items: center;
  text-align: center; padding: .7rem 1rem;
}
.section-band h2 {
  margin: 0;
  max-width: unset;
  font-size: .91rem; font-weight: 800; letter-spacing: .19em;
  line-height: 1.4;
  text-transform: uppercase;
}
/* Heading and text. Navy and ivory are always the actual foregrounds.
   Gold on ivory (2.77:1) is decorative underline, never body text. */
h1,h2,h3,h4 { margin: 0 0 1rem; line-height: 1.17; letter-spacing: -.028em; }
h1 { font-size: clamp(2.35rem, 3.55vw, 3.45rem); max-width: 15ch; font-weight: 800; }
h1 span { color: var(--gold); }
h2 { font-size: clamp(1.7rem, 2.55vw, 2.45rem); }
h3 { font-size: clamp(1.85rem, 2.95vw, 2.8rem); }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }
.eyebrow { font-size: .75rem; text-transform: uppercase; font-weight: 700; letter-spacing: .14em; }
.eyebrow-dark { color: var(--navy); }
.gold-dark { color: inherit; box-shadow: inset 0 -.14em 0 var(--gold); }
.lead,.lead-light { font-size: 1.06rem; line-height: 1.65; }
.hero-grid { min-height: 610px; }
.hero-copy { gap: 0; }
.hero-copy h1 { margin-bottom: 1.65rem; }
.hero-copy p { max-width: 53ch; }
.hero-copy .lead { margin-bottom: 1.25rem; }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin-top: 1.35rem; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: .8rem 1.15rem; min-height: 48px; text-decoration: none; text-align: center; font-size: .91rem; font-weight: 800; border-radius: 999px; }
.button-gold { background: var(--gold); color: var(--navy); }
.button-navy { background: var(--navy); color: var(--ivory); }
.col-dark .button-navy { background: var(--gold); color: var(--navy); }
.text-link { font-weight: 700; text-underline-offset: 6px; font-size: .95rem; }
.col-dark .text-link { color: var(--ivory); }
.col-light .text-link { color: var(--navy); }
.button:hover, .text-link:hover, .contact-email:hover { text-decoration-thickness: 2px; filter: brightness(.95); }
.hero-philosophy { text-align: left; }
.logo-panel {
  width: 202px;
  max-width: 65%;
  background: transparent;
  margin: 0 0 2.15rem;
  box-shadow: 14px 14px 0 rgba(197, 143, 68, 0.20);
}
.logo-panel img { width: 100%; height: auto; border-radius: 2px; }
.hero-philosophy h2 { max-width: 19ch; margin-bottom: 1.2rem; }
.hero-philosophy p:not(.eyebrow) { max-width: 54ch; }
.highlight-light { font-weight: 700; }
.mini-method { margin-top: 1rem; font-weight: 700; }

/* Gentle rhythm, no checkerboard / extra shades. */
#vision .section-grid { min-height: 440px; }
#vision .col-dark { padding-top: 3.2rem; padding-bottom: 3.2rem; }
.challenge-stack { gap: 1.7rem; }
.challenge-card { border-left: 3px solid var(--gold); padding-left: 1.3rem; }
.challenge-card h4 { margin-bottom: .5rem; }
.challenge-note { font-weight: 700; margin-bottom: 0; }
#offres .section-grid { min-height: 590px; }
.offer-block { justify-content: flex-start !important; }
.offer-block h3 { margin-bottom: .65rem; }
.offer-tagline { font-weight: 800; }
.offer-tagline-light { color: var(--navy); }
.offer-list { padding-left: 1.25rem; margin: .15rem 0 1.75rem; }
.offer-list li { padding-left: .25rem; margin: .35rem 0; }
.use-case { margin-top: auto; padding: 1.25rem 0 0 1.15rem; border-left: 3px solid var(--gold); }
.use-case h4 { margin-bottom: .6rem; font-size: 1.06rem; }
.use-case p { font-size: .97rem; }
#diagnostic .section-grid { min-height: 470px; }
.figures-block { gap: .2rem; }
.diag-figures { margin: .25rem 0 1.3rem; display: grid; grid-template-columns: 1fr; }
.diag-figures > div { border-top: 1px solid var(--gold); padding: .6rem 0 .75rem; }
.diag-figures > div:last-child { border-bottom: 1px solid var(--gold); }
.diag-figures dt { font-weight: 600; font-size: .79rem; letter-spacing: .1em; text-transform: uppercase; }
.diag-figures dd { margin: .25rem 0 0; font-size: clamp(2.05rem, 3vw, 2.85rem); font-weight: 800; line-height: 1.18; }
.diag-figures dd span { font-weight: 700; font-size: .43em; }
.conditions { font-size: .88rem; }
#fondateur .section-grid { min-height: 535px; }
.founder-identity { gap: 0; }
.portrait-wrap { width: 245px; max-width: 100%; aspect-ratio: 1; overflow: hidden; border: 4px solid var(--gold); border-radius: 50%; margin: .2rem 0 1.8rem; }
.portrait-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center 19%; background: var(--navy); }
.founder-identity h3 { font-size: clamp(1.1rem, 1.85vw, 1.52rem); letter-spacing: -.022em; white-space: nowrap; margin-bottom: .85rem; }
.founder-identity blockquote { margin: 0; padding-left: 1rem; border-left: 3px solid var(--gold); line-height: 1.6; font-size: 1.03rem; }
.founder-story h3 { margin-bottom: 1.4rem; }
#contact .section-grid { min-height: 355px; }
.contact-email { font-weight: 800; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 6px; font-size: clamp(1.05rem, 2vw, 1.5rem); word-break: break-word; margin: .6rem 0 1.5rem; }
.contact-block .text-link { display: block; }

.site-footer { background: var(--navy); color: var(--ivory); border-top: 1px solid var(--gold); }
.footer-top,.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.35rem 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-links a { font-size: .85rem; text-decoration: none; }
.footer-bottom { border-top: 1px solid var(--gold); font-size: .79rem; }
.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; }

@media (max-width: 1080px) {
  :root { --header-height: 79px; }
  .main-nav { display: none; position: absolute; right: 20px; top: calc(100% + 6px); padding: 14px 20px; min-width: 240px; background: var(--navy); color: var(--ivory); border: 1px solid var(--gold); border-radius: 12px; box-shadow: 0 14px 32px rgba(0,0,0,.2); }
  .main-nav.open { display: flex; flex-direction: column; align-items: stretch; gap: .3rem; }
  .main-nav a { padding: .5rem; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 780px) {
  .shell { width: 100%; }
  .header-inner { width: calc(100% - 32px); }
  .section, .hero { background: var(--navy); }
  .section-grid { grid-template-columns: 1fr; }
  .col, .section-grid > .col:first-child, .section-grid > .col:last-child { padding: 2.6rem 2rem 2.6rem 2.7rem; }
  .hero-grid { min-height: 0; }
  .hero-copy h1 { font-size: clamp(2.3rem, 7.2vw, 3.3rem); }
  .logo-panel { width: 178px; max-width: 100%; }
  .section-band { min-height: 45px; }
  #offres .section-grid { min-height: unset; }
  .use-case { margin-top: 1rem; }
  .founder-identity h3 { font-size: clamp(1.02rem, 3.3vw, 1.45rem); }
  .portrait-wrap { width: 220px; }
  .footer-top,.footer-bottom { padding: 1.3rem 1.5rem; }
}
@media (max-width: 420px) {
  .brand-word { font-size: 1.17rem; }
  .brand-caption { font-size: .64rem; letter-spacing: .025em; max-width: 28ch; }
  .col, .section-grid > .col:first-child, .section-grid > .col:last-child { padding-left: 2.2rem; padding-right: 1.18rem; }
  .hero-copy h1 { font-size: clamp(2rem, 9vw, 2.55rem); }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .button { max-width: 100%; }
  .founder-identity h3 { font-size: clamp(.94rem, 3.65vw, 1.13rem); letter-spacing: -.038em; }
  .section-band h2 { font-size: .81rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
@media (max-width: 350px) {
  .founder-identity h3 { font-size: .88rem; letter-spacing: -.045em; }
}
