/* Site d'ARMAX EDITIONS : feuille commune. Couleurs provisoires, reprises de la plaquette. */
:root {
  --encre: #14233c;
  --texte: #2b3445;
  --doux: #556070;
  --accent: #1d7f86;
  --accent-fonce: #155f65;
  --accent-clair: #e6f2f3;
  --fond-teinte: #f4f6f9;
  --filet: #d5dbe3;
  --a-completer: #b0281b;
  --largeur: 72rem;
  --gouttiere: clamp(1rem, 4vw, 2rem);
  --rayon: 0.6rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--texte);
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
/* Pages courtes : la zone sombre de l'accroche descend jusqu'au pied. */
main:has(> .accroche-simple:only-child) { background: var(--encre); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { color: var(--encre); line-height: 1.2; margin: 0 0 0.6em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
strong { color: var(--encre); }
a { color: var(--accent-fonce); }
a:focus-visible, .bouton:focus-visible { outline: 3px solid #f2b13c; outline-offset: 3px; }
figure { margin: 0; }

.largeur { max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere); }
.visuellement-cache {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.evitement {
  position: absolute; left: 1rem; top: -4rem; z-index: 10; background: #fff; color: var(--encre);
  padding: 0.6rem 1rem; border-radius: var(--rayon); font-weight: 700;
}
.evitement:focus { top: 1rem; }
.a-completer { color: var(--a-completer); font-weight: 600; }

/* ----- Boutons ----- */
.bouton {
  display: inline-block; padding: 0.7em 1.3em; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; line-height: 1.2;
}
.bouton-plein { background: var(--accent); color: #fff; }
.bouton-plein:hover { background: var(--accent-fonce); }
.bouton-clair { border-color: currentColor; color: #fff; }
.bouton-clair:hover { background: rgba(255, 255, 255, 0.12); }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.6rem 0 0; }

/* ----- Bandeau ----- */
.bandeau { background: var(--encre); color: #fff; }
.bandeau-int { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.marque { color: #fff; font-weight: 700; letter-spacing: 0.22em; text-decoration: none; font-size: 0.9rem; }
/* Page de Nelson - GED : le logo du produit à côté de la marque de l'éditeur (chargé sur cette page seulement). */
.page-ged .marque { display: inline-flex; align-items: center; }
.page-ged .marque::after {
  content: ""; width: 2.6rem; height: 2.76rem; margin-left: 0.9rem; padding-left: 0.9rem;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  background: url("/assets/img/nelson-logo-clair.png") right center / 2.6rem auto no-repeat;
  box-sizing: content-box;
}
.bandeau .bouton { padding: 0.5em 1.1em; font-size: 0.95rem; }
.bandeau-int { flex-wrap: wrap; }
.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.4rem; }
.menu a:not(.bouton) { color: #d4dceb; text-decoration: none; font-weight: 600; padding: 0.3rem 0; border-bottom: 2px solid transparent; }
.menu a:not(.bouton):hover { color: #fff; border-bottom-color: rgba(255, 255, 255, 0.5); }
.menu a[aria-current="page"] { color: #fff; border-bottom-color: #5fc4ca; }
@media (max-width: 40rem) {
  .bandeau-int { justify-content: flex-start; }
  .menu { width: 100%; gap: 0.3rem 1.1rem; font-size: 0.95rem; }
  .menu .bouton { margin-left: auto; }
}

/* ----- Accroche ----- */
.accroche {
  background: linear-gradient(var(--encre) 0 70%, #fff 70% 100%);
  color: #d4dceb; padding-top: clamp(2rem, 6vw, 4rem);
}
.nom-produit { color: #5fc4ca; font-size: 1.3rem; font-weight: 700; letter-spacing: 0.04em; margin-bottom: 0.6rem; display: flex; align-items: center; gap: 1rem; }
.nom-produit .logo-produit { width: 6.5rem; height: auto; }
.accroche h1 { color: #fff; font-size: clamp(2rem, 1.3rem + 3.2vw, 3.3rem); max-width: 18em; }
.chapeau { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); max-width: 38em; }
.accroche .actions { margin-bottom: clamp(2rem, 5vw, 3rem); }
.ecran-une img { box-shadow: 0 0.8rem 2.5rem rgba(20, 35, 60, 0.28); }

/* Accroche des autres pages : bandeau sombre seul, sans capture. */
.accroche-simple { background: var(--encre); padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.accroche-simple h1 { max-width: 22em; }
.accroche-simple .chapeau { margin-bottom: 0; }
.accroche-simple .actions { margin-bottom: 0; }
.surtitre-clair { color: #5fc4ca; font-weight: 700; letter-spacing: 0.2em; font-size: 0.9rem; margin-bottom: 0.8rem; }

/* ----- Accueil : logiciels ----- */
.produits { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
.produit-lien {
  display: grid; gap: 0; text-decoration: none; color: var(--texte);
  border: 1px solid var(--filet); border-radius: var(--rayon); overflow: hidden; background: #fff;
  box-shadow: 0 0.3rem 1.2rem rgba(20, 35, 60, 0.08);
}
@media (min-width: 52rem) { .produit-lien { grid-template-columns: 1.3fr 1fr; } }
.produit-lien img { width: 100%; height: 100%; object-fit: cover; object-position: top left; border-bottom: 1px solid var(--filet); }
.produit-texte { display: flex; flex-direction: column; gap: 0.8rem; padding: 1.5rem 1.6rem; justify-content: center; }
.produit-nom { font-size: 1.5rem; font-weight: 700; color: var(--encre); display: flex; align-items: center; gap: 0.9rem; }
.produit-lien .produit-nom .logo-produit { width: 4.5rem; height: auto; border: 0; object-fit: contain; }
.produit-nom .a-completer { font-size: 1rem; }
.produit-suite { color: var(--accent-fonce); font-weight: 700; }
.produit-lien:hover .produit-suite { text-decoration: underline; }
.produit-lien:focus-visible { outline: 3px solid #f2b13c; outline-offset: 3px; }

/* ----- Pages de texte ----- */
.texte-courant > * { max-width: 48rem; }
.texte-courant h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.texte-courant h2:first-child { margin-top: 0; }
.bloc-a-completer { border: 2px dashed var(--a-completer); border-radius: var(--rayon); padding: 1.2rem; }
.fiche { display: grid; grid-template-columns: minmax(10rem, 14rem) 1fr; gap: 0.5rem 1.2rem; margin: 0 0 1rem; }
.fiche dt { font-weight: 700; color: var(--encre); }
.fiche dd { margin: 0; }
@media (max-width: 36rem) { .fiche { grid-template-columns: 1fr; } .fiche dd { margin-bottom: 0.6rem; } }

/* ----- Contact ----- */
.contact { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); align-items: start; }
.carte { border: 1px solid var(--filet); border-radius: var(--rayon); padding: 1.4rem 1.5rem; }
.carte h2 { font-size: 1.3rem; }
.carte .actions { margin-top: 0.4rem; }
.carte address { font-style: normal; }
.adresse-mail { font-size: 1.2rem; font-weight: 700; word-break: break-word; }
.bouton-contour { border-color: var(--accent); color: var(--accent-fonce); }
.bouton-contour:hover { background: var(--accent-clair); }
.note { margin-top: 2rem; color: var(--doux); font-size: 0.95rem; }

/* ----- Trois messages ----- */
.messages {
  list-style: none; padding: 0; margin: clamp(2rem, 5vw, 3.5rem) 0;
  display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  counter-reset: msg;
}
.messages li { counter-increment: msg; }
.messages a {
  display: block; height: 100%; text-decoration: none; color: var(--texte);
  border-top: 4px solid var(--accent); padding-top: 0.8rem;
}
.messages a::before { content: counter(msg); display: block; font-size: 2rem; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 0.4rem; }
.messages strong { display: block; font-size: 1.2rem; margin-bottom: 0.3rem; }
.messages a:hover strong { text-decoration: underline; }

/* ----- Parties ----- */
.partie { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.partie-teinte { background: var(--fond-teinte); }
.numero { font-size: 2.4rem; font-weight: 700; color: var(--accent); line-height: 1; margin: 0 0 0.3rem; }
.sous-titre { font-size: 1.3rem; padding-bottom: 0.3rem; border-bottom: 3px solid var(--accent); margin-top: 2.2rem; }

.ecran img { border: 1px solid var(--filet); border-radius: var(--rayon); box-shadow: 0 0.3rem 1.2rem rgba(20, 35, 60, 0.1); background: #fff; }
figcaption { font-size: 0.92rem; color: var(--doux); margin-top: 0.5rem; }

.principe { display: grid; gap: 1.5rem 2.5rem; align-items: center; margin-bottom: 2rem; }
@media (min-width: 48rem) { .principe { grid-template-columns: 1fr 18rem; } }
.principe p { font-size: 1.1rem; }
.schema { width: 100%; max-width: 20rem; height: auto; justify-self: center; }
.schema rect { stroke-width: 1.2; }
.schema .boite { fill: #fff; stroke: var(--encre); }
.schema .boite-client { fill: var(--accent-clair); stroke: var(--accent); }
.schema .boite-nous { fill: var(--fond-teinte); stroke: #8995a5; stroke-dasharray: 3 2; }
.schema text { text-anchor: middle; font-family: inherit; fill: var(--encre); }
.schema .t-fort { font-size: 10px; font-weight: 700; }
.schema .t { font-size: 8.5px; fill: var(--doux); }
.schema .t-legende { font-size: 9px; fill: var(--accent-fonce); font-weight: 700; text-anchor: end; }
.schema .fleche-forte { stroke: var(--accent); stroke-width: 3; }
.schema .fleche { stroke: #8995a5; stroke-width: 1.2; stroke-dasharray: 3 2; }

.grille-blocs {
  list-style: none; padding: 0; margin: 2.5rem 0;
  display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.grille-blocs h3 { border-left: 4px solid var(--accent); padding-left: 0.6rem; margin-bottom: 0.4rem; }
.grille-blocs p { margin: 0; }

.duo { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); align-items: start; }

.texte-image { display: grid; gap: 2rem; align-items: start; margin-top: 1.2rem; }
@media (min-width: 52rem) { .texte-image { grid-template-columns: 1fr 22rem; } }
@media (min-width: 52rem) { .texte-image.moitie { grid-template-columns: 1fr 1.15fr; } }
.texte-image > div > .ecran { margin-top: 1.5rem; max-width: 30rem; }
.ecran-volet { max-width: 20rem; justify-self: center; }
.texte-image > div > .ecran-portrait { max-width: 24rem; }
.pile { display: grid; gap: 1.2rem; }

.points { margin: 0; padding-left: 1.3rem; }
.points li { margin-bottom: 0.8rem; }
.points li::marker { color: var(--accent); }

.telephones { display: flex; gap: 1rem; justify-content: center; }
.telephone { flex: 0 1 10.5rem; }
.telephone img { border: 0.45rem solid var(--encre); border-radius: 1.4rem; aspect-ratio: 1170 / 2000; object-fit: cover; object-position: top; }

.etiquette {
  display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent-fonce); border: 1px solid currentColor; border-radius: 0.3rem; padding: 0.05rem 0.4rem; margin-right: 0.3rem;
  vertical-align: 0.15em;
}

.encadre { background: var(--fond-teinte); border-radius: var(--rayon); padding: 1.5rem 1.6rem 0.8rem; margin-top: 2.5rem; }

/* ----- Modules en option ----- */
.surtitre { margin: 0 0 0.4rem; }
.intro { font-size: 1.1rem; max-width: 42rem; margin-bottom: 1.8rem; }
.carte-blanche { background: #fff; }
.ecran-agenda { margin: 0 0 2rem; }
.carte h3 { font-size: 1.25rem; border-left: 4px solid var(--accent); padding-left: 0.6rem; }

/* ----- Appel ----- */
.appel { background: var(--encre); color: #d4dceb; padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.appel h2 { color: #fff; }
.appel-int { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 56rem) { .appel-int { grid-template-columns: 1fr 1.2fr; } }
.appel-second { margin-top: 2.5rem; font-size: 1.5rem; }
.appel-int.appel-centre { grid-template-columns: 1fr; text-align: center; }
.appel-centre p { max-width: 36rem; margin-left: auto; margin-right: auto; }
.appel-centre .actions { justify-content: center; }
.pied nav { margin-bottom: 1em; }
.appel .actions { margin: 0; }
.lien-clair { color: #fff; font-weight: 700; }
.appel .tarif { color: #fff; font-weight: 700; }
.appel .ecran img { border-color: transparent; }

/* ----- Pied ----- */
.pied { background: #0d1829; color: #aeb8c9; padding: 2rem 0; font-size: 0.92rem; }
.pied strong { color: #fff; }
.pied a { color: #fff; }
.pied .a-completer { color: #ffb4a9; }
.marques { font-size: 0.8rem; margin: 0; }
