/* ===== Feuille de style ScanInv, tirée de la maquette validée (maquette/index.html) ===== */

/* ===== Polices hébergées sur le site (licence SIL Open Font License) ===== */
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-variable.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

/* ===== Charte ScanInv ===== */
:root {
  --blanc: #FFFFFF;
  --vert-scan: #1FFF6F;   /* vert électrique fluo : fonds, faisceau, boutons */
  --vert-texte: #007A3D;  /* vert lisible pour du texte sur blanc */
  --nuit: #0B1220;        /* couleur complémentaire : textes, fonds forts */
  --ardoise: #4B5A78;  /* textes secondaires */
  --brume: #F1F4F8;       /* surfaces claires */
  --acier: #D3DAE5;       /* bordures, détails */
  --titre: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --texte: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
body {
  margin: 0; background: var(--blanc); color: var(--nuit);
  font: 400 1.0625rem/1.6 var(--texte);
  -webkit-font-smoothing: antialiased;
}
/* Évite un mot seul en fin de paragraphe (ignoré sans risque par les navigateurs anciens) */
p, li { text-wrap: pretty; }
img, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--nuit); outline-offset: 3px; border-radius: 4px; }

.conteneur { width: min(1120px, 100% - 3rem); margin-inline: auto; }

/* En-tête */
.entete { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 0; }
.logo { display: inline-flex; text-decoration: none; }
.logo svg { height: 38px; width: auto; }
.statut {
  font-size: .875rem; font-weight: 600; color: var(--nuit);
  background: var(--brume); border: 1px solid var(--acier);
  padding: .35rem .85rem; border-radius: 999px; white-space: nowrap;
}
.statut::before {
  content: ""; display: inline-block; width: .55rem; height: .55rem; margin-right: .5rem;
  background: var(--vert-scan); border-radius: 50%; box-shadow: 0 0 0 3px rgba(31,255,111,.3);
  vertical-align: .05em;
}

/* Menu principal : entre le logo et la pastille ; sur téléphone, sur sa propre ligne sous le logo */
.entete { flex-wrap: wrap; gap: .75rem 1.5rem; }
.menu { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; margin-left: auto; font-weight: 600; font-size: .98rem; }
.menu a { text-decoration: none; padding: .2rem 0; border-bottom: 3px solid transparent; }
.menu a:hover { color: var(--vert-texte); }
.menu a[aria-current="page"] { border-bottom-color: var(--vert-scan); }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center;
  padding: 3.5rem 0 5rem;
}
h1, h2, h3 { font-family: var(--titre); margin: 0; letter-spacing: -.02em; }
h1 {
  font-family: "Archivo", "Arial Black", system-ui, sans-serif;
  font-stretch: 125%; font-weight: 800; letter-spacing: -.035em;
  font-size: clamp(2.2rem, 4.6vw, 3.7rem); line-height: 1.04; max-width: 14ch;
}
.chapo { font-size: 1.2rem; color: var(--ardoise); max-width: 34rem; margin: 1.5rem 0 2.25rem; }
.cible { margin: -1.25rem 0 2.25rem; font-weight: 600; max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.bouton {
  display: inline-block; text-decoration: none; font: 600 1.05rem/1 var(--texte);
  background: var(--vert-scan); color: var(--nuit);
  padding: 1.05rem 1.6rem; border-radius: 12px;
  box-shadow: 0 0 0 2px var(--nuit), 5px 5px 0 0 var(--nuit);
  transition: transform .12s, box-shadow .12s;
}
.bouton:hover { transform: translate(2px, 2px); box-shadow: 0 0 0 2px var(--nuit), 3px 3px 0 0 var(--nuit); }
.bouton:active { transform: translate(5px, 5px); box-shadow: 0 0 0 2px var(--nuit), 0 0 0 0 var(--nuit); }
.mention { font-size: .95rem; color: var(--ardoise); }

/* Téléphone : l'élément signature */
.telephone {
  justify-self: center; width: min(300px, 100%); aspect-ratio: 9 / 18.5;
  background: var(--nuit); border-radius: 42px; padding: 12px;
  box-shadow: 18px 22px 0 -4px var(--acier);
}
.ecran {
  height: 100%; background: var(--blanc); border-radius: 31px; overflow: hidden;
  display: flex; flex-direction: column; font-size: .8rem;
}
.ecran-haut { padding: 1.1rem 1rem .6rem; display: flex; justify-content: space-between; align-items: baseline; }
.ecran-haut strong { font-family: var(--titre); font-size: 1rem; }
.emplacement { background: var(--brume); border-radius: 999px; padding: .2rem .6rem; font-weight: 600; }
.viseur {
  position: relative; margin: 0 1rem; height: 38%; border-radius: 16px;
  background: #17233A; overflow: hidden; display: grid; place-items: center;
}
.viseur .code { display: flex; gap: 3px; height: 45%; align-items: stretch; }
.viseur .code span { background: #fff; opacity: .85; }
.coin { position: absolute; width: 22px; height: 22px; border: 3px solid #fff; }
.coin.a { top: 12px; left: 12px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.coin.b { top: 12px; right: 12px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.coin.c { bottom: 12px; right: 12px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.coin.d { bottom: 12px; left: 12px; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.faisceau {
  position: absolute; left: 8%; right: 8%; height: 3px; top: 50%;
  background: var(--vert-scan); box-shadow: 0 0 14px 4px rgba(31,255,111,.7);
  animation: balayage 2.6s ease-in-out infinite alternate;
}
@keyframes balayage { from { top: 22%; } to { top: 78%; } }
.article { margin: .9rem 1rem .5rem; }
.article b { display: block; font-size: .95rem; }
.article small { color: var(--ardoise); }
.quantite {
  margin: 0 1rem; display: flex; align-items: center; justify-content: space-between;
  border: 2px solid var(--nuit); border-radius: 12px; padding: .45rem .7rem;
}
.quantite span { font-family: var(--titre); font-size: 1.5rem; font-weight: 800; }
.quantite em { font-style: normal; background: var(--vert-scan); border-radius: 8px; padding: .3rem .6rem; font-weight: 600; }
.historique { list-style: none; margin: .8rem 1rem 0; padding: 0; }
.historique li { display: flex; justify-content: space-between; padding: .35rem 0; border-top: 1px solid var(--acier); color: var(--ardoise); }
.historique li b { color: var(--nuit); font-weight: 600; }

/* Valeurs */
.valeurs { padding: 5rem 0; border-top: 1px solid var(--acier); }
.valeurs h2, .etapes h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1.1; max-width: 20ch; margin-bottom: 3rem; }
.grille-valeurs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.valeur h3 { font-size: 1.4rem; margin-bottom: .6rem; display: flex; align-items: center; gap: .6rem; }
.valeur h3::before { content: ""; width: 1.1rem; height: .35rem; background: var(--vert-scan); border-radius: 2px; flex: none; }
.valeur p { margin: 0; color: var(--ardoise); max-width: 32ch; }

/* Étapes */
.etapes { background: var(--brume); padding: 5rem 0; }
.liste-etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: etape; }
.liste-etapes li { counter-increment: etape; background: var(--blanc); border-radius: 20px; padding: 2rem 1.75rem; }
.liste-etapes li::before {
  content: counter(etape); display: grid; place-items: center; width: 2.6rem; height: 2.6rem;
  font: 800 1.25rem/1 var(--titre); background: var(--nuit); color: var(--vert-scan);
  border-radius: 50%; margin-bottom: 1.25rem;
}
.liste-etapes h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.liste-etapes p { margin: 0; color: var(--ardoise); }

/* ScanInv dans votre métier (accueil) */
.metiers { padding: 5rem 0 0; }
.metiers h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1.1; margin-bottom: 2.5rem; }
.grille-metiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.carte-metier { border: 2px solid var(--nuit); border-radius: 20px; padding: 1.75rem; position: relative; }
.carte-metier h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.carte-metier h3 a { text-decoration: none; }
.carte-metier h3 a::after { content: " →"; color: var(--vert-texte); }
/* Toute la carte est cliquable, le lien reste le titre */
.carte-metier h3 a::before { content: ""; position: absolute; inset: 0; border-radius: 20px; }
.carte-metier:hover { box-shadow: 5px 5px 0 0 var(--nuit); }
.carte-metier p { margin: 0; color: var(--ardoise); }

/* Pages par métier */
.metier-tete { padding: 3rem 0 1rem; }
.metier-tete h1 { font-family: var(--titre); font-stretch: normal; letter-spacing: -.02em; font-size: clamp(2.1rem, 4.6vw, 3.1rem); line-height: 1.08; max-width: 22ch; }
.metier-tete .chapo { max-width: 56rem; margin: 1.5rem 0 0; }
/* Le bloc garde la largeur du conteneur (aligné sur le titre) ; seul le texte est limité */
.page-texte.metier-conseils { max-width: none; padding-bottom: 4rem; }
.metier-conseils > * { max-width: 56rem; }
.metier-offre { padding-bottom: 5rem; }
.metier-offre .cadre { border: 2px solid var(--nuit); border-radius: 24px; padding: clamp(1.5rem, 4vw, 3rem); box-shadow: 8px 8px 0 0 var(--vert-scan); }
.metier-offre h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); line-height: 1.1; margin: 1.25rem 0 1rem; }
.metier-offre p, .metier-offre li { color: var(--ardoise); max-width: 56rem; }
.metier-offre ul { padding-left: 1.2rem; margin: 0 0 1.5rem; }
.metier-offre li { margin-bottom: .45rem; }
.metier-offre .inscription { margin-top: 1.25rem; }
.autres-metiers { padding: 2.5rem 0 0; }
.sommaire-conseils { padding: 2rem 0 1rem; }
.sommaire-conseils h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 1.5rem; }
.lien-conseils { margin: 2.5rem 0 0; }
.lien-conseils a { color: var(--vert-texte); font-weight: 600; text-underline-offset: 3px; }
.autres-metiers a { color: var(--vert-texte); text-underline-offset: 3px; font-weight: 600; }
.autres-metiers p { color: var(--ardoise); margin: .75rem 0 0; }

/* Bonnes pratiques */
.pratiques { padding: 5rem 0; }
.pratiques h2, .faq h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1.1; max-width: 22ch; margin-bottom: 1rem; }
.intro { color: var(--ardoise); max-width: 40rem; margin: 0 0 3rem; }
.grille-pratiques { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.moment h3 { font-size: 1.35rem; padding-bottom: .75rem; margin-bottom: 1rem; border-bottom: 4px solid var(--vert-scan); }
.moment ul { margin: 0; padding-left: 1.1rem; color: var(--ardoise); }
.moment li { margin-bottom: .7rem; }
.moment li::marker { color: var(--nuit); }

/* FAQ */
.faq { background: var(--brume); padding: 5rem 0; }
.faq .liste { max-width: 50rem; margin-top: 2.5rem; }
.faq details { background: var(--blanc); border-radius: 14px; margin-bottom: .75rem; }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.2rem 3.2rem 1.2rem 1.4rem; position: relative;
  font: 700 1.1rem/1.35 var(--titre);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%);
  width: 1.7rem; height: 1.7rem; display: grid; place-items: center; border-radius: 50%;
  background: var(--nuit); color: var(--vert-scan); font: 700 1.1rem/1 var(--texte);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 1.4rem 1.3rem; color: var(--ardoise); max-width: 42rem; }

/* Éthique */
.ethique { background: var(--nuit); color: var(--blanc); padding: 4.5rem 0; }
.ethique h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); line-height: 1.15; max-width: 22ch; margin-bottom: 2.5rem; }
.grille-ethique { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.intro-ethique { color: var(--acier); max-width: 46rem; margin: -1rem 0 2.5rem; }
.engagement h3 { font-size: 1.2rem; color: var(--vert-scan); margin-bottom: .5rem; }
.engagement p { margin: 0; color: var(--acier); max-width: 30ch; }

/* Pied de page */
.pied { padding: 2.5rem 0 3rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; font-size: .95rem; color: var(--ardoise); }
.pied nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.pied a { text-decoration-color: var(--acier); text-underline-offset: 3px; }
.pied a:hover { text-decoration-color: var(--vert-texte); color: var(--vert-texte); }

@media (max-width: 480px) {
  .entete { column-gap: .75rem; }
  .entete .menu { gap: .4rem .85rem; font-size: .9rem; }
  .logo svg { height: 30px; }
  .statut { font-size: .8rem; padding: .3rem .7rem; }
  .champ-groupe .bouton { width: 100%; text-align: center; }
}
@media (max-width: 380px) {
  .logo svg { height: 26px; }
  .entete .menu { gap: .4rem .7rem; font-size: .85rem; }
}
@media (max-width: 860px) {
  .menu { order: 3; width: 100%; margin-left: 0; gap: .4rem 1.25rem; font-size: .95rem; }
  .hero { grid-template-columns: 1fr; padding-top: 2rem; }
  .grille-valeurs, .liste-etapes, .grille-pratiques, .grille-ethique, .grille-metiers { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .faisceau { animation: none; }
  .bouton { transition: none; }
}

/* ===== Formulaires ===== */
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.inscription { max-width: 34rem; }
.champ-groupe { display: flex; flex-wrap: wrap; gap: .9rem; align-items: stretch; }
.champ-groupe input { flex: 1 1 15rem; }
input[type="email"], input[type="text"], textarea {
  font: 400 1.05rem/1.4 var(--texte); color: var(--nuit); background: var(--blanc);
  border: 2px solid var(--nuit); border-radius: 12px; padding: .95rem 1.1rem; width: 100%;
}
input::placeholder, textarea::placeholder { color: var(--ardoise); }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--nuit); outline-offset: 2px; }
button.bouton { border: 0; cursor: pointer; }
button.bouton[disabled] { opacity: .6; cursor: progress; }
.inscription .mention { display: block; }
.inscription .retour { margin-top: .6rem; }
.retour { margin: .9rem 0 0; font-weight: 600; min-height: 1.6em; }
.retour.ok::before { content: ""; display: inline-block; width: .6rem; height: .6rem; margin-right: .5rem; border-radius: 50%; background: var(--vert-scan); box-shadow: 0 0 0 3px rgba(31,255,111,.3); }
.retour.erreur { color: #B42318; }
/* Après un envoi réussi : les champs s'effacent en fondu, puis le message apparaît */
[hidden] { display: none !important; }
.fondu-sortie { opacity: 0; transition: opacity .4s ease; }
.retour.apparait { animation: apparition .4s ease both; }
@keyframes apparition { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .fondu-sortie { transition: none; }
  .retour.apparait { animation: none; }
}

/* ===== Pages secondaires ===== */
.page { padding: 3rem 0 5rem; }
.page h1 { font-family: var(--titre); font-stretch: normal; letter-spacing: -.02em; font-size: clamp(2.2rem, 5vw, 3.2rem); max-width: 20ch; margin-bottom: 1rem; }
.page .chapo { margin-top: 0; }
.page-texte { max-width: 56rem; }
.page-texte h2 { font-size: 1.45rem; margin: 2.5rem 0 .75rem; }
.page-texte p, .page-texte li { color: var(--ardoise); }
.page-texte strong { color: var(--nuit); }
.page-texte ul { padding-left: 1.2rem; }
.page-texte li { margin-bottom: .4rem; }
.page-texte a { color: var(--vert-texte); text-underline-offset: 3px; }
.maj { font-size: .95rem; color: var(--ardoise); }
.contact-form { max-width: 38rem; display: grid; gap: 1.25rem; margin-top: 2rem; }
.contact-form label { display: block; font-weight: 600; margin-bottom: .4rem; }
.contact-form textarea { min-height: 11rem; resize: vertical; }
.contact-form .note { font-size: .95rem; color: var(--ardoise); margin: 0; }
.contact-form .note a { color: var(--vert-texte); }
.retour-accueil { display: inline-block; margin-top: 1.5rem; }

/* Captures d'écran sous les étapes (02/11/2026) */
.titre-captures { font-size: 1.5rem; margin: 3.5rem 0 1.5rem; }
.grille-captures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
.capture { margin: 0; }
.capture img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--acier); background: var(--blanc); }
.capture figcaption { margin-top: .75rem; color: var(--ardoise); font-size: .98rem; }
.capture figcaption strong { color: var(--nuit); }
@media (max-width: 860px) { .grille-captures { grid-template-columns: 1fr; } }

/* Pages « modèle Excel » et « comment faire l'inventaire » (02/11/2026) */
.telecharger { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.25rem 0 .5rem; max-width: none; }
.bouton.bouton-clair { background: var(--blanc); color: var(--nuit); }
.mention-telech { font-size: .95rem; margin-top: .5rem; }
.page-texte h3 { font-size: 1.15rem; margin: 1.5rem 0 .4rem; }
.page-texte ol { padding-left: 1.4rem; }
.page-texte ol li { color: var(--ardoise); margin-bottom: .4rem; }
/* Les boutons dans le texte gardent leur couleur (le lien vert du texte ne s'applique pas) */
.page-texte a.bouton, .page-texte a.bouton:visited { color: var(--nuit); text-decoration: none; }

/* Captures agrandies au clic */
.capture img { cursor: zoom-in; }
.capture img:focus-visible { outline: 3px solid var(--nuit); outline-offset: 3px; }
.zoom-capture { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; cursor: zoom-out; }
.zoom-capture::backdrop { background: rgba(11, 18, 32, .85); }
.zoom-capture img { display: block; max-width: 96vw; max-height: 94vh; width: auto; height: auto; border-radius: 12px; background: var(--blanc); }
