/* ============================================================
   QUALITYSCOPE — Site vitrine
   Système : marine profond + blanc, accent bleu, grotesque
   ============================================================ */

:root{
  --paper:        #ffffff;
  --paper-2:      #f3f5f6;   /* fond de section alterné */
  --paper-3:      #eceff1;

  --ink:          #0c2333;   /* marine profond (fond sombre) */
  --ink-soft:     #143246;   /* panneaux marine */
  --ink-line:     rgba(255,255,255,.14);

  --text:         #16242d;   /* texte sur clair */
  --muted:        #5b6a74;   /* texte secondaire */
  --line:         rgba(12,35,51,.13);
  --line-strong:  rgba(12,35,51,.26);

  --accent:       #2d6fe0;   /* bleu */
  --accent-ink:   #ffffff;
  --on-accent:    #ffffff;

  --radius:       4px;

  --maxw:         1240px;
  --gutter:       clamp(20px, 5vw, 64px);

  --font:         "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --ease:         cubic-bezier(.22,.61,.36,1);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:var(--paper);
  font-size:18px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; }
::selection{ background:var(--accent); color:#fff; }

/* ---------- layout helpers ---------- */
.wrap{ max-width:var(--maxw); margin:0 auto; padding-inline:var(--gutter); }
.section{ padding-block:clamp(72px,11vw,140px); }
.section--alt{ background:var(--paper-2); }
.section--ink{ background:var(--ink); color:#fff; }

.eyebrow{
  font-size:12.5px; font-weight:600;
  letter-spacing:.22em; text-transform:uppercase;
  color:var(--muted);
  display:flex; align-items:center; gap:14px;
}
.eyebrow::before{
  content:""; width:34px; height:1px; background:var(--accent);
  display:inline-block; flex:none;
}
.section--ink .eyebrow{ color:rgba(255,255,255,.7); }

.snum{
  font-size:13px; font-weight:600; letter-spacing:.18em;
  color:var(--accent);
}

h1,h2,h3,h4{ margin:0; font-weight:800; letter-spacing:-.022em; line-height:1.04; }
h2.title{ font-size:clamp(30px,4.4vw,56px); max-width:18ch; }
.lead{ font-size:clamp(18px,1.55vw,22px); line-height:1.5; color:var(--muted); max-width:60ch; }
.section--ink .lead{ color:rgba(255,255,255,.74); }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-size:15.5px; font-weight:600; letter-spacing:.01em;
  padding:15px 24px; border:1px solid transparent; white-space:nowrap;
  border-radius:var(--radius); cursor:pointer;
  transition:transform .35s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn .ar{ transition:transform .35s var(--ease); }
.btn:hover .ar{ transform:translate(3px,-3px); }
.btn--primary{ background:var(--accent); color:var(--on-accent); }
.btn--primary:hover{ background:color-mix(in oklab, var(--accent), #000 14%); }
.btn--ghost{ background:transparent; color:inherit; border-color:var(--line-strong); }
.section--ink .btn--ghost, .hero .btn--ghost{ border-color:rgba(255,255,255,.34); color:#fff; }
.btn--ghost:hover{ border-color:currentColor; }
.btn--light{ background:#fff; color:var(--ink); }
.btn--light:hover{ background:var(--paper-3); }

.arrow-link{
  display:inline-flex; align-items:center; gap:9px; white-space:nowrap;
  font-weight:600; font-size:15.5px; color:inherit;
}
.arrow-link .ar{ transition:transform .35s var(--ease); }
.arrow-link:hover .ar{ transform:translate(3px,-3px); }

/* ============================================================
   HEADER
   ============================================================ */
.header{
  position:fixed; inset:0 0 auto 0; z-index:60;
  transition:background .4s var(--ease), border-color .4s, box-shadow .4s;
  border-bottom:1px solid transparent;
}
.header__row{
  max-width:var(--maxw); margin:0 auto; padding:18px var(--gutter);
  display:flex; align-items:center; justify-content:space-between; gap:24px;
}
.brand{ display:flex; align-items:center; gap:12px; }
.brand img{ height:52px; width:auto; }
.brand .logo-dark{ display:none; }
.nav{ display:flex; align-items:center; gap:30px; }
.nav a{
  font-size:14.5px; font-weight:500; color:rgba(255,255,255,.82);
  letter-spacing:.01em; transition:color .2s; position:relative;
}
.nav a:hover{ color:#fff; }
.header__cta{ display:flex; align-items:center; gap:20px; }
.header__cta .btn{ padding:11px 18px; font-size:14.5px; }

.header.solid{ background:rgba(255,255,255,.93); backdrop-filter:saturate(1.4) blur(12px); border-bottom-color:var(--line); }
.header.solid .brand .logo-light{ display:none; }
.header.solid .brand .logo-dark{ display:block; }
.header.solid .nav a{ color:var(--text); }
.header.solid .nav a:hover{ color:var(--accent); }
.header.solid .header__cta .btn--ghost{ border-color:var(--line-strong); color:var(--text); }

.header__cta .menu-btn{ display:none; }

/* ============================================================
   HERO
   ============================================================ */
.hero{ position:relative; background:var(--ink); color:#fff; overflow:hidden; }
.hero__scope{ position:absolute; pointer-events:none; opacity:.5; }

.hero--a{ display:none; }
.hero--b{ display:block; }

.hero--a{ min-height:100svh; display:flex; flex-direction:column; }
.heroA__main{
  flex:1; display:flex; align-items:center;
  max-width:var(--maxw); width:100%; margin:0 auto;
  padding:140px var(--gutter) 40px;
}
.heroA__inner{ position:relative; z-index:2; max-width:980px; }
.heroA h1{
  font-size:clamp(42px,7.4vw,104px); line-height:.98; letter-spacing:-.03em;
  margin:26px 0 0; max-width:16ch;
}
.heroA h1 .hl{ color:var(--accent); }
.heroA__lead{ margin-top:30px; font-size:clamp(18px,1.6vw,22px); color:rgba(255,255,255,.76); max-width:54ch; line-height:1.5; }
.heroA__cta{ margin-top:42px; display:flex; align-items:center; gap:14px 26px; flex-wrap:wrap; }
.heroA__meta{
  border-top:1px solid var(--ink-line);
  max-width:var(--maxw); width:100%; margin:0 auto;
  padding:20px var(--gutter);
  display:flex; align-items:center; justify-content:space-between;
  font-size:12.5px; font-weight:600; letter-spacing:.2em; text-transform:uppercase;
  color:rgba(255,255,255,.6);
}
.heroA__meta .blink{ display:inline-flex; gap:10px; align-items:center; }
.scope--a{ right:-160px; top:50%; transform:translateY(-50%); width:680px; height:680px; }

/* ---- Hero B : éditorial scindé ---- */
.hero--b{ min-height:100svh; }
.heroB{
  max-width:var(--maxw); margin:0 auto; padding:150px var(--gutter) 80px;
  display:grid; grid-template-columns:1.15fr .85fr; gap:clamp(40px,6vw,90px); align-items:center;
  min-height:100svh;
}
.heroB__left h1{
  font-size:clamp(40px,5.6vw,76px); line-height:1.0; letter-spacing:-.03em; margin-top:24px;
}
.heroB__left h1 .hl{ color:var(--accent); }
.heroB__lead{ margin-top:28px; font-size:clamp(17px,1.4vw,21px); color:rgba(255,255,255,.76); max-width:46ch; line-height:1.5; }
.heroB__cta{ margin-top:40px; display:flex; gap:14px 22px; flex-wrap:wrap; align-items:center; }
.heroB__panel{
  position:relative; background:var(--ink-soft);
  border:1px solid var(--ink-line); border-radius:calc(var(--radius) * 2);
  padding:38px; overflow:hidden;
}
.heroB__panel .scope--b{ right:-90px; bottom:-90px; width:300px; height:300px; opacity:.4; }
.heroB__panel h3{ font-size:13px; letter-spacing:.2em; text-transform:uppercase; color:rgba(255,255,255,.6); font-weight:600; }
.cred-list{ list-style:none; margin:22px 0 0; padding:0; position:relative; z-index:2; }
.cred-list li{
  display:grid; grid-template-columns:68px 1fr; align-items:baseline; column-gap:14px;
  padding:16px 0; border-top:1px solid var(--ink-line);
  font-size:16px;
}
.cred-list li:first-of-type{ border-top:none; }
.cred-list .k{ font-size:12px; letter-spacing:.14em; color:var(--accent); font-weight:700; }
.cred-list .v{ color:rgba(255,255,255,.92); font-weight:500; }
.heroB__bignum{ display:flex; gap:34px; margin-top:30px; position:relative; z-index:2; }
.heroB__bignum .n{ font-size:clamp(34px,4vw,46px); font-weight:800; letter-spacing:-.03em; line-height:1; }
.heroB__bignum .l{ font-size:12.5px; color:rgba(255,255,255,.6); letter-spacing:.04em; margin-top:8px; }

/* ============================================================
   STRIP références
   ============================================================ */
.strip{ background:var(--ink); color:#fff; border-top:1px solid var(--ink-line); }
.strip__row{
  max-width:var(--maxw); margin:0 auto; padding:30px var(--gutter);
  display:flex; align-items:center; gap:clamp(20px,4vw,56px); flex-wrap:wrap;
  justify-content:space-between;
}
.strip__label{ font-size:12.5px; letter-spacing:.2em; text-transform:uppercase; color:rgba(255,255,255,.55); font-weight:600; }
.strip__refs{ display:flex; flex-wrap:wrap; gap:14px 26px; align-items:center; }
.strip__refs span{
  font-size:15px; font-weight:600; letter-spacing:.02em; color:rgba(255,255,255,.92);
  display:inline-flex; align-items:center; gap:10px;
}
.strip__refs span::before{ content:""; width:6px; height:6px; border-radius:50%; background:var(--accent); display:inline-block; }

/* ============================================================
   À PROPOS
   ============================================================ */
.about__grid{
  display:grid; grid-template-columns:1fr 1fr; gap:clamp(36px,6vw,84px); align-items:start; margin-top:46px;
}
.about__lead{ font-size:clamp(22px,2.3vw,30px); font-weight:600; line-height:1.32; letter-spacing:-.012em; }
.about__lead .hl{ color:var(--accent); }
.about__body p{ margin:0 0 18px; color:var(--muted); max-width:54ch; }
.about__body p:last-child{ margin-bottom:0; }
.about__panel{
  background:var(--ink); color:#fff; border-radius:calc(var(--radius)*2);
  padding:clamp(28px,3vw,40px); position:relative; overflow:hidden;
}
.about__panel .scope--c{ right:-70px; top:-70px; width:230px; height:230px; opacity:.35; }
.about__facts{ list-style:none; margin:0; padding:0; position:relative; z-index:2; }
.about__facts li{ padding:18px 0; border-top:1px solid var(--ink-line); }
.about__facts li:first-child{ border-top:none; padding-top:0; }
.about__facts .ft{ font-size:12px; letter-spacing:.18em; text-transform:uppercase; color:rgba(255,255,255,.55); font-weight:600; }
.about__facts .fv{ font-size:17px; font-weight:500; margin-top:6px; color:#fff; }
.about__sign{ margin-top:28px; position:relative; z-index:2; display:flex; align-items:center; gap:14px; }
.about__sign .nm{ font-weight:700; }
.about__sign .rl{ font-size:14px; color:rgba(255,255,255,.6); }

/* ============================================================
   PRESTATIONS
   ============================================================ */
.sec-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.sec-head .snum{ margin-bottom:16px; display:block; }
.cards{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line); margin-top:48px; border:1px solid var(--line); }
.card{
  background:var(--paper); padding:clamp(26px,2.4vw,38px);
  display:flex; flex-direction:column; justify-content:center; min-height:240px;
  transition:background .3s var(--ease), color .3s;
  position:relative;
}
.section--alt .cards{ background:var(--line); }
.section--alt .card{ background:var(--paper-2); }
.card:hover{ background:var(--ink); color:#fff; }
.card__n{ font-size:13px; font-weight:700; letter-spacing:.14em; color:var(--accent); }
.card h3{ font-size:21px; font-weight:700; letter-spacing:-.015em; margin-top:12px; line-height:1.18; }
.card__n{ display:block; margin-bottom:0; }
.card p{ font-size:15px; color:var(--muted); margin:14px 0 0; line-height:1.5; }
.card:hover p{ color:rgba(255,255,255,.74); }
.card__ar{ position:absolute; top:clamp(26px,2.4vw,38px); right:clamp(26px,2.4vw,38px); color:var(--line-strong); transition:color .3s, transform .35s var(--ease); }
.card:hover .card__ar{ color:var(--accent); transform:translate(3px,-3px); }

/* ============================================================
   SECTEURS
   ============================================================ */
.sectors{ display:grid; grid-template-columns:repeat(4,1fr); grid-auto-rows:auto; gap:16px; margin-top:48px; }
.sector{
  border:1px solid var(--ink-line); border-radius:calc(var(--radius)*2);
  padding:clamp(22px,1.8vw,30px);
  display:grid; grid-template-rows:subgrid; grid-row:span 4;
  position:relative; overflow:hidden;
  background:var(--ink-soft);
  align-content:start; row-gap:0;
}
.sector .scope--s{ right:-60px; top:-60px; width:180px; height:180px; opacity:.3; }
.sector__ic{ width:48px; height:48px; position:relative; z-index:2; }
.sector h3{ font-size:23px; margin-top:20px; font-weight:700; letter-spacing:-.015em; position:relative; z-index:2; align-self:end; }
.sector p{ font-size:15px; color:rgba(255,255,255,.72); margin:12px 0 0; position:relative; z-index:2; }
.sector__tags{ margin-top:20px; display:flex; flex-wrap:wrap; gap:8px; position:relative; z-index:2; align-self:start; align-items:flex-start; }
.sector__tags span{
  font-size:12.5px; font-weight:600; letter-spacing:.04em;
  padding:6px 12px; border:1px solid var(--ink-line); border-radius:100px;
  color:rgba(255,255,255,.85); align-self:flex-start;
}

/* ============================================================
   CONTEXTES
   ============================================================ */
.contexts{ margin-top:48px; border-top:1px solid var(--line); }
.ctx{ display:grid; grid-template-columns:90px 1fr; gap:clamp(16px,3vw,40px); padding:28px 0; border-bottom:1px solid var(--line); align-items:baseline; }
.ctx__n{ font-size:clamp(26px,2.8vw,40px); font-weight:800; color:var(--accent); letter-spacing:-.03em; line-height:.9; }
.ctx__b h3{ font-size:clamp(20px,1.8vw,24px); font-weight:700; letter-spacing:-.015em; }
.ctx__b p{ margin:10px 0 0; color:var(--muted); font-size:16px; max-width:76ch; }

/* ============================================================
   MÉTHODOLOGIE
   ============================================================ */
.method{ display:grid; grid-template-columns:repeat(5,1fr); gap:1px; background:var(--line); border:1px solid var(--line); margin-top:48px; }
.step{ background:var(--paper); padding:clamp(24px,2vw,32px) clamp(20px,1.6vw,26px); }
.section--alt .method{ background:var(--line); }
.section--alt .step{ background:var(--paper-2); }
.step__n{ width:42px; height:42px; border-radius:50%; border:1.5px solid var(--accent); color:var(--accent); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:16px; }
.step h3{ font-size:18px; font-weight:700; margin-top:20px; letter-spacing:-.012em; }
.step p{ font-size:14px; color:var(--muted); margin-top:9px; line-height:1.5; }

/* ============================================================
   POURQUOI
   ============================================================ */
.why{ display:grid; grid-template-columns:repeat(2,1fr); gap:1px; background:var(--line); margin-top:48px; border:1px solid var(--line); }
.why__item{ background:var(--paper); padding:clamp(30px,3vw,48px); display:flex; gap:26px; align-items:flex-start; }
.why__n{ font-size:clamp(34px,3.4vw,48px); font-weight:800; letter-spacing:-.04em; color:var(--accent); line-height:.9; flex:none; min-width:1.4em; }
.why__b h3{ font-size:21px; font-weight:700; letter-spacing:-.015em; }
.why__b p{ font-size:15.5px; color:var(--muted); margin:12px 0 0; line-height:1.55; max-width:42ch; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact__grid{ display:grid; grid-template-columns:.85fr 1.15fr; gap:clamp(40px,6vw,90px); margin-top:46px; align-items:start; }
.contact__lead{ font-size:clamp(26px,2.8vw,38px); font-weight:700; letter-spacing:-.02em; line-height:1.18; }
.contact__lead .hl{ color:var(--accent); }
.contact__info{ margin-top:34px; }
.contact__info li{ list-style:none; padding:16px 0; border-top:1px solid var(--ink-line); }
.contact__info ul{ margin:0; padding:0; }
.contact__info .ck{ font-size:12px; letter-spacing:.18em; text-transform:uppercase; color:rgba(255,255,255,.55); font-weight:600; }
.contact__info .cv{ font-size:17px; margin-top:6px; color:#fff; }

.form{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.form .full{ grid-column:1/-1; }
.field{ display:flex; flex-direction:column; gap:8px; }
.field label{ font-size:12.5px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:rgba(255,255,255,.62); }
.field input, .field select, .field textarea{
  font-family:inherit; font-size:16px; color:#fff;
  background:rgba(255,255,255,.04); border:1px solid var(--ink-line);
  border-radius:var(--radius); padding:14px 16px; transition:border-color .2s, background .2s;
}
.field textarea{ resize:vertical; min-height:120px; }
.field select{ appearance:none; background-color:var(--ink-soft); background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 16px center; }
.field select option{ background-color:var(--ink-soft); color:#fff; }
.field input:focus, .field select:focus, .field textarea:focus{ outline:none; border-color:var(--accent); background:rgba(255,255,255,.07); }
.field input::placeholder, .field textarea::placeholder{ color:rgba(255,255,255,.4); }
.form__actions{ grid-column:1/-1; display:flex; align-items:center; gap:18px; margin-top:6px; flex-wrap:wrap; }
.form__note{ font-size:13px; color:rgba(255,255,255,.5); }

.form-success{
  grid-column:1/-1; display:none; flex-direction:column; align-items:flex-start; gap:14px;
  padding:36px; border:1px solid var(--ink-line); border-radius:calc(var(--radius)*2);
  background:rgba(45,111,224,.08);
}
.form.sent .field, .form.sent .form__actions{ display:none; }
.form.sent .form-success{ display:flex; }
.form-success .chk{ width:44px; height:44px; border-radius:50%; background:var(--accent); display:flex; align-items:center; justify-content:center; }
.form-success h3{ font-size:22px; font-weight:700; }
.form-success p{ color:rgba(255,255,255,.74); margin:0; max-width:46ch; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer{ background:var(--ink); color:#fff; border-top:1px solid var(--ink-line); }
.footer__row{ max-width:var(--maxw); margin:0 auto; padding:60px var(--gutter) 40px; display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:40px; }
.footer .brand img{ height:52px; }
.footer__tag{ margin-top:18px; color:rgba(255,255,255,.6); font-size:15px; max-width:34ch; }
.footer__col h4{ font-size:12.5px; letter-spacing:.18em; text-transform:uppercase; color:rgba(255,255,255,.5); font-weight:600; margin-bottom:16px; }
.footer__col a{ display:block; padding:6px 0; color:rgba(255,255,255,.82); font-size:15px; transition:color .2s; }
.footer__col a:hover{ color:var(--accent); }
.footer__base{ border-top:1px solid var(--ink-line); }
.footer__base .wrap{ display:flex; justify-content:space-between; gap:18px; flex-wrap:wrap; padding-block:24px; font-size:13px; color:rgba(255,255,255,.5); }

/* reveal */
.reveal{ opacity:0; transform:translateY(22px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in{ opacity:1; transform:none; }

/* mobile nav overlay */
.mnav{ position:fixed; inset:0; z-index:80; background:var(--ink); color:#fff;
  display:flex; flex-direction:column; padding:24px var(--gutter);
  transform:translateY(-100%); transition:transform .45s var(--ease); }
.mnav.open{ transform:none; }
.mnav__top{ display:flex; justify-content:space-between; align-items:center; }
.mnav__top img{ height:52px; }
.mnav a{ font-size:28px; font-weight:700; letter-spacing:-.02em; padding:16px 0; border-bottom:1px solid var(--ink-line); }
.mnav .btn{ margin-top:28px; align-self:flex-start; }
.iconbtn{ background:none; border:none; color:inherit; cursor:pointer; padding:6px; display:inline-flex; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:1000px){
  .heroB{ padding:120px var(--gutter) 60px; }
  .about__grid, .contact__grid, .heroB{ grid-template-columns:1fr; }
  .cards, .why{ grid-template-columns:repeat(2,1fr); }
  .sectors{ grid-template-columns:repeat(2,1fr); }
  .method{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:680px){
  body{ font-size:17px; }
  .nav, .header__cta .arrow-link{ display:none; }
  .header__cta .menu-btn{ display:inline-flex; }
  .cards, .why{ grid-template-columns:1fr; }
  .sectors{ grid-template-columns:1fr; }
  .method{ grid-template-columns:1fr; }
  .ctx{ grid-template-columns:56px 1fr; }
  .scope--a{ width:440px; right:-180px; opacity:.35; }
  .heroA__meta{ font-size:11px; gap:12px; }
  .strip__row{ gap:18px; }
}
