/* ============================================================
   Groupe Mainborgère — feuille de style
   Charte : bleu marine #001B5E · bleu électrique #0049FF
            orange #FF4800 · gris clair #D7D7D7
   ============================================================ */

@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Montserrat';
  src: url('fonts/montserrat-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

:root {
  --navy: #001B5E;
  --navy-600: #123184;
  --blue: #0049FF;
  --orange: #FF4800;
  --grey: #D7D7D7;
  --paper: #F4F5F7;
  --paper-2: #EDEFF3;
  --white: #FFFFFF;
  --ink: #10162B;
  --muted: #5C667C;
  --line: rgba(0, 27, 94, .12);

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --display: 'Montserrat', 'Inter', 'Segoe UI', Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --r: 14px;
  --shadow: 0 1px 2px rgba(0, 27, 94, .04), 0 12px 32px rgba(0, 27, 94, .07);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.15rem, 1.35rem + 2.7vw, 3.6rem); }
h2 { font-size: clamp(1.65rem, 1.15rem + 1.7vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem); }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 2rem + 6vw, 6.5rem) 0; }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy); color: rgba(255, 255, 255, .82); }
.section--navy h2, .section--navy h3 { color: #fff; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ---------- Eyebrow / titres de section ---------- */
.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 1rem;
  display: flex; align-items: center; gap: .7rem;
}
.eyebrow::after { content: ""; height: 1px; flex: 1; max-width: 64px; background: currentColor; opacity: .45; }
@media (max-width: 520px) { .eyebrow::after { display: none; } }
.section--navy .eyebrow { color: #FF7A3D; }
.lead { font-size: clamp(1.02rem, .97rem + .3vw, 1.18rem); color: var(--muted); max-width: 62ch; }
.section--navy .lead { color: rgba(255, 255, 255, .8); }
.head { max-width: 760px; margin-bottom: clamp(2rem, 1rem + 3vw, 3.2rem); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--display); font-weight: 600; font-size: .93rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--navy); color: #fff; text-decoration: none;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
}
.btn:hover { background: var(--navy-600); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0, 27, 94, .18); }
.btn--orange { background: var(--orange); }
.btn--orange:hover { background: #E63F00; box-shadow: 0 10px 24px rgba(255, 72, 0, .25); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { background: rgba(0, 27, 94, .05); color: var(--navy); box-shadow: none; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: #fff; color: var(--navy); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .1); box-shadow: none; }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btns { display: flex; flex-wrap: wrap; gap: .8rem; }

.link-arrow {
  font-family: var(--display); font-weight: 600; text-decoration: none;
  color: var(--navy); border-bottom: 2px solid var(--orange); padding-bottom: 2px;
  display: inline-flex; align-items: center; gap: .45rem;
}
.link-arrow:hover { color: var(--orange); }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar { display: flex; align-items: center; gap: 1.5rem; height: 76px; }
.brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.7rem; }
.nav a {
  font-family: var(--display); font-weight: 600; font-size: .87rem;
  color: var(--navy); text-decoration: none; padding: .3rem 0; position: relative;
  white-space: nowrap; flex: 0 0 auto;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--orange); transition: right .22s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav .btn { color: #fff; }
.nav .btn::after { display: none; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  width: 44px; height: 44px; cursor: pointer; color: var(--navy);
}
@media (max-width: 940px) {
  .site-header .bar { height: 68px; }
  .brand img { height: 38px; }
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    position: absolute; inset: 100% 0 auto; background: #fff; flex-direction: column;
    align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav .btn { margin-top: .9rem; justify-content: center; border-bottom: 0; }
}

/* ---------- Héros ---------- */
.hero { position: relative; overflow: hidden; background: var(--paper); border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(1100px 520px at 82% -8%, rgba(0, 73, 255, .07), transparent 62%);
  pointer-events: none;
}
.hero-mark {
  position: absolute; right: -60px; bottom: -40px; width: min(46vw, 520px);
  opacity: .05; pointer-events: none; user-select: none;
}
.hero-inner { position: relative; padding: clamp(3.2rem, 2rem + 6vw, 6rem) 0 clamp(3rem, 2rem + 4vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: start; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: .55em; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero .lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: #37415C; }
.hero .btns { margin-top: 2rem; }

.idcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.6rem 1.7rem; box-shadow: var(--shadow);
}
.idcard h2 {
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-bottom: 1.1rem;
}
.idcard dl { margin: 0; display: grid; gap: .95rem; }
.idcard dt {
  font-family: var(--display); font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue); font-weight: 600;
}
.idcard dd { margin: .15rem 0 0; font-size: .96rem; color: var(--ink); line-height: 1.45; }
.idcard .row + .row { border-top: 1px solid var(--line); padding-top: .95rem; }

/* ---------- Bandeau signature ---------- */
.signature-strip { background: var(--navy); color: #fff; }
.signature-strip .wrap {
  display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: center;
  justify-content: center; padding: 1.15rem 0;
  font-family: var(--display); font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; font-size: .78rem;
}
.signature-strip span { display: inline-flex; align-items: center; gap: .7rem; }
.signature-strip span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }

/* ---------- Grilles & cartes ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.7rem 1.6rem; height: 100%;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(0, 27, 94, .2); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .96rem; }

.icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(0, 73, 255, .08); color: var(--blue); margin-bottom: 1.1rem;
}
.icon svg { width: 22px; height: 22px; }

/* ---------- Bloc « ce que nous ne sommes pas / ce que nous sommes » ---------- */
.contrast { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 820px) { .contrast { grid-template-columns: 1fr; } }
.panel { border-radius: var(--r); padding: 1.9rem 1.8rem; }
.panel--muted { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); }
.panel--accent { background: #fff; color: var(--ink); box-shadow: 0 18px 40px rgba(0, 0, 0, .18); }
.panel h3 {
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: 1.2rem; font-weight: 600;
}
.panel--muted h3 { color: rgba(255, 255, 255, .6); }
.panel--accent h3 { color: var(--orange); }
.panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.panel li { display: flex; gap: .8rem; align-items: flex-start; font-size: 1rem; line-height: 1.5; }
.panel li svg { flex: none; width: 20px; height: 20px; margin-top: .18rem; }
.panel--muted li { color: rgba(255, 255, 255, .72); }
.panel--muted li svg { color: rgba(255, 255, 255, .45); }
.panel--accent li { color: var(--ink); }
.panel--accent li svg { color: var(--orange); }

/* ---------- Liste à puces cochées ---------- */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.checks li { display: flex; gap: .9rem; align-items: flex-start; }
.checks svg { flex: none; width: 22px; height: 22px; color: var(--orange); margin-top: .15rem; }
.checks b { font-family: var(--display); color: var(--navy); display: block; font-size: 1rem; }
.checks span { color: var(--muted); font-size: .96rem; }

/* ---------- Fondateur ---------- */
.founder { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(1.5rem, 1rem + 3vw, 3.8rem); align-items: start; }
@media (max-width: 900px) { .founder { grid-template-columns: 1fr; } }

.founder > * { min-width: 0; }
.founder-photo { margin: 0; }
.founder-photo .frame { position: relative; }
.founder-photo .frame::before {
  content: ""; position: absolute; left: -18px; bottom: -18px; width: 62%; height: 58%;
  background: var(--navy); border-radius: var(--r);
}
.founder-photo .frame::after {
  content: ""; position: absolute; left: -18px; bottom: -18px; width: 62%; height: 58%;
  background: url('mark-white.png') left 14px bottom 14px/86px no-repeat; opacity: .16;
}
.founder-photo img {
  position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--r); background: var(--paper-2); box-shadow: var(--shadow);
}
.founder-photo figcaption { margin-top: 2.4rem; }
.founder-photo .name { display: block; font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: var(--navy); }
.founder-photo .role {
  display: block; font-family: var(--display); font-weight: 600; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin-top: .2rem;
}

.founder-facts { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: .7rem; }
.founder-facts li { font-size: .95rem; color: var(--muted); padding-left: 1.15rem; position: relative; }
.founder-facts li::before {
  content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 6px;
  border-radius: 50%; background: var(--orange);
}
.founder .btn { margin-top: 1.9rem; }
.quote {
  border-left: 3px solid var(--orange); padding: .2rem 0 .2rem 1.5rem; margin: 2rem 0 0;
  font-family: var(--display); font-size: clamp(1.05rem, 1rem + .5vw, 1.3rem);
  font-weight: 600; color: var(--navy); line-height: 1.45; font-style: normal;
}
.quote cite { display: block; font-family: var(--sans); font-size: .88rem; font-weight: 400; font-style: normal; color: var(--muted); margin-top: .7rem; }

/* ---------- Étapes ---------- */
.steps {
  counter-reset: step; display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.step { position: relative; padding-top: 1.6rem; border-top: 2px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--display); font-weight: 700; font-size: .8rem; letter-spacing: .1em;
  color: var(--orange); position: absolute; top: 0; left: 0;
  background: var(--paper); padding-right: .6rem; transform: translateY(-50%);
}
.section--navy .step { border-color: rgba(255, 255, 255, .2); }
.section--navy .step::before { background: var(--navy); }
.step h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.step p { font-size: .92rem; color: var(--muted); }
.section--navy .step p { color: rgba(255, 255, 255, .72); }

/* ---------- Participation (carte entreprise) ---------- */
.holding {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden;
  border-radius: var(--r); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow);
}
@media (max-width: 860px) { .holding { grid-template-columns: 1fr; } }
.holding .media { background: var(--navy); position: relative; min-height: 320px; }
.holding .media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.holding .body { padding: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); }
.noxi-logo { height: 42px; width: auto; }
.logo-chip {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy); border-radius: 10px; padding: .85rem 1.3rem;
}
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0 1.4rem; padding: 0; list-style: none; }
.tags li {
  font-size: .78rem; font-family: var(--display); font-weight: 600; letter-spacing: .04em;
  padding: .35rem .8rem; border-radius: 999px; background: var(--paper-2); color: var(--navy);
}
.section--navy .tags li { background: rgba(255, 255, 255, .12); color: #fff; }

/* ---------- Chiffres ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { border-left: 2px solid var(--orange); padding-left: 1.1rem; }
.stat b { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); color: var(--navy); line-height: 1.1; }
.stat span { font-size: .88rem; color: var(--muted); }
.section--navy .stat b { color: #fff; }
.section--navy .stat span { color: rgba(255, 255, 255, .7); }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 820px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }
.gallery figure { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--paper-2); }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.04); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.contact-list a { text-decoration: none; }
.contact-list .label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .55); font-family: var(--display); font-weight: 600; }
.contact-list .value { font-size: 1.05rem; color: #fff; word-break: break-word; display: block; }
.contact-list a.value:hover { color: #FF7A3D; }
.confidential {
  margin-top: 1.6rem; font-size: .87rem; color: rgba(255, 255, 255, .6);
  display: flex; gap: .6rem; align-items: flex-start;
}
.confidential svg { flex: none; width: 18px; height: 18px; margin-top: .18rem; }

/* ---------- Pied de page ---------- */
.site-footer { background: #00113B; color: rgba(255, 255, 255, .62); padding: 3rem 0 2rem; font-size: .9rem; }
.site-footer .top { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.site-footer img { height: 46px; width: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.site-footer nav a { display: inline-block; padding: .5rem 0; }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .bottom {
  margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; gap: .8rem 2rem; justify-content: space-between; font-size: .82rem;
}

/* ---------- Pages de contenu (mentions légales) ---------- */
.prose { max-width: 74ch; }
.prose h2 { margin-top: 2.5rem; font-size: 1.35rem; }
.prose p, .prose li { color: #33405C; }
.prose ul { padding-left: 1.2rem; }

/* ---------- Apparition au défilement ----------
   Le masquage n'est appliqué que si le script a confirmé le support
   d'IntersectionObserver : sans JavaScript, tout le contenu reste visible. */
.js-reveal .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover, .gallery figure:hover img, .btn:hover { transform: none; }
}
