/* =============================================================================
   Loginnove — feuille de style propre au site (écrite à la main, sans framework).
   Direction : éditeur de logiciels B2B. Mise en page éditoriale à deux colonnes,
   densité forte, filet rouge repris du mot-symbole, photos réelles cadrées.
   Toutes les couleurs viennent de tokens.css. Jamais --c-brand en couleur de texte.
   ========================================================================== */

/* ---------- Réglages de base ---------- */
:root {
  --line: rgba(41, 25, 25, 0.14);
  --line-strong: rgba(41, 25, 25, 0.26);
  --line-dark: rgba(255, 255, 255, 0.18);
}

body { font-feature-settings: "kern" 1; }

h1, h2 { letter-spacing: -0.012em; }
h1 { line-height: 1.08; }
h3 { letter-spacing: -0.005em; }

.wc-lead { color: var(--c-muted); }
.wc-section--dark .wc-lead,
.wc-hero--photo .wc-lead { color: var(--c-on-dark-muted); }

main a:not(.wc-btn):not(.wc-card):not(.wc-gallery a) { color: var(--c-brand-ink); }
.wc-section--dark a:not(.wc-btn) { color: var(--c-brand-on-dark); }

/* Filet rouge de section — rappel de la barre rouge du mot-symbole. */
.wc-section-head::before,
.page-head__in::before {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background: var(--c-brand);
  margin-bottom: 1.1rem;
}

/* ---------- Mot-symbole LOGINNOVE ---------- */
.brand-mark {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--c-ink);
  white-space: nowrap;
}
.brand-mark b { font-weight: 700; color: var(--c-brand-ink); }
.wc-brand { gap: 0; }
.wc-brand:hover .brand-mark b { color: var(--c-btn-hover); }

/* align-content: start — sinon la grille s'étire sur la hauteur de la colonne
   voisine (6 liens) et le filet rouge flotte au milieu du vide. */
.footer-brand { display: grid; gap: 0.55rem; justify-items: start; align-content: start; }
.footer-brand .brand-mark { color: var(--c-on-dark); font-size: 1.6rem; }
.footer-brand .brand-mark b { color: var(--c-brand-on-dark); }
.footer-brand__rule { display: block; width: 72px; height: 4px; border-radius: 2px; background: var(--c-brand); }
.footer-brand__sig {
  margin: 0;
  color: var(--c-on-dark-muted);
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  max-width: 28ch;
}

@media (max-width: 420px) { .brand-mark { font-size: 1.45rem; } }

/* Navigation : resserrement de sécurité entre 900 et 1080 px. */
@media (min-width: 900px) and (max-width: 1080px) {
  .wc-nav__list a:not(.wc-btn) { padding-inline: 0.5rem; font-size: 0.96rem; }
  .wc-nav__cta { margin-left: 0.25rem; }
}
.wc-header { border-bottom-color: var(--line); }

/* ---------- Boutons : échange de couleurs instantané ----------
   Le bouton à contour inverse ses couleurs au survol (texte ↔ fond). Avec un
   fondu de 0,18 s sur background-color ET color, les deux se croisent : il
   existe une image où le texte et le fond sont presque la même valeur
   (contraste mesuré à 1,65:1 au milieu de la transition). Les deux propriétés
   basculent donc d'un coup ; seuls le contour et le léger enfoncement gardent
   leur transition. Vaut pour tous les boutons à contour, fond clair comme
   fond sombre, sur les 8 pages. */
.wc-btn--secondary { transition: border-color 0.18s ease, transform 0.12s ease; }

/* ---------- Héros ---------- */
/* La photo déborde de 8 % à droite (le héros masque le débordement) : le filigrane
   du photographe, collé au bord droit du fichier d'origine, sort ainsi du cadre. */
.wc-hero--photo .wc-hero__media { width: 108%; object-position: 50% 32%; }
/* Voile un peu plus dense à droite que celui du kit : contraste du titre garanti
   et bord droit de la photo calme. */
.wc-hero--photo::before {
  background: linear-gradient(90deg,
    rgba(var(--c-dark-rgb), 0.93) 0%,
    rgba(var(--c-dark-rgb), 0.87) 62%,
    rgba(var(--c-dark-rgb), 0.6) 100%);
}
@media (max-width: 859.98px) { .wc-hero--photo::before { background: rgba(var(--c-dark-rgb), 0.86); } }
.wc-hero--photo .wc-eyebrow { color: var(--c-on-dark-muted); }
.wc-hero--photo h1 { max-width: 17ch; margin-bottom: 0.7rem; }
.wc-hero--photo .wc-lead { max-width: 52ch; }
.wc-hero--photo .wc-actions { margin-top: 1.75rem; }

@media (max-width: 559.98px) {
  .wc-hero--photo .wc-actions { display: grid; grid-template-columns: 1fr; }
  .wc-hero--photo .wc-actions .wc-btn { width: 100%; }
}

/* ---------- En-tête de page intérieure ---------- */
.page-head {
  background: var(--c-surface-alt);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem);
}
.page-head__in { max-width: 760px; }
.page-head h1 { max-width: 20ch; margin-bottom: 0.55rem; }
.page-head .wc-lead { max-width: 60ch; margin-bottom: 0; }
.page-head .wc-actions,
.page-head .anchors { margin-top: 1.6rem; }

/* ---------- Rythme éditorial : titre à gauche, contenu à droite ---------- */
.ed { display: grid; gap: clamp(1.5rem, 1rem + 2.5vw, 2.5rem); }
.ed__body { min-width: 0; }
.ed__body > :last-child { margin-bottom: 0; }

@media (min-width: 1000px) {
  .ed {
    grid-template-columns: minmax(215px, 290px) minmax(0, 1fr);
    gap: clamp(2.5rem, 0.5rem + 5vw, 5.5rem);
    align-items: start;
  }
  .ed > .wc-section-head { margin-bottom: 0; max-width: none; }
}

.ed__body > .wc-actions { margin-top: clamp(1.25rem, 1rem + 1vw, 1.9rem); }
.ed__note { color: var(--c-muted); font-size: 0.95rem; }
.wc-section--dark .ed__note { color: var(--c-on-dark-muted); }

/* ---------- Faits réels (bandeau sobre, aucun compteur) ---------- */
.facts-band { background: var(--c-surface); border-bottom: 1px solid var(--line); padding-block: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); }
.facts-band .wc-facts { gap: 1rem 2.5rem; }
.facts-band .wc-facts li { font-size: 1.02rem; max-width: 34ch; }

/* ---------- Cartes de service (accueil) ----------
   Une pile de cartes larges (titre à gauche, texte à droite) plutôt qu'une grille
   de trois cartes : jamais de case orpheline, quelle que soit la largeur. */
.cards { grid-template-columns: 1fr; gap: 0.9rem; }
.cards .wc-card { gap: 0.6rem; }
.cards .wc-card h3 { margin-bottom: 0; }
.cards .wc-card p { color: var(--c-muted); margin-bottom: 0; }
.cards__text { display: grid; gap: 0.55rem; justify-items: start; min-width: 0; }
@media (min-width: 720px) {
  .cards .wc-card {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr);
    gap: clamp(1.25rem, 0.5rem + 2vw, 2.5rem);
    align-items: start;
  }
}
a.wc-card { border-color: var(--line-strong); }
a.wc-card:hover { border-color: var(--c-brand-ink); }
.card-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
  font-weight: 700;
  color: var(--c-brand-ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
a.wc-card:hover .card-more { text-decoration-thickness: 2px; }
.card-more::after { content: "\2192"; font-weight: 400; }

/* ---------- Blocs de service numérotés (page Services) ---------- */
.svc-list { display: grid; gap: 0; }
.svc {
  display: grid;
  gap: 0.75rem 0;
  padding-block: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: 96px;
}
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc__num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.1rem, 1.5rem + 2vw, 3.1rem);
  line-height: 0.9;
  color: var(--c-brand-ink);
  margin-bottom: 0.5rem;
}
.svc h2 { margin-bottom: 0; }
.svc__body { min-width: 0; }
.svc__body > :last-child { margin-bottom: 0; }

@media (min-width: 880px) {
  .svc { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.5fr); gap: clamp(2rem, 0.5rem + 3.5vw, 4rem); align-items: start; }
  .svc__head { position: relative; }
}

/* Sommaire ancré */
.anchors { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.anchors li { max-width: none; }
.anchors a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 1rem;
  border: 2px solid var(--line-strong);
  border-radius: 999px;
  color: var(--c-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.97rem;
}
.anchors a:hover { background: var(--c-ink); color: var(--c-surface); border-color: var(--c-ink); }

/* ---------- Liste de caractéristiques (Viridem) ---------- */
.feat { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 0.7rem; }
.feat li { position: relative; padding-left: 1.75rem; max-width: var(--measure); }
.feat li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--c-brand);
  transform: rotate(45deg);
}
.feat--lead li { font-size: 1.06rem; }

/* Blocs « par service » */
.dept { display: grid; gap: 0.4rem; padding-top: 1.1rem; border-top: 3px solid var(--c-brand); }
.dept h3 { margin-bottom: 0; }
.dept p { color: var(--c-muted); margin-bottom: 0; }

/* Logo du produit Viridem (largeur naturelle : 300 px) */
.product-logo {
  display: grid;
  place-items: center;
  background: var(--c-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
}
.product-logo img { width: 100%; max-width: 260px; height: auto; }

/* ---------- Réalisations ---------- */
.stories {
  display: grid;
  gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (max-width: 599.98px) { .stories { grid-template-columns: 1fr; } }
.story { border-top: 3px solid var(--c-ink); padding-top: 1.1rem; min-width: 0; max-width: none; }
.story .wc-eyebrow { margin-bottom: 0.35rem; }
.story h3 { margin-bottom: 0.5rem; }
.story p { color: var(--c-ink); }
.story p:last-child { margin-bottom: 0; }
.story__meta { color: var(--c-muted); font-size: 0.95rem; }

/* Variante en lignes éditoriales (page Réalisations) : titre à gauche, récit à droite. */
.stories--rows { grid-template-columns: 1fr; gap: 0; border-bottom: 1px solid var(--line); }
.stories--rows .story {
  border-top: 1px solid var(--line);
  padding-top: 0;
  padding-block: clamp(1.6rem, 1.1rem + 2vw, 2.6rem);
}
.story__head h2 { margin-bottom: 0.6rem; }
.story__body { min-width: 0; }
.story__body > :last-child { margin-bottom: 0; }

@media (min-width: 880px) {
  .stories--rows .story {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.5fr);
    gap: clamp(2rem, 0.5rem + 3.5vw, 4rem);
    align-items: start;
  }
}

/* ---------- Mur de clients ----------
   21 logos : 3 ou 7 colonnes, les deux diviseurs de 21 — jamais de dernière rangée bancale.
   Le mur déborde de la colonne éditoriale et occupe toute la largeur du conteneur. */
.logos {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin: clamp(2rem, 1.4rem + 2vw, 3rem) 0 0;
}
@media (min-width: 900px) { .logos { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.logos li { margin: 0; max-width: none; }
.logos__tile {
  display: grid;
  place-items: center;
  height: 100%;
  aspect-ratio: 3 / 2;
  padding: 0.85rem;
  background: var(--c-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.logos img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Équipe ---------- */
.team {
  display: grid;
  gap: clamp(1rem, 0.6rem + 1.5vw, 1.75rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 680px) { .team { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.team li { margin: 0; max-width: none; }
.team img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 45%;
  border-radius: var(--radius);
  background: var(--c-surface-alt);
  margin-bottom: 0.7rem;
}
/* min-height de deux lignes : les fonctions s'alignent d'un portrait à l'autre,
   que le nom tienne sur une ligne (Jordan Daigle) ou sur deux (Daniel Boissonneault). */
.team__name { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; line-height: 1.3; min-height: 2.6em; color: var(--c-ink); }
.team__role { display: block; color: var(--c-muted); font-size: 0.95rem; line-height: 1.4; }

/* Bande photo d'équipe (largeur naturelle : 1280 px) */
.band { display: block; width: 100%; max-width: 1180px; height: auto; margin: clamp(2rem, 1.4rem + 2vw, 3rem) auto 0; }

/* ---------- Valeurs ---------- */
.values { display: grid; gap: 0; margin: 0; }
.values > div { padding-block: 1.1rem; border-top: 1px solid var(--line); display: grid; gap: 0.3rem; }
.values > div:last-child { border-bottom: 1px solid var(--line); }
.values dt { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; color: var(--c-brand-ink); }
.values dd { margin: 0; color: var(--c-ink); }

@media (min-width: 720px) {
  .values > div { grid-template-columns: minmax(0, 210px) minmax(0, 1fr); gap: 0.3rem 2rem; align-items: baseline; }
}

/* ---------- Galerie ---------- */
.wc-gallery img { border-radius: var(--radius); }
.gallery--duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 519.98px) { .gallery--duo { grid-template-columns: 1fr; } }
.gallery-note { color: var(--c-muted); font-size: 0.95rem; margin-top: 0.9rem; margin-bottom: 0; }

/* ---------- Filtres ---------- */
.wc-filter { margin-bottom: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); }
.wc-filter button { border-color: var(--line-strong); }
.wc-filter button[aria-pressed="true"] { border-color: var(--c-ink); }

/* ---------- Coordonnées et formulaire ---------- */
.contact-grid { display: grid; gap: clamp(2rem, 1rem + 3vw, 3.5rem); }
@media (min-width: 940px) { .contact-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; } }

.wc-contact { gap: 1.1rem; }
.wc-contact dd { font-size: 1.06rem; }
.social-list { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.social-list li { max-width: none; }
.social-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 1rem;
  border: 2px solid var(--line-strong);
  border-radius: 999px;
  color: var(--c-ink);
  text-decoration: none;
  font-weight: 600;
}
.social-list a:hover { background: var(--c-ink); color: var(--c-surface); border-color: var(--c-ink); }

.form-card {
  background: var(--c-surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 1rem + 1.6vw, 2.25rem);
  scroll-margin-top: 96px;
}
.form-card h2 { margin-bottom: 0.4rem; }
.form-card > .wc-lead { margin-bottom: 1.5rem; }
.wc-form { max-width: none; }
.wc-form [type="submit"] { margin-top: 0.25rem; }
/* Case à cocher alignée sur la PREMIÈRE ligne du libellé (il en fait deux). */
.wc-form .wc-choice { align-items: flex-start; }
.wc-form .wc-choice input { margin-top: 0.18em; }

/* ---------- Bande d'appel à l'action finale ----------
   Filet rouge en haut + hairline sous la bande : elle ne se fond pas dans le pied de page,
   qui partage pourtant le même fond sombre. */
.cta { border-top: 4px solid var(--c-brand); padding-block: clamp(2.5rem, 2rem + 2vw, 3.75rem); }
.cta .wc-container { display: grid; gap: 1.5rem; }
.cta h2 { max-width: 18ch; margin-bottom: 0.5rem; }
.cta p { margin-bottom: 0; }
.cta .wc-actions { align-content: start; }
@media (min-width: 900px) {
  .cta .wc-container { grid-template-columns: minmax(0, 1fr) auto; gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: center; }
}

/* ---------- Pied de page ---------- */
.wc-footer { border-top: 1px solid var(--line-dark); }
.wc-footer__grid { gap: 2rem clamp(1.5rem, 1rem + 2vw, 3rem); }
.wc-footer p { color: var(--c-on-dark-muted); max-width: 34ch; }
.wc-footer__legal { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; align-items: center; }
.wc-footer__legal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--c-on-dark-muted); }
.wc-footer__legal a:hover { color: var(--c-on-dark); }

/* ---------- Barre d'actions mobile ---------- */
.wc-actionbar a { font-size: 0.92rem; }
.wc-actionbar svg { width: 1.05em; height: 1.05em; flex: none; }

/* ---------- Pages légales ---------- */
.legal { max-width: 760px; }
.legal h2 {
  font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.85rem);
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 3px solid var(--c-brand);
}
.legal > h2:first-child { margin-top: 0; }
.legal h3 { margin-top: 1.75rem; color: var(--c-ink); }
.legal p, .legal li { max-width: 68ch; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: 0.35rem; }
.legal__updated { color: var(--c-muted); font-size: 0.95rem; margin-top: 2rem; }
.legal__toc { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0 0 2rem; }
.legal__toc li { max-width: none; margin: 0; }
.legal__toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 1rem;
  border: 2px solid var(--line-strong);
  border-radius: 999px;
  color: var(--c-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.97rem;
}
.legal__toc a:hover { background: var(--c-ink); color: var(--c-surface); border-color: var(--c-ink); }

/* ---------- Divers ---------- */
/* 4 étapes : 2 × 2, jamais 3 + 1. */
.wc-steps { grid-template-columns: 1fr; gap: clamp(1.25rem, 1rem + 1vw, 2rem) clamp(1.5rem, 1rem + 2vw, 3rem); }
@media (min-width: 620px) { .wc-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wc-steps li p { color: var(--c-muted); margin-bottom: 0; }
.wc-steps li h3 { margin-bottom: 0.35rem; }
.wc-section--dark .wc-steps li p { color: var(--c-on-dark-muted); }
.stack-sm > * + * { margin-top: 0.75rem; }
.mb-0 { margin-bottom: 0; }
