/* =====================================================================
   Agentique Québec — « Qui sommes-nous » et « About us » : coupe et élévation (refonte du 15 octobre 2026)
   Chargée après /assets/premium/aq-premium.css. L'histoire se lit comme la coupe d'un bâtiment :
   - héro : la table de travail, le trait de coupe A-A posé sur la photo ;
   - le fondateur : le portrait coté comme le personnage à l'échelle d'une élévation, les quatre rôles comme
     les niveaux d'une coupe, le parcours en cartouche ;
   - les valeurs : une élévation structurale (poutre, quatre poteaux sous leurs axes A à D, semelle) ;
   - les guides : deux détails renvoyés depuis la coupe ;
   - l'appel final : le cartouche de la feuille.
   Règle d'or : aucune couleur de texte dans un .calque (le verre marine les donne), aucune règle opacity,
   transform ou display sur .calque.
   ===================================================================== */

/* ---------------------------------------------------------------------
   HÉRO
   --------------------------------------------------------------------- */
.qsn-entete .aq-entete-cadre { min-height: clamp(600px, 86svh, 900px); }
.qsn-entete .aq-entete-photo img { object-position: 50% 58%; }
.qsn-entete-panneau { max-width: min(800px, 100%); }
.qsn-entete-panneau h1 { max-width: 15ch; margin-bottom: 26px; }
.qsn-lead {
  max-width: 58ch; margin-bottom: 16px; padding-left: 18px;
  border-left: 2px solid var(--cyan-500);
  font-size: clamp(1.04rem, .97rem + .3vw, 1.2rem); font-weight: 600; line-height: 1.5; letter-spacing: -.005em;
  color: #102238;
}
/* Page anglaise : l'introduction est une phrase longue, posée plus légère */
.qsn-lead--long { font-weight: 520; font-size: clamp(1.02rem, .96rem + .25vw, 1.14rem); line-height: 1.55; color: #16263b; }
.qsn-entete .aq-entete-texte { max-width: 62ch; font-size: clamp(1rem, .95rem + .2vw, 1.08rem); line-height: 1.66; color: #27364b; }

/* Trait de coupe A-A posé sur la photo (grand écran) : il annonce la coupe dessinée sur la feuille */
.qsn-trait-coupe {
  position: absolute; z-index: 0; pointer-events: none;
  top: var(--marge-panneau); bottom: var(--marge-panneau); right: clamp(40px, 6vw, 108px);
  width: 68px; display: flex; flex-direction: column; align-items: center;
}
.intro .qsn-trait-coupe { visibility: hidden; }
.qsn-trait-bout { flex: none; overflow: visible; }
.qsn-trait-bout circle { fill: rgba(10, 22, 40, .42); stroke: var(--cyan-400); stroke-width: 1.5px; }
.qsn-trait-bout text { fill: #fff; font: 700 13px/1 var(--font-text); text-anchor: middle; letter-spacing: .02em; }
.qsn-trait-fort { fill: none; stroke: var(--cyan-400); stroke-width: 3px; stroke-linecap: butt; }
.qsn-trait-tige { fill: none; stroke: var(--cyan-400); stroke-width: 2px; }
.qsn-trait-fleche { fill: var(--cyan-400); }
.qsn-trait-ligne {
  flex: 1; width: 1.5px;
  background: repeating-linear-gradient(to bottom, rgba(0, 212, 255, .85) 0 18px, transparent 18px 24px, rgba(0, 212, 255, .85) 24px 27px, transparent 27px 33px);
  transform-origin: 50% 0;
}

/* ---------------------------------------------------------------------
   LE FONDATEUR
   --------------------------------------------------------------------- */
.founder-inner {
  display: grid; align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .78fr);
  grid-template-rows: auto 1fr;
  column-gap: clamp(40px, 6vw, 104px);
}
.qsn-fondateur-tete { grid-column: 1; grid-row: 1; max-width: none; margin-bottom: clamp(30px, 3.4vw, 44px); }
.qsn-fondateur-tete h2 { font-size: clamp(2.1rem, 3.5vw, 3.05rem); line-height: 1.08; }

/* Portrait : à droite, collant, coté comme le personnage à l'échelle d'une élévation */
.founder-portrait {
  grid-column: 2; grid-row: 1 / span 2;
  position: sticky; top: calc(var(--nav-h) + 30px);
  padding: 0 46px 46px 0;
}
.founder-cadre { position: relative; width: min(100%, calc((100svh - var(--nav-h) - 136px) * 2 / 3)); margin-left: auto; }
.founder-photo {
  position: relative; overflow: hidden; border-radius: 28px;
  background: #cfd5dc; box-shadow: var(--ombre-3);
}
.founder-photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4), inset 0 0 0 2px rgba(10, 22, 40, .05); pointer-events: none; }
.founder-photo img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; }
.founder-cotes { position: absolute; left: 0; top: 0; width: 100%; height: auto; aspect-ratio: 2 / 3; overflow: visible; pointer-events: none; }
.founder-cotes line, .founder-cotes path, .founder-cotes circle { fill: none; stroke: var(--marine-900); vector-effect: non-scaling-stroke; }
.founder-cotes .attache { stroke-width: .8px; stroke-opacity: .42; }
.founder-cotes .trait { stroke-width: 1px; stroke-opacity: .62; }
.founder-cotes .tic { stroke-width: 1.6px; stroke-opacity: .75; }
.founder-cotes text {
  font-family: var(--font-text); font-size: 10.5px; font-weight: 600; letter-spacing: .05em; font-variant-numeric: tabular-nums;
  fill: var(--ardoise-600); text-anchor: middle; dominant-baseline: middle;
}
.founder-cotes .cote--h text { dominant-baseline: auto; }
.founder-cotes .bulle-detail circle { fill: var(--fond); stroke-width: 1.2px; stroke-opacity: .7; }
.founder-cotes .bulle-detail line { stroke-width: 1px; stroke-opacity: .55; }
.founder-cotes .bulle-num { font-size: 13px; font-weight: 700; fill: var(--marine-900); dominant-baseline: auto; }
.founder-cotes .bulle-feuille { font-size: 8.5px; font-weight: 650; dominant-baseline: auto; }

/* Le texte : posé sur le papier, avec un voile qui efface le dessin derrière la lecture */
.founder-copy {
  grid-column: 1; grid-row: 2;
  position: relative; isolation: isolate; max-width: 68ch;
  font-size: 1.0625rem; line-height: 1.75; color: var(--texte-fond);
}
.founder-copy::before {
  content: ""; position: absolute; z-index: -1; inset: -30px -40px; border-radius: 48px;
  background: var(--halo-fond); filter: blur(20px); pointer-events: none;
}
.founder-copy > * + * { margin-top: 1.05em; }
.founder-name {
  padding-bottom: 18px; border-bottom: 1px solid rgba(10, 22, 40, .14);
  font-size: 1.08rem; font-weight: 720; letter-spacing: -.005em; line-height: 1.45; color: var(--accent-fond);
}
.founder-copy > .founder-name + p { margin-top: 22px; }

/* Les quatre rôles : les niveaux d'une coupe (repère de niveau à gauche, dalle entre deux niveaux) */
.founder-copy > .qsn-niveaux { margin: 36px 0; }
.qsn-niveaux { list-style: none; padding: 6px 30px 6px 0; border-radius: 28px; }
.qsn-niveaux li {
  position: relative;
  display: grid; grid-template-columns: 124px minmax(0, 1fr); align-items: start;
  padding: 20px 0 21px;
  border-top: 1px solid var(--panneau-filet);
}
.qsn-niveaux li:first-child { border-top: 0; }
/* Bout de dalle coupée : hachures au départ de chaque niveau */
.qsn-niveaux li::before {
  content: ""; position: absolute; left: 0; top: -4px; width: 22px; height: 7px;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .34) 0 1px, transparent 1px 4px);
  border-block: 1px solid rgba(255, 255, 255, .22);
}
.qsn-niveaux li:first-child::before { display: none; }
.qsn-repere { margin: 1px 0 0 24px; overflow: visible; }
.qsn-repere-niv { stroke: rgba(255, 255, 255, .26); stroke-width: 1px; }
.qsn-repere-tri { fill: none; stroke: var(--panneau-icone); stroke-width: 1.4px; stroke-linejoin: round; }
.qsn-repere text { font: 600 11.5px/1 var(--font-text); letter-spacing: .04em; font-variant-numeric: tabular-nums; fill: var(--panneau-accent); }
.qsn-role { display: block; font-size: 1rem; line-height: 1.62; }
.qsn-role strong { font-weight: 700; }

/* Le parcours : un cartouche de quatre cases */
.founder-copy > .qsn-cartouche { margin-top: 32px; }
.qsn-cartouche {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden; border-radius: 16px;
  background: rgba(255, 255, 255, .86);
  box-shadow: inset 0 0 0 1px rgba(10, 22, 40, .22), var(--ombre-1);
}
.qsn-cartouche span {
  position: relative; display: flex; align-items: center; min-height: 58px;
  padding: 12px 16px 12px 38px;
  font-size: .92rem; font-weight: 650; line-height: 1.38; color: var(--marine-900);
  box-shadow: inset -1px -1px 0 rgba(10, 22, 40, .13);
}
.qsn-cartouche span::before {
  content: ""; position: absolute; left: 16px; top: 50%; width: 10px; height: 8px; margin-top: -4px;
  background: var(--cyan-700); clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.founder-copy > .qsn-profil { margin-top: 26px; }
.qsn-profil { text-wrap: balance; }
.qsn-profil a {
  display: inline; padding-block: 11px; line-height: 1.6;
  font-weight: 650; color: var(--cyan-750);
  text-decoration: underline; text-decoration-color: var(--cyan-500); text-decoration-thickness: 2px; text-underline-offset: 6px;
  transition: color var(--t-moyen) var(--ease-std), text-underline-offset var(--t-moyen) var(--ease-sortie);
}
.qsn-profil a:hover { color: var(--marine-900); text-underline-offset: 3px; }
.founder-copy > .aq-scope-note { margin-top: 18px; }
.aq-scope-note {
  padding: 15px 18px 15px 20px; border-left: 2px solid var(--cyan-500); border-radius: 0 14px 14px 0;
  background: rgba(0, 180, 216, .07);
  font-size: .9rem; line-height: 1.65; color: var(--ardoise-700);
}

/* ---------------------------------------------------------------------
   NOS VALEURS : élévation structurale
   --------------------------------------------------------------------- */
.qsn-valeurs-tete .sub { margin-top: 18px; max-width: 60ch; font-size: 1.125rem; line-height: 1.6; color: var(--texte-fond); }
.qsn-portique {
  position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px;
  margin-top: 108px; padding-bottom: 30px;
}
.qsn-poutre {
  position: absolute; left: -16px; right: -16px; top: -17px; height: 11px; pointer-events: none;
  border: 1px solid rgba(10, 22, 40, .38); border-radius: 2px;
  background: repeating-linear-gradient(-45deg, rgba(10, 22, 40, .2) 0 1px, transparent 1px 6px);
  transform-origin: 0 50%;
}
.qsn-semelle {
  position: absolute; left: -16px; right: -16px; bottom: 0; height: 24px; pointer-events: none;
  border-top: 1.5px solid rgba(10, 22, 40, .46);
  background: repeating-linear-gradient(45deg, rgba(10, 22, 40, .15) 0 1px, transparent 1px 8px);
  -webkit-mask: linear-gradient(to bottom, #000 10%, transparent); mask: linear-gradient(to bottom, #000 10%, transparent);
  transform-origin: 0 50%;
}
.value-card { position: relative; padding: 30px 26px 32px; border-radius: 14px 14px 22px 22px; }
.value-card h3 { margin-bottom: 12px; font-size: 1.18rem; }
.value-card p { font-size: .96rem; line-height: 1.62; }
.qsn-axe { position: absolute; left: 50%; top: 0; transform: translate(-50%, -100%); overflow: visible; pointer-events: none; }
.qsn-axe circle { fill: var(--fond); stroke: var(--marine-900); stroke-opacity: .55; stroke-width: 1.1px; }
.qsn-axe text { font: 650 12.5px/1 var(--font-text); fill: var(--marine-900); fill-opacity: .8; text-anchor: middle; }
.qsn-axe line { stroke: var(--marine-900); stroke-opacity: .45; stroke-width: 1px; stroke-dasharray: 10 3 2 3; }

/* ---------------------------------------------------------------------
   GUIDES : deux détails renvoyés depuis la coupe
   --------------------------------------------------------------------- */
.qsn-guides .aq-reading-intro { font-size: 1.1rem; color: var(--ardoise-600); }
.qsn-guides .aq-reading-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.aq-reading-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 30px 30px 24px; border-radius: 28px;
  text-decoration: none; color: inherit;
  transition: box-shadow .5s var(--ease-std);
}
.aq-reading-card:hover { box-shadow: var(--panneau-ombre), 0 0 0 1px var(--panneau-allume); }
.qsn-renvoi { position: absolute; top: 20px; right: 20px; overflow: visible; }
.qsn-renvoi circle, .qsn-renvoi line { fill: none; stroke: rgba(255, 255, 255, .42); stroke-width: 1.1px; }
.qsn-renvoi text { font-family: var(--font-text); text-anchor: middle; fill: var(--panneau-accent); font-variant-numeric: tabular-nums; }
.qsn-renvoi .renvoi-num { font-size: 15px; font-weight: 700; }
.qsn-renvoi .renvoi-feuille { font-size: 9px; font-weight: 650; letter-spacing: .04em; }
.aq-category { padding-right: 70px; font-size: .9rem; font-weight: 700; color: var(--panneau-accent); }
.aq-reading-card h3 { padding-right: 40px; font-size: 1.28rem; line-height: 1.32; }
.aq-reading-card p { flex: 1; font-size: .97rem; line-height: 1.62; }
.aq-read {
  display: flex; align-items: center; min-height: 44px; margin-top: 4px; padding-top: 12px;
  border-top: 1px solid var(--panneau-filet);
  font-weight: 650; color: var(--panneau-accent);
}
.aq-reading-card:hover .aq-read { text-decoration: underline; text-underline-offset: 4px; }

/* ---------------------------------------------------------------------
   APPEL FINAL : le cartouche de la feuille
   --------------------------------------------------------------------- */
.qsn-cartouche-final {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, auto);
  border-radius: 32px;
}
.qsn-cartouche-titre { padding: clamp(30px, 4.2vw, 60px); box-shadow: inset -1px 0 0 var(--panneau-filet); }
.qsn-cartouche-titre h2 { margin-bottom: 18px; }
.qsn-cartouche-titre p { max-width: 58ch; font-size: 1.08rem; line-height: 1.65; }
.calque .qsn-cartouche-titre p { color: var(--panneau-texte); }
.qsn-cartouche-action { display: flex; align-items: center; justify-content: center; padding: clamp(26px, 3.4vw, 52px); }
.qsn-cartouche-pied {
  grid-column: 1 / -1; display: flex; justify-content: flex-end;
  padding: 12px clamp(22px, 3vw, 40px); box-shadow: inset 0 1px 0 var(--panneau-filet);
}
.qsn-cartouche-codes { overflow: visible; }
.qsn-cartouche-codes text { font: 600 10.5px/1 var(--font-text); letter-spacing: .06em; font-variant-numeric: tabular-nums; fill: var(--panneau-texte-2); }
.qsn-cartouche-codes line { stroke: var(--panneau-filet); stroke-width: 1px; }

/* ---------------------------------------------------------------------
   PIED DE PAGE (contenu de production : liens et droits)
   --------------------------------------------------------------------- */
.qsn-pied .footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; }
.qsn-pied .footer-brand { display: flex; align-items: center; gap: 16px; }
.qsn-pied .footer-logo { margin-bottom: 0; }
.qsn-pied .logo-text { margin-bottom: 0; }
.qsn-pied-liens { font-size: .9rem; color: var(--pied-texte); }
.qsn-pied-liens a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--pied-lien); text-decoration: none; }
.qsn-pied-liens a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.qsn-pied .footer-bottom { justify-content: flex-start; }

/* Niveau courant (dessin d'arrière-plan) : visible seulement quand la page l'anime */
.plan .qsn-niveau { display: none; }
.plan .qsn-niveau.est-actif { display: inline; }
.plan .qsn-niveau text { font-size: 9px; font-weight: 650; fill: var(--plan-cyan); fill-opacity: .95; }

/* ---------------------------------------------------------------------
   ADAPTATIF
   --------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .qsn-trait-coupe { display: none; }
  .qsn-portique { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 112px; padding-bottom: 0; }
  .qsn-poutre, .qsn-semelle { display: none; }
}
@media (max-width: 900px) {
  .founder-inner { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 34px; }
  .qsn-fondateur-tete { margin-bottom: 0; }
  .founder-portrait { grid-column: 1; grid-row: auto; position: relative; top: auto; padding: 0 46px 46px 0; justify-self: start; width: min(100%, 470px); }
  .founder-cadre { width: 100%; margin-left: 0; }
  .founder-copy { grid-column: 1; grid-row: auto; }
}
@media (max-width: 860px) {
  .qsn-guides .aq-reading-grid { grid-template-columns: minmax(0, 1fr); }
  .qsn-cartouche-final { grid-template-columns: minmax(0, 1fr); }
  .qsn-cartouche-titre { box-shadow: inset 0 -1px 0 var(--panneau-filet); }
  .qsn-cartouche-action { justify-content: flex-start; padding-top: 24px; padding-bottom: 28px; }
  .qsn-cartouche-pied { justify-content: flex-start; }
}
@media (max-width: 700px) {
  .qsn-entete .aq-entete-cadre { min-height: 0; padding: min(58vw, 250px) 10px 10px; }
  .qsn-entete-panneau h1 { max-width: none; margin-bottom: 18px; }
  .qsn-lead { padding-left: 14px; }
  .founder-copy { font-size: 1rem; line-height: 1.72; }
  .founder-copy::before { inset: -18px -14px; filter: blur(14px); }
  .founder-portrait { padding: 0 40px 42px 0; }
  .qsn-portique { grid-template-columns: minmax(0, 1fr); row-gap: 104px; margin-top: 104px; }
  .value-card { padding: 26px 22px 28px; }
  .aq-reading-card { padding: 26px 22px 20px; }
  /* Bulle de renvoi plus petite : le titre de la carte reprend toute la largeur */
  .qsn-renvoi { top: 14px; right: 14px; width: 44px; height: 44px; }
  .aq-category { padding-right: 52px; }
  .aq-reading-card h3 { padding-right: 0; }
  .qsn-cartouche-action .btn { width: 100%; }
  .qsn-pied .footer-inner { flex-direction: column; align-items: flex-start; }
  /* Liens en rangée souple : les points de séparation (texte de production) restent dans le code mais ne
     finissent plus une ligne. */
  .qsn-pied-liens { display: flex; flex-wrap: wrap; font-size: 0; line-height: 1.2; }
  .qsn-pied-liens a { margin-right: 18px; padding: 0; font-size: .92rem; }
  .qsn-fondateur-tete h2 { font-size: min(2.1rem, 8.9vw); text-wrap: wrap; }
}
@media (max-width: 560px) {
  .qsn-niveaux { padding: 4px 18px 4px 0; }
  .qsn-niveaux li { grid-template-columns: minmax(0, 1fr); row-gap: 8px; padding: 18px 0 19px 20px; }
  .qsn-repere { margin-left: 0; }
  .qsn-cartouche { grid-template-columns: minmax(0, 1fr); }
}

/* Sans flou, transparence réduite ou mouvement réduit : tout reste visible et immobile */
@media (prefers-reduced-motion: reduce) {
  .aq-reading-card, .qsn-profil a { transition: none; }
}
