/* ============================================================
   PII Solutions — site vitrine
   Palette : ink/navy + teal (marque PII) ; vert/ambre (Massar)
   Typo    : Plus Jakarta Sans (texte) + Fraunces (titres)
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }

/* ---------- Design tokens ---------- */
:root {
  --ink:        #0C1B2A;   /* fond sombre profond */
  --ink-2:      #12283C;
  --ink-3:      #1C3A54;
  --slate:      #45607A;   /* texte secondaire */
  --muted:      #5C7388;
  --line:       #E4EAF0;
  --paper:      #FFFFFF;
  --paper-2:    #F6F9FC;   /* sections claires alternées */
  --paper-3:    #EEF4F9;

  --teal:       #12B3A6;   /* accent PII */
  --teal-600:   #0B7A70;
  --teal-050:   #E6F7F5;
  --indigo:     #5B76F7;   /* accent secondaire */
  --indigo-050: #ECEFFE;

  --massar-green: #2C5540;
  --massar-green-600: #234433;
  --massar-amber: #C8892B;
  --massar-cream: #F7F3EA;

  --ok:   #1E9E63;
  --warn: #C8892B;
  --bad:  #C0413B;

  --ff-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --ff-serif: 'Fraunces', Georgia, 'Times New Roman', serif;

  --container: 1140px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(12,27,42,.06), 0 2px 8px rgba(12,27,42,.05);
  --shadow-md: 0 10px 30px rgba(12,27,42,.10);
  --shadow-lg: 0 30px 70px rgba(12,27,42,.16);
  --ring: 0 0 0 4px rgba(18,179,166,.18);
}

/* ---------- Base ---------- */
body {
  font-family: var(--ff-sans);
  color: #14293C;
  background: var(--paper);
  font-size: 17px;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--ff-serif); font-weight: 600; line-height: 1.12; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.75rem); }
h2 { font-size: clamp(1.85rem, 3.8vw, 2.7rem); }
h3 { font-size: 1.28rem; font-weight: 600; }
p  { color: #34506B; }
strong { color: var(--ink); font-weight: 600; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.bg-soft { background: var(--paper-2); }
.bg-soft-3 { background: var(--paper-3); }
.center { text-align: center; }
.narrow { max-width: 720px; margin-inline: auto; }

/* ---------- Eyebrow / kicker ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-sans); font-weight: 700; font-size: .74rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--teal-600);
}
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--teal); border-radius: 2px; }
.center .kicker::before { display: none; }

.lead { font-size: 1.15rem; color: var(--slate); }
.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head.center { margin-inline: auto; }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  background: var(--bg); color: var(--fg); font-weight: 600; font-size: .98rem;
  cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn--primary { --bg: var(--teal); --fg: #04302C; box-shadow: 0 8px 22px rgba(18,179,166,.32); }
.btn--primary:hover { --bg: var(--teal-600); }
.btn--dark { --bg: var(--ink); --fg: #fff; }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal-600); box-shadow: none; }
.btn--light { --bg: #fff; --fg: var(--ink); }
.btn--lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row { justify-content: center; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(228,234,240,.9);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.02em; }
.brand__mark { width: 38px; height: 38px; border-radius: 11px; flex: none; box-shadow: 0 6px 16px rgba(18,179,166,.30); }
.brand__name { font-size: 1.18rem; color: var(--ink); }
.brand__name b { color: var(--teal-600); font-weight: 800; }
.brand__sub { display: block; font-size: .62rem; letter-spacing: .17em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  padding: 9px 15px; border-radius: 10px; font-weight: 600; font-size: .96rem; color: #2C4256;
  transition: background .14s ease, color .14s ease;
}
.nav__links a:hover { background: var(--paper-2); color: var(--ink); }
.nav__links a.is-active { color: var(--teal-600); font-weight: 700; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav__cta { margin-left: 8px; }

/* dropdown (Solutions ▾ → Massar) */
.has-dropdown { position: relative; }
.nav__trigger { display: inline-flex; align-items: center; gap: 5px; }
.nav__trigger svg { width: 15px; height: 15px; transition: transform .2s ease; }
.has-dropdown::before { content: ""; position: absolute; top: 100%; left: 0; width: 100%; height: 16px; } /* pont anti-survol */
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 268px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-md); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.has-dropdown:hover .nav__trigger svg { transform: rotate(180deg); }
.dropdown a { display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; border-radius: 11px; }
.dropdown a:hover { background: var(--paper-2); }
.dropdown__ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--teal-050); color: var(--teal-600); }
.dropdown__ic svg { width: 19px; height: 19px; }
.dropdown__title { display: block; font-weight: 700; color: var(--ink); font-size: .96rem; }
.dropdown__desc { display: block; font-size: .8rem; color: var(--muted); font-weight: 500; margin-top: 2px; }
.nav__toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s ease, opacity .2s ease;
}
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after  { position: absolute; top: 6px; }
body.nav-open .nav__toggle span { background: transparent; }
body.nav-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav__toggle span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1100px 520px at 78% -8%, rgba(18,179,166,.10), transparent 60%), radial-gradient(900px 500px at 5% 10%, rgba(91,118,247,.08), transparent 55%), var(--paper); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; padding-block: clamp(52px, 8vw, 96px); }
.hero h1 { margin-top: 18px; }
.hero p.lead { margin-top: 22px; max-width: 34ch; }
.hero .btn-row { margin-top: 34px; }
.hero__note { margin-top: 22px; font-size: .9rem; color: var(--muted); display: flex; align-items: flex-start; gap: 8px; }
.hero__note svg { width: 17px; height: 17px; color: var(--teal-600); margin-top: 3px; flex: none; }

/* dark hero variant (Massar / interior pages) */
.hero--dark { background: radial-gradient(900px 500px at 82% -10%, rgba(18,179,166,.22), transparent 60%), linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 55%, var(--ink-3) 130%); color: #E7EEF5; }
.hero--dark h1 { color: #fff; }
.hero--dark p { color: #B8C9D9; }
.hero--dark .kicker { color: #4FD8CB; }
.hero--dark .kicker::before { background: #4FD8CB; }
.hero--dark .hero__note { color: #9DB2C6; }

/* ---------- Product visual / browser frame ---------- */
.frame { border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; }
.frame__bar { display: flex; align-items: center; gap: 7px; padding: 12px 15px; background: #F3F6FA; border-bottom: 1px solid var(--line); }
.frame__bar i { width: 11px; height: 11px; border-radius: 50%; background: #D3DCE6; display: block; }
.frame__bar i:nth-child(1) { background: #FF6058; } .frame__bar i:nth-child(2) { background: #FEBC2E; } .frame__bar i:nth-child(3) { background: #29C93F; }
.frame__url { margin-left: 10px; font-size: .78rem; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 5px 12px; flex: 1; }
.frame img { width: 100%; display: block; }
.frame--float { transform: perspective(1600px) rotateY(-4deg) rotateX(2deg); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #D6E6E3; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: .98rem; }
.card__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; background: var(--teal-050); color: var(--teal-600); }
.card__icon svg { width: 26px; height: 26px; }
.card__icon--indigo { background: var(--indigo-050); color: var(--indigo); }

.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature__ic { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-050); color: var(--teal-600); }
.feature__ic svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.12rem; margin-bottom: 4px; }
.feature p { font-size: .96rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat b { display: block; font-family: var(--ff-serif); font-size: 2.5rem; color: var(--ink); line-height: 1; }
.stat.on-dark b { color: #fff; }
.stat span { display: block; margin-top: 8px; font-size: .9rem; color: var(--muted); }
.stat.on-dark span { color: #9DB2C6; }

/* ---------- Logo / standards strip ---------- */
.badges { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 14px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .86rem; color: #35506A;
}
.badge svg { width: 16px; height: 16px; color: var(--teal-600); }
.badges--dark .badge { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #CBD9E6; }
.badges--dark .badge svg { color: #4FD8CB; }

/* ---------- Split feature block ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.split--rev .split__media { order: -1; }
.split__media .frame { transform: none; }

/* ---------- Steps / parcours ---------- */
.steps { display: grid; gap: 18px; }
.step { display: grid; grid-template-columns: 54px 1fr; gap: 20px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm); }
.step__num { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-family: var(--ff-serif); font-size: 1.35rem; color: #fff; background: linear-gradient(150deg, var(--teal), var(--teal-600)); }
.step h3 { margin-bottom: 4px; }
.step p { font-size: .97rem; }
.step__flow { margin-top: 10px; font-size: .84rem; font-weight: 600; color: var(--teal-600); display: inline-flex; align-items: center; gap: 7px; }
.step__flow svg { width: 15px; height: 15px; }

/* ---------- Feature list with checks ---------- */
.checks { display: grid; gap: 13px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; color: #34506B; }
.checks li svg { flex: none; width: 22px; height: 22px; color: var(--teal-600); margin-top: 1px; }

/* ---------- CTA band ---------- */
.cta-band { background: radial-gradient(700px 340px at 85% 0%, rgba(18,179,166,.25), transparent 60%), linear-gradient(150deg, var(--ink), var(--ink-2)); border-radius: var(--radius-lg); padding: clamp(38px, 6vw, 66px); color: #fff; text-align: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #B8C9D9; margin: 16px auto 30px; max-width: 560px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper-2); font-size: 1rem; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: var(--ring); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .btn { width: 100%; }
.form__note { font-size: .82rem; color: var(--muted); margin-top: 14px; text-align: center; }
.form__status { display: none; margin-top: 16px; padding: 13px 16px; border-radius: var(--radius-sm); font-weight: 600; font-size: .95rem; }
.form__status.is-ok { display: block; background: #E6F7EF; color: #17794B; border: 1px solid #B7E6CE; }
.form__status.is-err { display: block; background: #FCEBEA; color: #A5322C; border: 1px solid #F3C7C4; }

.contact-info { display: grid; gap: 16px; }
.info-card { display: flex; gap: 15px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.info-card__ic { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-050); color: var(--teal-600); }
.info-card__ic svg { width: 22px; height: 22px; }
.info-card b { display: block; color: var(--ink); }
.info-card a, .info-card span { color: var(--slate); font-size: .96rem; }
.info-card a:hover { color: var(--teal-600); }

/* ---------- Massar theme scope ---------- */
.theme-massar { --teal: var(--massar-green); --teal-600: var(--massar-green-600); --teal-050: var(--massar-cream); }
.theme-massar .btn--primary { --bg: var(--massar-green); --fg: #fff; box-shadow: 0 8px 22px rgba(44,85,64,.28); }
.theme-massar .btn--primary:hover { --bg: var(--massar-green-600); }
.theme-massar .kicker, .theme-massar .card__icon, .theme-massar .feature__ic, .theme-massar .info-card__ic, .theme-massar .checks li svg { color: var(--massar-green); }
.theme-massar .card__icon, .theme-massar .feature__ic { background: var(--massar-cream); }
.theme-massar .step__num { background: linear-gradient(150deg, var(--massar-green), var(--massar-green-600)); }
.pill-amber { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px; background: rgba(200,137,43,.16); color: #8A5A12; font-weight: 700; font-size: .8rem; letter-spacing: .02em; }

/* ---------- Tag / status chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.chip--live { background: #E6F7EF; color: #17794B; }
.chip--soon { background: #FFF4E2; color: #9A6414; }
.chip--live::before { content:""; width: 7px; height: 7px; border-radius: 50%; background: #21A366; box-shadow: 0 0 0 3px rgba(33,163,102,.2); }

/* ---------- Gallery ---------- */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-md); }
.shot figcaption { padding: 13px 18px; font-size: .9rem; color: var(--slate); border-top: 1px solid var(--line); font-weight: 600; }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: 132px 1fr; gap: 26px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-md); }
.founder__avatar { width: 132px; height: 132px; border-radius: 50%; background: linear-gradient(150deg, var(--ink-2), var(--teal-600)); color: #fff; display: grid; place-items: center; font-family: var(--ff-serif); font-size: 2.6rem; }
.founder__role { color: var(--teal-600); font-weight: 700; font-size: .92rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #AFC2D4; padding-block: 60px 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
.site-footer h4 { color: #fff; font-family: var(--ff-sans); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; font-weight: 700; }
.site-footer a { color: #AFC2D4; font-size: .95rem; }
.site-footer a:hover { color: #4FD8CB; }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__name b { color: #4FD8CB; }
.footer-links { display: grid; gap: 10px; }
.footer-about p { color: #92A9BD; font-size: .95rem; margin-top: 14px; max-width: 30ch; }
.footer-bottom { margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.10); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; font-size: .86rem; color: #7E97AC; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .brand__sub { display: none; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero p.lead { max-width: none; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .split--rev .split__media { order: 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .frame--float { transform: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav__links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 16px 20px 24px;
    box-shadow: var(--shadow-md); transform: translateY(-140%); transition: transform .28s ease; z-index: 55;
  }
  body.nav-open .nav__links { transform: none; }
  .nav__links a { padding: 13px 12px; font-size: 1.05rem; border-radius: 12px; }
  .nav__cta { margin: 8px 0 0; }
  .nav__toggle { display: inline-flex; }
  /* dropdown → accordéon statique sur mobile */
  .has-dropdown { display: block; }
  .has-dropdown::before { display: none; }
  .nav__trigger { width: 100%; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: transparent; padding: 2px 0 6px 14px; min-width: 0; }
  .dropdown a { padding: 10px 12px; }
  .grid-2, .grid-3, .grid-4, .shots, .field-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .founder { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}
