/* ==========================================================================
   Grapheva — Pages pôle (redesign Figma « Pôle 01 … 04 — Desktop 1440 »)
   Se charge APRÈS css/home.css, dont elle réutilise l'en-tête, le pied de
   page, les boutons, la bande défilante et les apparitions au scroll.
   ========================================================================== */

/* Les pages pôle sont sur fond noir pur, là où l'accueil est sur #111. */
body.pole { background: var(--ink-deep); }

/* ==========================================================================
   Bandeau de titre
   ========================================================================== */

.pole-band {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 460px;
  padding: 148px 0 56px;
  overflow: hidden;
}
@media (min-width: 1040px) { .pole-band { padding: 172px 0 64px; } }

.pole-band-bg { position: absolute; inset: -12% 0; z-index: 0; will-change: transform; }
.pole-band-bg img { width: 100%; height: 100%; object-fit: cover; }
/* Voile horizontal (et non vertical comme sur l'accueil) : le titre occupe
   la gauche, l'image doit rester lisible à droite. */
.pole-band-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.62) 100%);
}

.pole-band-inner { position: relative; z-index: 1; max-width: 860px; }
.pole-band h1 {
  margin: 20px 0 18px;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.pole-band-sub {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.5;
}

/* ==========================================================================
   Introduction — énoncé à gauche, développement à droite
   ========================================================================== */

.pole-intro { padding: 64px 0 56px; }
@media (min-width: 1040px) { .pole-intro { padding: 88px 0 64px; } }

.pole-intro-grid { display: grid; gap: 32px; }
@media (min-width: 900px) {
  .pole-intro-grid { grid-template-columns: 560fr 536fr; gap: 96px; align-items: start; }
}
.pole-intro h2 {
  font-size: clamp(23px, 2.6vw, 32px);
  line-height: 1.28;
  letter-spacing: -0.02em;
}
.pole-intro p {
  color: #ededed;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.72;
}

/* ==========================================================================
   Bande défilante de services
   ========================================================================== */

.pole-rail-head {
  display: flex;
  justify-content: flex-start;
  padding-bottom: 52px;
}
.pole-rail-head .rail-nav { display: none; }
@media (min-width: 900px) { .pole-rail-head .rail-nav { display: flex; } }

/* La carte porte son propre fond : sur fond noir, un visuel sans cadre
   flotterait sans limite nette. */
.pole-card {
  flex: none;
  width: min(85vw, 460px);
  scroll-snap-align: start;
  background: var(--ink);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.pole-card .rail-foot { margin: 18px 0 0; padding: 0 14px 14px; }

/* Repères de lots cliquables posés sur la façade */
.lot-marks { position: absolute; inset: 0; pointer-events: none; }
.lot-marks span {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.25);
}

/* Maquette de navigateur de la carte « Landing page » */
.browser {
  position: absolute;
  inset: 28px;
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  background: var(--ink-panel);
  overflow: hidden;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 16px;
  flex: none;
}
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3a41; }
.browser-bar i:nth-child(1) { background: #4a4a52; }
.browser-url {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 500;
  font-style: normal;
  white-space: nowrap;
}
.browser-page { display: grid; gap: 10px; padding: 16px; }
.browser-hero { aspect-ratio: 372 / 155; border-radius: 4px; overflow: hidden; }
.browser-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.browser-row > div { display: grid; gap: 6px; }
.browser-thumb { aspect-ratio: 181 / 74; border-radius: 4px; overflow: hidden; }
.browser-line { height: 7px; width: 89%; border-radius: 4px; background: rgba(255, 255, 255, 0.16); }
.browser img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Prestations + Pour qui
   ========================================================================== */

/* La colonne « Pour qui » est bien plus courte que la liste : sans une marge
   basse réduite, l'écart avec la section suivante se lit comme un trou. */
.pole-services { padding: 72px 0 40px; }
.pole .cta { padding: 96px 0 110px; }

.pole-services-grid { display: grid; gap: 48px; }
@media (min-width: 900px) {
  .pole-services-grid { grid-template-columns: 620fr 476fr; gap: 96px; align-items: start; }
}

.pole-services .eyebrow { color: #ededed; }
.pole-list { margin-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.pole-list li {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  font-size: clamp(15px, 1.5vw, 16.5px);
  font-weight: 500;
  line-height: 1.5;
}

.pole-who .eyebrow { color: var(--muted); }
.pole-audience { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.pole-audience li {
  padding: 12px 20px;
  border-radius: 999px;
  background: #ededed;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}
.pole-note { margin-top: 32px; font-size: 14.5px; line-height: 1.65; }

/* ==========================================================================
   Accessibilité — mouvement réduit
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .pole-band-bg { transform: none !important; }
}

/* ==========================================================================
   Sections propres à certains pôles
   ========================================================================== */

/* Voile clair : sur les bandeaux dont la photo est déjà sombre, le voile à
   0.78 de la maquette noyait l'image. */
.pole-band--clair .pole-band-bg::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.28) 100%);
}

/* ---------- Démonstration mise en avant (vidéo, lecteur de plans) -------- */

.pole-feature { padding: 72px 0; }
@media (min-width: 1040px) { .pole-feature { padding: 110px 0; } }

.pole-feature-title {
  margin: 22px 0 20px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.pole-feature-lede {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.7;
}
.pole-feature .video-card,
.pole-feature .plan-reader { margin-top: 48px; }

/* ---------- Suite logicielle (marquee de produits) ---------------------- */

.pole-suite {
  padding: 62px 0 72px;
  overflow: hidden;
  position: relative;
}
.pole-suite h2 {
  margin: 12px 0 46px;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-align: center;
}
.pole-suite .eyebrow { text-align: center; }

.marquee-track--picto {
  gap: 72px;
  padding-right: 72px;
  color: rgba(123, 128, 135, 0.9);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.19px;
}
.marquee-track--picto span { display: inline-flex; align-items: center; gap: 14px; }
/* Les pictos sont livrés en trait clair : ils se fondent dans le libellé. */
.marquee-track--picto img { width: 26px; height: 26px; opacity: 0.85; }

.pole-suite::before,
.pole-suite::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(60px, 14vw, 200px);
  z-index: 1;
  pointer-events: none;
}
.pole-suite::before { left: 0; background: linear-gradient(90deg, var(--ink-deep), rgba(0, 0, 0, 0)); }
.pole-suite::after { right: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0), var(--ink-deep)); }

/* ---------- Catalogue ---------------------------------------------------- */

.pole-catalogue { padding: 0 0 72px; }
.catalogue-list { margin-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.catalogue-list li {
  display: grid;
  gap: 8px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}
.catalogue-num {
  color: #ededed;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.56px;
}
.catalogue-list h3 {
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.35;
  letter-spacing: -0.22px;
}
.catalogue-list p { color: #fafafa; font-size: 15px; line-height: 1.6; }
@media (min-width: 900px) {
  .catalogue-list li {
    grid-template-columns: 48px 420px 1fr;
    align-items: start;
    gap: 40px;
  }
}

/* ==========================================================================
   Page contact
   ========================================================================== */

.contact-body { padding: 64px 0 96px; }
@media (min-width: 1040px) { .contact-body { padding: 88px 0 120px; } }

.contact-grid { display: grid; gap: 56px; }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 380fr 712fr; gap: 96px; align-items: start; }
}

/* ---------- Colonne des coordonnées ---------- */

.contact-lines { margin-top: 22px; display: grid; gap: 14px; }
.contact-lines li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.86);
}
.contact-lines svg { width: 16px; height: 16px; flex: none; color: var(--muted); }

.contact-aside-sep { margin-top: 44px; }

.contact-people { margin-top: 22px; display: grid; gap: 26px; }
.contact-people li { display: grid; gap: 4px; }
.contact-people-name { font-size: 16px; font-weight: 600; }
.contact-people a { color: var(--muted); font-size: 14.5px; transition: color 150ms ease-out; }
@media (hover: hover) and (pointer: fine) { .contact-people a:hover { color: #fff; } }

/* ---------- Formulaire ---------- */

.contact-form { display: grid; gap: 20px; }
.form-row { display: grid; gap: 20px; }
@media (min-width: 620px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-field { display: grid; gap: 8px; }
.form-field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 15px;
  transition: border-color 160ms ease-out, background-color 160ms ease-out;
}
.contact-form textarea { resize: vertical; min-height: 140px; line-height: 1.6; }

/* La flèche native d'un <select> est dessinée par le système et reste claire
   sur fond sombre : on la remplace par un chevron à nous. */
.contact-form select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b8087' stroke-width='2.2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}
.contact-form option { background: var(--ink); color: #fff; }

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
  background: var(--ink-panel);
}
.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Ne colorer en rouge qu'après une tentative d'envoi : signaler « invalide »
   pendant que le visiteur tape encore est agressif et faux la plupart du temps. */
.contact-form:invalid .form-submit { cursor: pointer; }
.contact-form input:user-invalid,
.contact-form textarea:user-invalid { border-color: rgba(255, 120, 110, 0.7); }

.form-submit {
  justify-self: start;
  gap: 10px;
  margin-top: 4px;
}
.form-submit svg { width: 16px; height: 16px; }
.form-submit[disabled] { opacity: 0.6; cursor: default; }

.form-status { min-height: 1.4em; font-size: 14.5px; color: var(--muted); }
.form-status.is-success { color: #8fe0a8; }
.form-status.is-error { color: #ff9c92; }

/* ==========================================================================
   Pages partenaire (Bluebeam)
   ========================================================================== */

/* ---------- Les trois apports, en bandes numérotées ---------- */

.bb-apports { margin-top: 48px; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.bb-apports li {
  display: grid;
  gap: 10px;
  padding: 30px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}
.bb-num { color: #ededed; font-size: 13px; font-weight: 700; letter-spacing: 1.56px; }
.bb-apports h3 {
  font-size: clamp(19px, 2.3vw, 24px);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.bb-apports p { color: var(--muted); font-size: 15.5px; line-height: 1.7; max-width: 760px; }
@media (min-width: 900px) {
  .bb-apports li { grid-template-columns: 48px 360px 1fr; align-items: start; gap: 40px; }
}

/* ---------- Grille des formules ---------- */

.bb-plans { padding: 72px 0; }
@media (min-width: 1040px) { .bb-plans { padding: 96px 0 110px; } }

.bb-plan-grid {
  display: grid;
  gap: 18px;
  margin-top: 56px;
  /* auto-fit plutôt qu'un nombre figé : à quatre formules la grille tient en
     ligne sur grand écran, passe à deux puis une sans media query. */
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

.bb-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  padding: 28px 26px 26px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--ink);
}
.bb-plan.is-top { border-color: rgba(255, 255, 255, 0.28); background: var(--ink-panel); }

.bb-plan-flag {
  position: absolute;
  top: -11px;
  left: 26px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.bb-plan h3 { font-size: 22px; letter-spacing: -0.01em; }
.bb-plan-resume { color: var(--muted); font-size: 14px; line-height: 1.6; }

.bb-plan > ul { display: grid; gap: 9px; margin-top: 4px; }
.bb-plan > ul li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.84);
}
/* Coche dessinée en CSS : un SVG par ligne pour une simple puce serait du
   balisage en pure perte. */
.bb-plan > ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 9px;
  height: 5px;
  border-left: 1.6px solid var(--muted);
  border-bottom: 1.6px solid var(--muted);
  transform: rotate(-45deg);
}

.bb-plan-cta { margin-top: auto; justify-content: center; }
.bb-plan-note {
  margin-top: 32px;
  max-width: 760px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

/* ---------- Bouton secondaire ---------- */

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}
@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.45); }
}

.cta-duo { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Listes et textes des pages formulaire ---------- */

.bb-liste { display: grid; gap: 10px; margin-top: 18px; }
.bb-liste li {
  position: relative;
  padding-left: 22px;
  color: #ededed;
  font-size: 15.5px;
  line-height: 1.65;
}
.bb-liste li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 1px;
  background: var(--muted);
}

.bb-aside-lede {
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

/* ==========================================================================
   Accents de marque Bluebeam
   ==========================================================================
   #0083DB est la couleur du logo officiel. Elle sert d'accent — titres de
   rubrique, coches, formule mise en avant — sans repeindre la page : on
   reste chez Grapheva, on y présente un partenaire. */

.bb { --bb-blue: #0083db; }

.bb-logo {
  width: clamp(150px, 20vw, 210px);
  height: auto;
  margin-bottom: 22px;
}
/* Sur le bandeau, le logo remplace le titre : il porte déjà le nom. */
.bb .pole-band-inner .bb-logo { margin-bottom: 18px; }

.bb .eyebrow { color: var(--bb-blue); }
.bb .pole-band-inner .eyebrow { color: rgba(255, 255, 255, 0.7); }

.bb .bb-num,
.bb .catalogue-num { color: var(--bb-blue); }

/* Coches des formules : l'accent se lit mieux sur un trait fin que sur un aplat */
.bb .bb-plan > ul li::before {
  border-left-color: var(--bb-blue);
  border-bottom-color: var(--bb-blue);
}

.bb .bb-plan.is-top {
  border-color: var(--bb-blue);
  box-shadow: 0 0 0 1px rgba(0, 131, 219, 0.35);
}
.bb .bb-plan-flag { background: var(--bb-blue); color: #fff; }

.bb .arrow-link { color: var(--bb-blue); }

/* Le bouton principal passe au bleu de la marque sur les pages partenaire */
.bb .btn-primary { background: var(--bb-blue); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .bb .btn-primary:hover { background: #0a94ef; }
}
.bb .contact-form input:focus,
.bb .contact-form select:focus,
.bb .contact-form textarea:focus { border-color: rgba(0, 131, 219, 0.8); }

/* Filet bleu sous le bandeau : signale qu'on entre dans l'univers du partenaire */
.bb .pole-band { border-bottom: 3px solid var(--bb-blue); }
