/* ═══════════════════════════════════════════════════════════════════════
   NEWTIV.ORG — grammaire éditoriale façon realmadrid.com.

   ⭐ CE QUE ÇA VEUT DIRE CONCRÈTEMENT (retour direct de l'utilisateur, 2026-09) :
   la référence est majoritairement BLANCHE, pas sombre — le noir n'y sert que
   la barre du haut, les bannières de couverture et le pied de page. Le corps
   de chaque page est clair, aéré, avec très peu de traits : l'accent (or) et
   l'espace font le travail, pas des grilles de cases bordées partout. La
   première version de ce site était sombre de bout en bout et striée de
   bordures — corrigé ici.

   ⭐ PAGES RÉELLES, PAS DES ANCRES. Le site est maintenant multi-pages
   (index/mission/programmes/laboratoires/partenaires/contact), chacune son
   propre fichier `.html`, son propre `<title>` et sa propre méta-description —
   l'indexation et le SEO veulent des PAGES, une ancre de défilement n'en est
   pas une aux yeux d'un moteur de recherche.
   ═══════════════════════════════════════════════════════════════════════ */

:root{
  --ink:#12151c;
  --ink-2:#0B1220;
  --paper:#ffffff;
  --paper-soft:#F6F6F4;
  --muted:#666d78;
  --line:rgba(18,21,28,0.10);
  --line-light:rgba(255,255,255,0.16);
  --gold:#B8902A;
  --gold-soft:#D9B65C;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Inter',-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,.brand-word{font-family:'Sora',sans-serif;}
a{color:inherit;text-decoration:none;}
img,svg{display:block;max-width:100%;}
main{display:block;}

/* ── ENTÊTE — sombre et fixe, comme la référence ───────────────────────── */
.bar{
  position:fixed;top:0;left:0;right:0;z-index:40;
  height:72px;
  display:flex;align-items:center;justify-content:space-between;
  padding:0 clamp(20px,4vw,56px);
  background:var(--ink-2);
  border-bottom:1px solid var(--line-light);
}
.brand{display:flex;align-items:center;gap:11px;}
.brand-mark{width:34px;height:34px;color:#fff;flex-shrink:0;}
.brand-word{font-size:17px;font-weight:800;letter-spacing:0.01em;color:#fff;}
.brand-word em{font-style:normal;font-weight:600;color:var(--gold-soft);}
.brand-word.small{font-size:15px;}

.bar-links{display:flex;gap:30px;}
.bar-links a{
  font-size:12.5px;font-weight:600;letter-spacing:0.07em;text-transform:uppercase;
  color:rgba(255,255,255,0.72);
  padding-bottom:4px;border-bottom:1px solid transparent;
  transition:border-color 180ms ease, color 180ms ease;
}
.bar-links a:hover,.bar-links a[aria-current="page"]{color:#fff;border-color:var(--gold-soft);}

.burger{
  width:38px;height:38px;border:1px solid var(--line-light);background:none;
  cursor:pointer;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;
  flex-shrink:0;
}
.burger span{width:17px;height:1.5px;background:#fff;display:block;transition:transform 220ms ease, opacity 220ms ease;}
.burger.is-x span:nth-child(1){transform:translateY(6.5px) rotate(45deg);}
.burger.is-x span:nth-child(2){opacity:0;}
.burger.is-x span:nth-child(3){transform:translateY(-6.5px) rotate(-45deg);}

@media (max-width:920px){ .bar-links{display:none;} }

/* ── MENU PLEIN ÉCRAN (mobile + secours desktop étroit) ─────────────────── */
.menu{
  position:fixed;inset:0;z-index:50;
  background:var(--ink-2);color:#fff;
  display:flex;flex-direction:column;
  padding:0 clamp(20px,6vw,80px);
  transform:translateY(-100%);
  transition:transform 420ms cubic-bezier(.4,0,.2,1);
}
.menu.open{transform:translateY(0);}
.menu-top{
  height:72px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;
  border-bottom:1px solid var(--line-light);
}
.menu-links{
  flex:1;display:flex;flex-direction:column;justify-content:center;gap:2px;
  min-height:0;overflow-y:auto;
}
.menu-links a{
  display:flex;align-items:baseline;gap:16px;
  font-family:'Sora',sans-serif;font-weight:700;
  /* Piloté par la hauteur de viewport : 6 liens doivent tenir sans défiler. */
  font-size:clamp(19px,4.2vh,32px);
  line-height:1.15;
  color:rgba(255,255,255,0.55);
  padding:7px 0;border-bottom:1px solid var(--line-light);
  transition:color 200ms ease, padding-left 200ms ease;
}
.menu-links a::before{
  content:attr(data-n);
  font-family:'Inter',sans-serif;font-weight:600;font-size:13px;
  color:var(--gold-soft);letter-spacing:0.08em;
}
.menu-links a:hover,.menu-links a[aria-current="page"]{color:#fff;padding-left:14px;}
.menu-bottom{
  display:flex;justify-content:space-between;align-items:center;flex-shrink:0;
  padding:20px 0 26px;border-top:1px solid var(--line-light);
  font-size:13px;color:rgba(255,255,255,0.55);
}
.menu-bottom a{color:var(--gold-soft);font-weight:600;}

/* ── BANNIÈRE DE COUVERTURE — une par page, aplat plein, sans dégradé ─────
   ⚠️ AUCUN dégradé, halo ni texture : une seule teinte plate. La référence
   utilise de vraies photos ; à défaut, un aplat franc reste plus « éditorial »
   qu'un dégradé, qui est justement l'un des tics « IA générée » relevés. */
.cover{
  position:relative;
  padding:150px clamp(20px,6vw,80px) 64px;
  background:var(--ink-2);
  color:#fff;
}
.cover-eyebrow{
  font-size:12.5px;font-weight:700;letter-spacing:0.14em;text-transform:uppercase;
  color:var(--gold-soft);margin:0 0 16px;
}
.cover h1{
  font-size:clamp(32px,4.6vw,54px);line-height:1.08;font-weight:800;
  letter-spacing:-0.01em;margin:0 0 20px;max-width:820px;
}
.cover-lede{
  font-size:clamp(15px,1.3vw,17px);line-height:1.65;color:rgba(255,255,255,0.72);
  max-width:600px;margin:0;font-weight:400;
}
.cover-cta{display:flex;gap:14px;flex-wrap:wrap;margin-top:32px;}

/* ── HÉROS DE LA PAGE D'ACCUEIL — la seule variante plus grande ─────────── */
.cover.home{padding:158px clamp(20px,6vw,80px) 0;min-height:88vh;display:flex;flex-direction:column;justify-content:center;}
.cover.home h1{max-width:920px;}
.cover.home .cover-lede{max-width:640px;margin-top:2px;}

.home-pillars{
  margin-top:64px;padding-top:28px;border-top:1px solid var(--line-light);
  display:flex;flex-wrap:wrap;gap:36px 44px;
}
.pillar{display:flex;align-items:center;gap:11px;}
.pillar-ico{width:20px;height:20px;color:var(--gold-soft);flex-shrink:0;}
.pillar-label{font-size:12.5px;font-weight:600;color:rgba(255,255,255,0.72);line-height:1.3;}

/* ── BOUTONS ─────────────────────────────────────────────────────────── */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:14px 26px;font-size:12.5px;font-weight:700;letter-spacing:0.06em;text-transform:uppercase;
  border:1px solid transparent;
  transition:transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.btn:hover{transform:translateY(-2px);}
.btn-gold{background:var(--gold);color:#fff;}
.btn-gold:hover{background:var(--gold-soft);}
.btn-ghost{border-color:rgba(255,255,255,0.35);color:#fff;}
.btn-ghost:hover{border-color:#fff;}
.btn-dark{border-color:var(--ink);color:var(--ink);}
.btn-dark:hover{background:var(--ink);color:#fff;}

/* ── CORPS DE PAGE — clair, aéré, très peu de traits ────────────────────── */
.section{
  padding:88px clamp(20px,6vw,80px);
  background:var(--paper);
}
.section.soft{background:var(--paper-soft);}

.section-head{max-width:700px;margin:0 0 52px;}
.section-head .eyebrow{
  font-size:12.5px;font-weight:700;letter-spacing:0.14em;text-transform:uppercase;
  color:var(--gold);margin:0 0 14px;
}
.section-head h2{
  font-size:clamp(24px,3.1vw,38px);font-weight:800;letter-spacing:-0.01em;
  margin:0;line-height:1.16;
}
.section-head p{margin:16px 0 0;color:var(--muted);line-height:1.65;max-width:560px;}

/* ⭐ CARTES = COUVERTURE + TITRE + EXTRAIT, RIEN D'AUTRE — jamais une boîte
   bordée posée dans une grille à filets. C'est le motif exact des cartes de
   blog qui a marché sur newtiv.com (cf. feedback-newtiv-editorial-design) :
   une image (ici une icône simple sur fond clair, faute de vraie photo) en
   haut, un repère de catégorie, un titre qui prend l'accent au survol, un
   extrait — et l'ESPACE entre les cartes fait la séparation, jamais un trait
   ni un fond de grille. */
.cards,.link-row{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:40px 32px;
}
.card,.link-card{display:flex;flex-direction:column;}
.card-cover{
  aspect-ratio:4/3;background:var(--paper-soft);
  display:flex;align-items:center;justify-content:center;
  margin-bottom:20px;overflow:hidden;
}
.card-cover svg{width:34%;height:34%;color:var(--gold);}
.card-tag{
  font-size:11.5px;font-weight:700;letter-spacing:0.09em;text-transform:uppercase;
  color:var(--gold);margin-bottom:8px;
}
.card h3,.link-card h3{
  font-size:17px;font-weight:700;margin:0 0 8px;letter-spacing:-0.01em;
  transition:color 160ms ease;
}
.card:hover h3,.link-card:hover h3{color:var(--gold);}
.card p,.link-card p{font-size:13.5px;line-height:1.62;color:var(--muted);margin:0;}
.card .more,.link-card .more{
  display:block;margin-top:14px;font-size:12px;font-weight:700;letter-spacing:0.05em;text-transform:uppercase;color:var(--gold);
}

.two-col{
  display:grid;grid-template-columns:1.1fr 0.9fr;gap:64px;align-items:start;
}
.two-col p{color:var(--muted);line-height:1.7;margin:0 0 16px;}
.two-col p:last-child{margin-bottom:0;}
@media (max-width:880px){ .two-col{grid-template-columns:1fr;gap:40px;} }

/* Points de mission : liste plate, sans barre colorée ni carte — un repère
   de catégorie et un titre, comme le reste de la grammaire éditoriale. */
.point-list{display:flex;flex-direction:column;gap:26px;}
.point-list .card-tag{margin-bottom:6px;}
.point-list h3{font-size:16px;font-weight:700;margin:0 0 6px;}
.point-list p{font-size:13.5px;color:var(--muted);line-height:1.55;margin:0;}

.cta-row{display:flex;gap:14px;flex-wrap:wrap;}

.contact-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:36px;
  margin-top:8px;
}
.contact-item span{display:block;font-size:11.5px;font-weight:700;letter-spacing:0.09em;text-transform:uppercase;color:var(--gold);margin-bottom:10px;}
.contact-item a,.contact-item p{font-size:15px;font-weight:600;margin:0;}
.contact-item p{font-weight:400;color:var(--muted);font-size:13.5px;line-height:1.6;}

/* ── PIED — sombre, bookend de l'entête ─────────────────────────────────── */
.foot{
  background:var(--ink-2);color:rgba(255,255,255,0.7);
  padding:56px clamp(20px,6vw,80px) 32px;
}
.foot-top{
  display:flex;flex-wrap:wrap;gap:40px;justify-content:space-between;
  padding-bottom:36px;border-bottom:1px solid var(--line-light);
}
.foot-brand p{margin:14px 0 0;max-width:320px;font-size:13.5px;line-height:1.6;color:rgba(255,255,255,0.55);}
.foot-links{display:flex;gap:56px;flex-wrap:wrap;}
.foot-col h4{font-size:12px;font-weight:700;letter-spacing:0.08em;text-transform:uppercase;color:var(--gold-soft);margin:0 0 14px;}
.foot-col a,.foot-col span{display:block;font-size:13.5px;color:rgba(255,255,255,0.68);margin-bottom:10px;}
.foot-col a:hover{color:#fff;}
.foot-bottom{
  display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;
  padding-top:24px;font-size:12.5px;color:rgba(255,255,255,0.45);
}
