/* =============================================================
   NJ-Innovation — direction « Grand Place »
   Blanc, beaucoup d'air, aucune couleur d'accent :
   le vert du logo et les photos font tout le travail.
   ============================================================= */

:root {
  --green:   #1B3A20;   /* le vert du logo */
  --green-2: #3E6B45;
  --green-3: #DCE6D9;
  --paper:   #F2F4F0;
  --ink:     #16201A;
  --soft:    #5D6B60;
  --line:    #E2E7DF;
  --white:   #FFFFFF;

  --disp: "Epilogue", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --gap:   clamp(40px, 5vw, 72px);    /* respiration verticale d'une section */
  --pad:   clamp(20px, 4vw, 40px);    /* marge latérale */
  --maxw:  1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--green); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--green-2);
  outline-offset: 3px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--green); color: #fff;
  padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------------------------------------------- typographie */
h1, h2, h3, h4 { font-family: var(--disp); letter-spacing: -.03em; text-wrap: balance; margin: 0; }

h1 { font-size: clamp(32px, 5.4vw, 54px); font-weight: 800; line-height: 1.05; }
h2 { font-size: clamp(26px, 3.8vw, 38px); font-weight: 800; line-height: 1.1; }
h3 { font-size: clamp(19px, 2.2vw, 22px); font-weight: 600; line-height: 1.25; letter-spacing: -.022em; }

p { margin: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose { max-width: 68ch; }

.kicker {
  font-family: var(--disp);
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--green-2); margin: 0;
}
.lede { font-size: clamp(17px, 1.9vw, 20px); color: var(--soft); line-height: 1.5; }

/* ---------------------------------------------- boutons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  font-family: var(--disp); font-size: 15px; font-weight: 600; text-decoration: none;
  display: inline-block; line-height: 1;
}
.btn-primary {
  background: var(--green); color: #fff; padding: 15px 26px; border-radius: 999px;
  border: 1px solid var(--green); transition: background .18s ease;
}
.btn-primary:hover { background: #142C18; }
.btn-quiet {
  color: var(--green); padding: 15px 4px; border-bottom: 2px solid var(--green-3);
  transition: border-color .18s ease;
}
.btn-quiet:hover { border-bottom-color: var(--green); }
.btn-light {
  background: #fff; color: var(--green); padding: 15px 26px; border-radius: 999px;
  border: 1px solid #fff;
}
.btn-outline-light {
  color: #fff; padding: 15px 26px; border-radius: 999px; border: 1px solid rgba(255,255,255,.45);
}

/* ---------------------------------------------- en-tête */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 18px;
  min-height: 108px; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
}
.brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand img { width: 96px; height: 96px; }
.site-footer .brand img { width: 56px; height: 56px; }

.nav { display: flex; align-items: center; gap: 22px; }
.nav a {
  font-size: 16.5px; text-decoration: none; color: var(--soft);
  padding: 4px 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--green); border-bottom-color: var(--green); }
.nav .cta {
  font-family: var(--disp); font-weight: 600; font-size: 15.5px;
  background: var(--green); color: #fff;
  border: 1px solid var(--green); border-radius: 999px; padding: 11px 22px;
  transition: background .18s ease;
}
.nav .cta:hover { background: #142C18; color: #fff; }
.nav .cta[aria-current="page"] { border-bottom-color: var(--green); }

.burger {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  width: 42px; height: 42px; cursor: pointer; padding: 0;
}
.burger span { display: block; width: 18px; height: 1.5px; background: var(--ink); margin: 4px auto; }

/* ---------------------------------------------- sections */
.section { padding: var(--gap) 0; }
.section--paper { background: var(--paper); }
.section--green { background: var(--green); color: #fff; }
.section--green .kicker { color: #A9C9AE; }
.section--green .lede, .section--green p { color: #D3DFD2; }
.section--green h2 { color: #fff; }

.section-head { max-width: 66ch; }
.section-head h2 { margin-top: 12px; }
.section-head .lede { margin-top: 16px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------------------------------------------- hero */
.hero { padding: clamp(40px, 5.5vw, 68px) 0 clamp(24px, 3vw, 34px); text-align: center; }
.hero h1 { margin: 18px auto 0; max-width: 21ch; }
.hero .lede { margin: 20px auto 0; max-width: 54ch; }
.hero .btns { justify-content: center; margin-top: 30px; }

.hero--page { text-align: left; padding-bottom: clamp(28px, 4vw, 44px); }
.hero--page h1 { margin-left: 0; margin-right: 0; max-width: 20ch; }
.hero--page .lede { margin-left: 0; margin-right: 0; }

/* Accueil : texte à gauche, photo à droite qui file jusqu'au bord de l'écran et se
   dissout dans le blanc de la page. Le dégradé EST le cadre : aucune bordure, aucun
   coin arrondi, aucune couleur ajoutée. Suppose un fond de page blanc. */
.hero--fondu {
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  text-align: left;
  /* aucun padding en haut : l'image touche le bas de l'en-tête, sinon une bande
     blanche s'intercale entre les deux */
  padding: 0 0 clamp(24px, 3.5vw, 48px);
  /* aligne la colonne de texte sur la grille du site, l'image occupe tout le reste */
  padding-left: max(var(--pad), calc((100% - var(--maxw)) / 2 + var(--pad)));
}
.hero--fondu h1     { margin: 0; max-width: 15ch; }
.hero--fondu .lede  { margin: 20px 0 0; max-width: 46ch; }
.hero--fondu .btns  { justify-content: flex-start; margin-top: 32px; }

.hero-media { position: relative; min-width: 0; }
.hero-media img {
  width: 100%; display: block;
  height: clamp(380px, 46vw, 620px);
  object-fit: cover; object-position: 50% 45%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 32%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 32%);
}
/* le fondu vers le bas est peint par dessus plutôt que composé dans le masque :
   moins élégant, mais rendu identique sur tous les navigateurs */
.hero-media::after {
  content: ""; position: absolute; inset: auto 0 -1px 0; height: 32%;
  background: linear-gradient(to top, var(--white) 5%, rgba(255,255,255,0));
  pointer-events: none;
}
/* le bas de l'image se fond déjà dans la page : la section suivante respire moins */
.hero--fondu + .section { padding-top: clamp(24px, 3vw, 40px); }

/* ---------------------------------------------- photo pleine largeur */
.bleed { width: 100%; overflow: hidden; }
.bleed img { width: 100%; height: clamp(260px, 46vw, 540px); object-fit: cover; }
.bleed--tall img { height: clamp(320px, 58vw, 660px); }
.bleed + .section { padding-top: clamp(32px, 4vw, 56px); }
.bleed figcaption {
  max-width: var(--maxw); margin: 12px auto 0; padding: 0 var(--pad);
  font-size: 14px; color: var(--soft);
}

/* ---------------------------------------------- cartes métier */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.card {
  background: var(--paper); border-radius: 26px; padding: 14px; text-decoration: none;
  color: inherit; display: flex; flex-direction: column;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  background: var(--white); transform: translateY(-3px);
  box-shadow: 0 12px 28px -14px rgba(22,32,26,.28);
}
.card picture { display: block; }
.card img { width: 100%; height: 210px; object-fit: cover; border-radius: 16px; }
.card-body { padding: 20px 12px 12px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { color: var(--green); }
.card p { font-size: 15.5px; color: var(--soft); line-height: 1.5; }
.card .more {
  margin-top: auto; font-family: var(--disp); font-weight: 600; font-size: 14.5px;
  color: var(--green); padding-top: 8px;
}
.card .more::after { content: " →"; }
.card--noimg .card-body { padding-top: 30px; }
.card--noimg .placeholder {
  height: 210px; background: var(--green-3); display: flex; align-items: center;
  justify-content: center; color: var(--green); font-family: var(--disp); font-weight: 600;
  font-size: 14px; letter-spacing: .04em;
}

/* ---------------------------------------------- photo affichée en entier
   Contrairement à .bleed, aucune hauteur imposée : l'image garde ses proportions
   et n'est donc jamais recadrée. */
.photo-entiere { max-width: 980px; margin: 0 auto; padding: 0 var(--pad); }
.photo-entiere img { width: 100%; height: auto; border-radius: 20px; }
.photo-entiere figcaption { margin-top: 12px; font-size: 14px; color: var(--soft); }

/* ---------------------------------------------- deux offres côte à côte */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 40px;
       align-items: start; }
.duo-col {
  background: var(--paper); border-radius: 26px; padding: 14px 14px 26px;
  display: flex; flex-direction: column; height: 100%;
}
.duo-col img { width: 100%; height: 230px; object-fit: cover; border-radius: 16px; }
.duo-body { padding: 22px 14px 0; display: flex; flex-direction: column; flex: 1; }
.duo-body h3 { color: var(--green); font-size: clamp(20px, 2.4vw, 25px); font-weight: 800;
               letter-spacing: -.03em; }
.duo-body .prose { margin-top: 14px; color: var(--soft); font-size: 16px; }
.duo-body .points { margin-top: 16px; }
.duo-body .points li { font-size: 15.5px; }
.duo-body .btns { margin-top: auto; padding-top: 24px; }

/* ---------------------------------------------- bloc scindé photo / texte */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split--rev .split-img { order: 2; }
.split-img img { width: 100%; height: clamp(240px, 30vw, 360px); object-fit: cover;
                 border-radius: 18px; }
/* la photo de l'équipe est presque carrée à la source : on la cadre en paysage,
   un peu en retrait du bord pour qu'elle ne pèse pas autant que le texte */
.split--portrait .split-img { max-width: 480px; }
.split--portrait .split-img img { height: clamp(220px, 26vw, 300px); }
.split-txt h2 { margin-top: 12px; }
.split-txt .prose { margin-top: 18px; color: var(--soft); font-size: 16.5px; }
.split-txt .btns { margin-top: 26px; }

/* ---------------------------------------------- liste de points */
.points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.points li { position: relative; padding-left: 26px; color: var(--soft); font-size: 16.5px; line-height: 1.5; }
.points li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 9px; height: 9px; border: 1.5px solid var(--green-2); border-radius: 50%;
}
.section--green .points li { color: #D3DFD2; }
.section--green .points li::before { border-color: #A9C9AE; }

/* ---------------------------------------------- marques fournisseurs */
.marques { list-style: none; padding: 0; margin: 36px 0 0;
           display: grid; grid-template-columns: repeat(4, 1fr);
           align-items: center; justify-items: center; gap: clamp(24px, 4vw, 44px); }
.marques li { display: flex; align-items: center; justify-content: center; }
.marques img { height: 46px; width: auto; object-fit: contain; opacity: .75; }
.marques span {
  font-family: var(--disp); font-weight: 600; font-size: clamp(19px, 2.4vw, 25px);
  letter-spacing: -.02em; color: var(--green); opacity: .8;
}

/* ---------------------------------------------- galerie */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 44px; }
.gallery figure { margin: 0; background: var(--paper); }
.gallery img { width: 100%; height: 260px; object-fit: cover; }
.gallery figcaption { padding: 14px 18px 18px; font-size: 14.5px; color: var(--soft); line-height: 1.45; }
.gallery figcaption b { display: block; font-family: var(--disp); font-weight: 600; font-size: 15.5px;
                        color: var(--ink); letter-spacing: -.02em; margin-bottom: 3px; }
.gallery .wide { grid-column: span 2; }
.gallery .wide img { height: 340px; }

/* Page Réalisations : une seule grille, toutes les photos au même format.
   aspect-ratio + object-fit: cover -> même rectangle pour toutes, sans déformation,
   les sources portrait comme paysage sont recadrées par le centre. */
.section--galerie { padding-top: clamp(28px, 3.5vw, 44px); }
.grille-photos {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 1.1vw, 16px); margin-top: 0;
}
.grille-photos figure { margin: 0; overflow: hidden; background: var(--paper); }
.grille-photos picture { display: block; }
.grille-photos img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3;
  object-fit: cover; object-position: center;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.grille-photos figure:hover img { transform: scale(1.035); }
@media (prefers-reduced-motion: reduce) {
  .grille-photos img { transition: none; }
  .grille-photos figure:hover img { transform: none; }
}

/* ---------------------------------------------- bandeau d'appel */
.cta-band { background: var(--green); color: #fff; padding: var(--gap) 0; text-align: center; }
.cta-band h2 { color: #fff; max-width: 20ch; margin: 12px auto 0; }
.cta-band p { color: #D3DFD2; max-width: 52ch; margin: 16px auto 0; font-size: 17.5px; }
.cta-band .kicker { color: #A9C9AE; }
.cta-band .btns { justify-content: center; margin-top: 30px; }

/* ---------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 72px); }
.coords { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 22px; }
.coords dt { font-family: var(--disp); font-size: 11.5px; font-weight: 600; letter-spacing: .15em;
             text-transform: uppercase; color: var(--soft); margin-bottom: 5px; }
.coords dd { margin: 0; font-size: 18px; }
.coords dd a { text-decoration: none; }
.coords dd a:hover { text-decoration: underline; }

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field[hidden], .field-row[hidden] { display: none; }
.field input[type="file"] { padding: 10px 12px; background: var(--paper); cursor: pointer; }
.field .aide { font-size: 13.5px; color: var(--soft); }
.field label { font-family: var(--disp); font-size: 13px; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .field select {
  font-family: var(--body); font-size: 16px; color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; width: 100%;
}
.field input:hover, .field textarea:hover, .field select:hover { border-color: #C7D0C4; }
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .btn-primary { justify-self: start; border: 0; cursor: pointer; font-size: 15px; }
.form-note { font-size: 14px; color: var(--soft); }

/* ---------------------------------------------- pied de page */
.site-footer { background: var(--ink); color: #B8C4BA; padding: clamp(34px, 4vw, 50px) 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px 40px; }
.site-footer h4 { font-family: var(--disp); font-size: 12px; font-weight: 600; letter-spacing: .15em;
                  text-transform: uppercase; color: #7E8C81; margin-bottom: 11px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.site-footer a { color: #B8C4BA; text-decoration: none; font-size: 15.5px; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { margin-right: 0; }
.site-footer .about { font-size: 15px; line-height: 1.5; margin-top: 13px; max-width: 40ch; }
.footer-bottom {
  border-top: 1px solid #29332B; margin-top: 28px; padding-top: 16px;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  font-size: 13.5px; color: #7E8C81;
}

/* ---------------------------------------------- responsive */
@media (max-width: 940px) {
  .cards, .gallery { grid-template-columns: repeat(2, 1fr); }
  .grille-photos { grid-template-columns: repeat(2, 1fr); }
  .duo { grid-template-columns: 1fr; }
  .gallery .wide { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* Le menu déployé demande 858 px pour tenir (logo 96 + 4 entrées + le bouton d'appel),
   mesuré le 2026-08-30 après le retrait de « Nous contacter ». La bascule en burger doit
   passer au-dessus de cette valeur, sinon les liens se chevauchent. Elle est volontairement
   séparée des règles du hero, qui restent à 900 px. Si un libellé du menu change, remesurer. */
@media (max-width: 900px) {
  .burger { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 8px var(--pad) 18px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); }
  .nav .cta { text-align: center; margin-top: 16px; }
}

@media (max-width: 900px) {
  .header-inner { min-height: 92px; }
  .brand img { width: 78px; height: 78px; }
  .hero--fondu { grid-template-columns: 1fr; padding: 28px 0 0; }
  .hero--fondu .hero-txt { padding: 0 var(--pad); }
  .hero--fondu h1, .hero--fondu .lede { max-width: none; }
  .hero-media img {
    height: clamp(260px, 62vw, 380px);
    -webkit-mask-image: none; mask-image: none;
  }
  .hero-media::after { height: 20%; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .marques { grid-template-columns: repeat(2, 1fr); gap: 30px 24px; }
  .cards, .gallery, .duo { grid-template-columns: 1fr; }
  .gallery .wide { grid-column: span 1; }
  .gallery img, .gallery .wide img { height: 230px; }
  .split { grid-template-columns: 1fr; }
  .split--rev .split-img { order: 0; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 560px) {
  .grille-photos { grid-template-columns: 1fr; gap: 10px; }
  .grille-photos img { aspect-ratio: 3 / 2; }
}

/* le corps de texte n' a pas de 700 : le gras tombe sur le 600 */
strong, b { font-weight: 600; }

/* piège à robots : invisible pour les humains, rempli par les robots */
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
