/* ════════════════════════════════════════════════════════════════════════════
   SITE PUBLIC — STYLE « SUMI » : encre, papier, lumière (24/11/2026)
   ────────────────────────────────────────────────────────────────────────────
   Même langage que le style Sumi de l'ERP (admin/theme-sumi.css) : l'encre
   sur le papier, la grille fine, le bleu de la marque traité comme une
   LUMIÈRE (lueur, reflet, halo) — jamais comme un aplat ni comme un trait de
   couleur sur un bloc. Signature : l'ensō, le cercle d'encre zen, tracé à
   l'ouverture de la page d'accueil.

   Se pose PAR-DESSUS assets/app.css. Toutes les règles commencent par
   html.sumi : sans cette classe (posée en tête d'index.html), ce fichier ne
   fait rien. RETOUR EN ARRIÈRE : retirer la ligne qui pose la classe, ou
   localStorage « ac-site-style » = « classique ».
   Mouvements : assets/sumi.js ; tout s'arrête avec prefers-reduced-motion.
   ════════════════════════════════════════════════════════════════════════════ */

/* ── 1. Jetons ─────────────────────────────────────────────────────────── */
html.sumi {
  --encre: #1c1538; --encre-2: #2e2656; --papier: #f5f5f2; --papier-2: #efefea; --carte: #fbfbf9;
  --filet: #dcdcd5; --filet-l: #e6e6e0; --gris: #6a6a64; --gris-2: #3d3d39;
  --marque: #312782; --marque-l: #5a50e6; --lueur: rgba(106,95,240,.55);
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --titre: 'Inter Tight', 'Inter', 'Segoe UI', system-ui, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);

  /* Les variables d'app.css repointées : la plus grande partie du site suit. */
  --navy: #1c1538; --navy-mid: #1c1538; --navy-light: #2e2656; --blue: #1c1538; --blue-dark: #120d26;
  --indigo: #312782; --accent-light: #b3acff;
  --gold: #312782; --gold-light: #5a50e6; --gold-dark: #1c1538; --gold-pale: rgba(49,39,130,.07);
  --cream: #f5f5f2; --paper-2: #efefea; --white: #fbfbf9;
  --text-dark: #1c1538; --text-mid: #3d3d39; --text-light: #6a6a64;
  --border: #dcdcd5; --line-soft: #e6e6e0; --shadow: rgba(28,21,56,.08); --shellstone: #dcdcd5;
  --font-display: var(--titre);
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius-sm: 2px; --radius-md: 3px;
  --grad-royal: linear-gradient(180deg, #211a42 0%, #140f2a 100%);
  --grad-sapphire: linear-gradient(180deg, #251d4d 0%, #1c1538 100%);
  --grad-gold: linear-gradient(180deg, #251d4d 0%, #1c1538 100%);
}
html.sumi[dir="rtl"], html.sumi[lang="ar"] { --titre: 'Cairo', 'Inter Tight', system-ui, sans-serif; }

/* ── 2. Papier, trame, typographie ─────────────────────────────────────── */
html.sumi body {
  background-color: var(--papier);
  color: var(--encre);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
}
/* La trame Sumi d'origine : une grille fine, presque invisible (le client l'a préférée,
   le 24/11/2026, aux motifs essayés ensuite). ⚠️ En FOND DU BODY, jamais en calque fixe :
   un body::before fixe et masqué se peignait par-dessus le contenu sur téléphone. */
html.sumi body {
  background-image:
    linear-gradient(180deg, rgba(245,245,242,0) 0, var(--papier) 1400px),
    linear-gradient(to right, rgba(28,21,56,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(28,21,56,.045) 1px, transparent 1px);
  background-size: 100% 100%, 96px 96px, 96px 96px;
  background-repeat: no-repeat, repeat, repeat;
}
html.sumi .app, html.sumi .main-content, html.sumi .page { background: transparent; }
html.sumi h1, html.sumi h2, html.sumi h3, html.sumi .home-title, html.sumi .gc-title,
html.sumi .refs-title, html.sumi .agency-headline, html.sumi .pole-header-name {
  font-family: var(--titre); letter-spacing: -.025em; font-weight: 600;
}
html.sumi .home-title em, html.sumi .agency-headline em, html.sumi h2 em {
  font-style: normal; color: inherit;
  background: linear-gradient(transparent 62%, rgba(90,80,230,.18) 62%, rgba(90,80,230,.18) 92%, transparent 92%);
}
/* Petits libellés : la voix mono, numérotée. */
html.sumi .home-eyebrow, html.sumi .agency-eyebrow, html.sumi .gc-eyebrow, html.sumi .refs-eyebrow,
html.sumi .pole-card-sub, html.sumi .pole-card-count, html.sumi .refs-stat-label,
html.sumi .pole-header-sub, html.sumi .footer-col-h {
  font-family: var(--mono) !important; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
}
html.sumi .home-eyebrow, html.sumi .agency-eyebrow, html.sumi .gc-eyebrow, html.sumi .refs-eyebrow {
  font-size: .68rem; color: var(--gris); display: inline-flex; align-items: center; gap: .7rem;
}
html.sumi .home-eyebrow::before, html.sumi .agency-eyebrow::before, html.sumi .gc-eyebrow::before, html.sumi .refs-eyebrow::before {
  content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6;
}
html.sumi ::selection { background: var(--encre); color: var(--papier); }
html.sumi :focus-visible { outline: 2px solid var(--marque-l); outline-offset: 3px; box-shadow: 0 0 0 6px rgba(90,80,230,.15); }

/* ── 3. Barre d'information et en-tête ─────────────────────────────────── */
/* La barre d'information GARDE SON ROUGE (demande du client, 24/11/2026) : couleurs
   d'app.css inchangées ; seule la police passe en mono, comme les autres libellés. */
html.sumi .announce-bar { font-family: var(--mono); letter-spacing: .04em; }
html.sumi .masthead {
  background: rgba(245,245,242,.78) !important;
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--filet) !important; box-shadow: none !important;
  transition: background .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
html.sumi.sumi-defile .masthead { background: rgba(245,245,242,.92) !important; box-shadow: 0 10px 30px -22px rgba(28,21,56,.5) !important; }
/* Logo AGRANDI (demande du client, 24/11/2026). Le site utilise désormais
   images/logo-attractcom-serre.svg, au cadre resserré sur le dessin : l'ancien fichier
   avait 46 % de marges vides, compensées dans app.css par une boîte de 232 px et des
   marges négatives. On pose donc une vraie hauteur, sans marge négative. */
html.sumi .mast-logo-img { height: 112px !important; width: auto !important; max-width: none !important; margin: 0 !important;
  transition: transform .5s var(--ease-out), height .4s var(--ease-out); }
html.sumi.sumi-defile .mast-logo-img { height: 88px !important; }
@media (max-width: 900px) { html.sumi .mast-logo-img { height: 96px !important; } html.sumi.sumi-defile .mast-logo-img { height: 76px !important; } }
html.sumi .sidebar-logo-img img { width: 200px !important; max-width: 86% !important; height: auto !important; }
html.sumi .site-footer .footer-brand img, html.sumi .footer-logo { height: 112px !important; width: auto !important; max-width: 260px !important; }
html.sumi .mast-logo:hover .mast-logo-img { transform: rotate(-2deg) scale(1.02); }
html.sumi .mast-icon, html.sumi .cart-btn, html.sumi .sub-btn, html.sumi .mast-burger, html.sumi .lang-wrap > button {
  background: transparent !important; color: var(--encre) !important; border: 1px solid var(--filet) !important;
  border-radius: 999px !important; box-shadow: none !important;
  transition: background .3s var(--ease-out), color .3s var(--ease-out), border-color .3s, transform .3s var(--ease-out) !important;
}
html.sumi .cart-btn svg, html.sumi .sub-btn svg, html.sumi .mast-icon svg { stroke: currentColor !important; }
html.sumi .mast-icon:hover, html.sumi .cart-btn:hover, html.sumi .sub-btn:hover, html.sumi .mast-burger:hover, html.sumi .lang-wrap > button:hover {
  background: var(--encre) !important; color: var(--papier) !important; border-color: var(--encre) !important;
  transform: translateY(-1px) !important; filter: none !important;
}
/* Fil de lumière : progression de lecture, sous l'en-tête (posé par sumi.js). */
html.sumi .sumi-progres {
  position: absolute; inset-inline-start: 0; bottom: -1px; height: 1px; width: 100%;
  transform-origin: 0 50%; transform: scaleX(var(--p, 0)); pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--marque-l) 30%, #b3acff);
  box-shadow: 0 0 10px 1px var(--lueur);
}
html.sumi[dir="rtl"] .sumi-progres { transform-origin: 100% 50%; }

/* ── 4. Héro d'accueil : l'ensō et la nuit d'encre ─────────────────────── */
html.sumi .home-hero {
  border-radius: 3px; background: var(--encre); min-height: min(78vh, 640px);
  box-shadow: 0 40px 80px -50px rgba(28,21,56,.7); isolation: isolate;
}
html.sumi .hero-photo { filter: grayscale(1) contrast(1.08) brightness(.82); transform: scale(1.06);
  transition: opacity 1.6s ease, transform 7s linear; }
html.sumi .hero-photo.active { transform: scale(1); }
html.sumi .hero-overlay {
  background:
    radial-gradient(60% 80% at 78% 40%, rgba(90,80,230,.22), transparent 60%),
    linear-gradient(100deg, #1c1538 0%, #1c1538 44%, rgba(28,21,56,.78) 58%, rgba(28,21,56,.15) 80%, rgba(28,21,56,.35) 100%);
}
/* Arabe : le texte est à droite — la photo et le dégradé passent à gauche. */
html.sumi[dir="rtl"] .hero-photos { inset: 0 auto 0 0; }
html.sumi[dir="rtl"] .hero-overlay {
  background:
    radial-gradient(60% 80% at 22% 40%, rgba(90,80,230,.22), transparent 60%),
    linear-gradient(260deg, #1c1538 0%, #1c1538 44%, rgba(28,21,56,.78) 58%, rgba(28,21,56,.15) 80%, rgba(28,21,56,.35) 100%);
}
/* Lueur qui suit le pointeur dans le héro (--hx, --hy posés par sumi.js). */
html.sumi .home-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(420px circle at var(--hx, 70%) var(--hy, 40%), rgba(106,95,240,.20), transparent 60%);
  transition: opacity .6s; opacity: .9;
}
html.sumi .hero-content { padding: clamp(2rem, 4vw, 4rem); max-width: 64%; }
html.sumi .home-hero .home-eyebrow { color: #b3acff; }
html.sumi .home-hero .home-title { color: #f5f5f2; font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4.4rem); line-height: 1.06; font-weight: 600; margin-bottom: 1.4rem; }   /* 25/11 : la dernière ligne touchait l'accroche */
html.sumi .home-hero .home-title em { color: #fff; background: none; text-shadow: 0 0 28px rgba(143,134,255,.55); }
html.sumi .home-hero .home-tagline { color: rgba(245,245,242,.72); font-size: 1.02rem; max-width: 34rem; }
html.sumi .home-stats { gap: 0 !important; border-top: 1px solid rgba(245,245,242,.14); margin-top: 2.2rem; }
html.sumi .home-stat { animation: none !important; padding: 1rem 1.4rem 0 0; border-inline-end: 1px solid rgba(245,245,242,.12); margin-inline-end: 1.4rem; }
html.sumi .home-stat:last-child { border-inline-end: 0; margin-inline-end: 0; }
html.sumi .home-hero .home-stat-num { font-family: var(--titre); font-weight: 600; letter-spacing: -.02em; }
html.sumi .home-hero .home-stat-label { color: rgba(245,245,242,.6); font-size: .78rem; text-transform: none; letter-spacing: 0; line-height: 1.45; }
/* L'ensō (injecté par sumi.js) : tracé à l'encre de lumière. */
html.sumi .sumi-enso { position: absolute; z-index: 1; pointer-events: none;
  inset-inline-end: -4%; top: 50%; width: min(52vw, 620px); aspect-ratio: 1; transform: translateY(-50%); opacity: .9; }
html.sumi .sumi-enso path { fill: none; stroke: url(#sumiEncre); stroke-linecap: round;
  stroke-dasharray: var(--len, 2000); stroke-dashoffset: var(--len, 2000); filter: drop-shadow(0 0 10px rgba(143,134,255,.55)); }
html.sumi .sumi-enso.trace path { animation: sumiTrace 2.6s var(--ease-io) .25s forwards; }
@keyframes sumiTrace { to { stroke-dashoffset: 0; } }
/* ── 4 bis. Animation « De l'idée à l'objet » (posée par sumi.js) ─────────
   Texte à gauche, animation à droite (à gauche en arabe) ; photos gardées,
   plus transparentes, pour que le dessin se lise. Sous le texte sur téléphone. */
html.sumi .home-hero.avec-anim { min-height: min(86vh, 680px); }
html.sumi .home-hero.avec-anim .hero-content { max-width: 50%; }
html.sumi .home-hero.avec-anim .hero-photos { width: 62%; }
html.sumi .home-hero.avec-anim .hero-photo.active { opacity: .22; }
html.sumi .home-hero.avec-anim .hero-overlay {
  background: radial-gradient(55% 75% at 75% 45%, rgba(90,80,230,.26), transparent 65%),
    linear-gradient(100deg, #1c1538 0%, rgba(28,21,56,.94) 45%, rgba(28,21,56,.6) 100%); }
html.sumi[dir="rtl"] .home-hero.avec-anim .hero-overlay {
  background: radial-gradient(55% 75% at 25% 45%, rgba(90,80,230,.26), transparent 65%),
    linear-gradient(260deg, #1c1538 0%, rgba(28,21,56,.94) 45%, rgba(28,21,56,.6) 100%); }
html.sumi .sumi-anim { position: absolute; z-index: 1; inset-block: 0; inset-inline-end: 0; width: 50%; }
.ac-anim { display: flex; flex-direction: column; gap: .6rem; height: 100%; padding: clamp(1rem, 2.4vw, 1.8rem) clamp(1rem, 2.4vw, 2rem); color: #f5f5f2; }
.ac-anim-tete { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.ac-anim-titre { font: 500 .62rem/1.4 var(--mono, ui-monospace, Consolas, monospace); letter-spacing: .16em; text-transform: uppercase; color: rgba(245,245,242,.55); }
.ac-anim-titre b { color: #fff; font-weight: 500; }
.ac-anim-scenes { display: flex; gap: .4rem; flex-shrink: 0; }
.ac-anim-scenes button { all: unset; cursor: pointer; width: 7px; height: 7px; border-radius: 99px; background: rgba(245,245,242,.25); transition: width .4s, background .4s; }
.ac-anim-scenes button.on { width: 22px; background: #b3acff; box-shadow: 0 0 10px #8f86ff; }
.ac-anim-scenes button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.ac-anim-svg { flex: 1; width: 100%; min-height: 0; overflow: visible; }
.ac-anim-pied { display: flex; flex-direction: column; gap: .8rem; }
.ac-anim-legende { font: 500 1rem/1.35 var(--titre, 'Inter Tight', Inter, system-ui, sans-serif); color: rgba(245,245,242,.72); min-height: 1.35em; }
.ac-anim-legende span { font: 500 .62rem/1 var(--mono, ui-monospace, Consolas, monospace); letter-spacing: .12em; color: #b3acff; margin-inline-end: .6rem; vertical-align: 2px; }
.ac-anim-legende b { color: #fff; font-weight: 600; }
.ac-anim-legende.on { animation: acLeg .5s cubic-bezier(.16,1,.3,1); }
@keyframes acLeg { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ac-anim-etapes { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; }
.ac-anim-etape { font: 500 .56rem/1.3 var(--mono, ui-monospace, Consolas, monospace); letter-spacing: .06em; text-transform: uppercase; color: rgba(245,245,242,.4); transition: color .4s; }
.ac-anim-etape i { display: block; height: 2px; margin-bottom: .5rem; background: rgba(245,245,242,.12); border-radius: 2px; overflow: hidden; position: relative; }
.ac-anim-etape i b { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #8f86ff, #b3acff); box-shadow: 0 0 10px #8f86ff; }
.ac-anim-etape.on { color: #fff; }
/* Arabe : pas d'espacement entre lettres (il casse la liaison), barre qui se remplit de droite à gauche. */
[dir="rtl"] .ac-anim-titre, [dir="rtl"] .ac-anim-etape, [dir="rtl"] .ac-anim-legende span { letter-spacing: 0; font-family: inherit; }
[dir="rtl"] .ac-anim-titre, [dir="rtl"] .ac-anim-etape { font-size: .7rem; }
[dir="rtl"] .ac-anim-etape i b { transform-origin: 100% 50%; }
[dir="rtl"] .ac-anim-svg { direction: ltr; }

/* Coordonnées en marge : le détail new-yorkais. */
html.sumi .sumi-coord { position: absolute; z-index: 2; inset-inline-end: 1.4rem; bottom: 1.1rem;
  font: 500 .6rem/1.4 var(--mono); letter-spacing: .14em; color: rgba(245,245,242,.45); text-transform: uppercase; text-align: end; }

/* Titres qui se lèvent ligne par ligne (mots enveloppés par sumi.js). */
html.sumi .sumi-mot { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
html.sumi .sumi-mot > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 45ms + 120ms); }
html.sumi .sumi-leve .sumi-mot > span { transform: none; }

/* ── 5. Section « Qui sommes-nous » : la page d'encre ──────────────────── */
html.sumi .agency-section { background: var(--encre) !important; border-radius: 3px; color: var(--papier); overflow: hidden; }
html.sumi .agency-section::before { background: radial-gradient(50% 60% at 85% 10%, rgba(90,80,230,.25), transparent 70%) !important; opacity: 1 !important; }
html.sumi .agency-section .agency-eyebrow { color: #b3acff; }
html.sumi .agency-headline { color: #f5f5f2 !important; font-size: clamp(1.8rem, 1rem + 2.4vw, 3rem); line-height: 1.05; }
html.sumi .agency-headline em { background: none; color: #fff; text-shadow: 0 0 24px rgba(143,134,255,.5); }
html.sumi .agency-body { color: rgba(245,245,242,.7) !important; }
html.sumi .agency-pillar {
  background: rgba(245,245,242,.03) !important; border: 1px solid rgba(245,245,242,.1) !important; border-radius: 2px !important;
  transition: background .5s var(--ease-out), transform .5s var(--ease-out); position: relative; overflow: hidden;
}
html.sumi .agency-pillar:hover { background: rgba(245,245,242,.06) !important; transform: translateY(-3px); border-color: rgba(245,245,242,.18) !important; }
html.sumi .agency-pillar * { color: inherit; }
html.sumi .agency-pillar h3, html.sumi .agency-pillar strong { color: #f5f5f2; }

/* ── 6. Cartes des pôles : papier, lumière au pointeur ─────────────────── */
html.sumi .poles-grid { gap: 0 !important; border-top: 1px solid var(--filet); border-inline-start: 1px solid var(--filet); }
html.sumi .pole-card {
  background: var(--carte) !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  border-inline-end: 1px solid var(--filet) !important; border-bottom: 1px solid var(--filet) !important;
  position: relative; overflow: hidden; isolation: isolate;
  transition: background .5s var(--ease-out), color .5s var(--ease-out) !important; transform: none !important;
}
html.sumi .pole-card::before { display: none !important; }
html.sumi .pole-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s var(--ease-out);
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(90,80,230,.16), transparent 65%);
}
html.sumi .pole-card:hover::after { opacity: 1; }
html.sumi .pole-card:hover { background: #fff !important; }
html.sumi .pole-card-num { font-family: var(--mono) !important; font-size: .78rem !important; letter-spacing: .14em; color: var(--gris) !important; opacity: 1 !important; }
html.sumi .pole-card-name { font-family: var(--titre); font-size: 1.32rem !important; letter-spacing: -.02em; color: var(--encre) !important; }
html.sumi .pole-card-desc { color: var(--gris-2) !important; }
html.sumi .pole-card-arrow { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 999px;
  border: 1px solid var(--filet); color: var(--encre) !important; transition: background .4s var(--ease-out), color .4s, transform .4s var(--ease-out) !important; }
html.sumi .pole-card:hover .pole-card-arrow { background: var(--encre); color: var(--papier) !important; border-color: var(--encre); transform: translateX(4px) rotate(-45deg) !important; }
html.sumi[dir="rtl"] .pole-card:hover .pole-card-arrow { transform: translateX(-4px) rotate(45deg) !important; }

/* ── 7. Galeries, références, rubans de pôle ───────────────────────────── */
html.sumi .gc-track-outer, html.sumi .gc-wrap { border-radius: 2px !important; }
html.sumi .gc-track img, html.sumi .gc-slide img { filter: grayscale(.25) contrast(1.04); transition: filter .8s var(--ease-out), transform 1.2s var(--ease-out); }
html.sumi .gc-track > *:hover img { filter: none; transform: scale(1.03); }
html.sumi .gc-btn, html.sumi .pc-btn {
  background: rgba(28,21,56,.78) !important; color: #f5f5f2 !important; border: 1px solid rgba(245,245,242,.2) !important;
  border-radius: 999px !important; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background .3s, transform .3s var(--ease-out) !important;
}
html.sumi .gc-btn:hover, html.sumi .pc-btn:hover { background: #1c1538 !important; transform: scale(1.06); box-shadow: 0 0 22px rgba(143,134,255,.45) !important; }
html.sumi .gc-dot { background: var(--filet) !important; border-radius: 999px; transition: width .4s var(--ease-out), background .3s; }
html.sumi .gc-dot.active { background: var(--encre) !important; width: 22px !important; }
html.sumi .refs-section { background: transparent !important; border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); }
html.sumi .refs-sector {
  background: transparent !important; border: 1px solid var(--filet) !important; border-radius: 999px !important; box-shadow: none !important;
  transition: background .35s var(--ease-out), color .35s, border-color .35s !important;
}
html.sumi .refs-sector:hover { background: var(--encre) !important; border-color: var(--encre) !important; }
html.sumi .refs-sector:hover * { color: var(--papier) !important; }
html.sumi .refs-sector-name { font-family: var(--mono); letter-spacing: .06em; }
html.sumi .refs-stat-num { font-family: var(--titre) !important; font-weight: 600; letter-spacing: -.03em; color: var(--encre) !important; font-variant-numeric: tabular-nums; }
html.sumi .pole-ribbon, html.sumi .service-hero { border-radius: 3px !important; background: var(--encre) !important; }
html.sumi .pole-ribbon-photo { filter: grayscale(1) contrast(1.05) brightness(.8); }
html.sumi .pole-ribbon-overlay { background: linear-gradient(100deg, #1c1538 0%, rgba(28,21,56,.85) 45%, rgba(28,21,56,.25) 100%),
  radial-gradient(50% 70% at 85% 30%, rgba(90,80,230,.25), transparent 70%) !important; }
html.sumi .pole-ribbon .pole-header-sub { color: #b3acff !important; }
html.sumi .pole-ribbon .pole-header-num { font-family: var(--mono) !important; font-size: 1rem !important; letter-spacing: .2em; opacity: .55 !important; }

/* ── 8. Boutons : l'encre, puis la lumière ─────────────────────────────── */
html.sumi .refs-cta-btn, html.sumi .btn-devis-sm, html.sumi .store-add-btn, html.sumi .promo-card-cta,
html.sumi .subproduct-cta-block, html.sumi .sidebar-contact-btn, html.sumi .mast-cta, html.sumi .store-sort-btn.active,
html.sumi .btn-primary, html.sumi .btn-contact, html.sumi button[type="submit"] {
  background: var(--encre) !important; color: var(--papier) !important; border: 1px solid var(--encre) !important;
  border-radius: 999px !important; box-shadow: none !important; position: relative; overflow: hidden; isolation: isolate;
  transition: box-shadow .4s var(--ease-out), transform .4s var(--ease-out), color .3s !important;
}
html.sumi .refs-cta-btn::after, html.sumi .btn-devis-sm::after, html.sumi .store-add-btn::after, html.sumi .promo-card-cta::after,
html.sumi .subproduct-cta-block::after, html.sumi .mast-cta::after, html.sumi .btn-primary::after, html.sumi .btn-contact::after {
  content: ""; position: absolute; inset: 0; z-index: -1; transform: translateY(101%); transition: transform .5s var(--ease-io);
  background: linear-gradient(120deg, #312782, #5a50e6);
}
html.sumi .refs-cta-btn:hover, html.sumi .btn-devis-sm:hover, html.sumi .store-add-btn:hover, html.sumi .promo-card-cta:hover,
html.sumi .subproduct-cta-block:hover, html.sumi .mast-cta:hover, html.sumi .btn-primary:hover, html.sumi .btn-contact:hover {
  box-shadow: 0 12px 30px -12px rgba(90,80,230,.75) !important; transform: translateY(-2px);
}
html.sumi .refs-cta-btn:hover::after, html.sumi .btn-devis-sm:hover::after, html.sumi .store-add-btn:hover::after, html.sumi .promo-card-cta:hover::after,
html.sumi .subproduct-cta-block:hover::after, html.sumi .mast-cta:hover::after, html.sumi .btn-primary:hover::after, html.sumi .btn-contact:hover::after { transform: none; }
html.sumi .store-detail-btn, html.sumi .btn-back, html.sumi .store-cat-btn, html.sumi .store-sort-btn:not(.active), html.sumi .refs-f-btn {
  background: transparent !important; color: var(--encre) !important; border: 1px solid var(--filet) !important; border-radius: 999px !important;
  transition: background .3s var(--ease-out), color .3s, border-color .3s !important;
}
html.sumi .store-detail-btn:hover, html.sumi .btn-back:hover, html.sumi .store-cat-btn:hover, html.sumi .refs-f-btn:hover {
  background: var(--encre) !important; color: var(--papier) !important; border-color: var(--encre) !important;
}

/* ── 9. Pied de page : la nuit d'encre ─────────────────────────────────── */
html.sumi .site-footer { background: #140f2a !important; border-top: 0 !important; position: relative; overflow: hidden; }
html.sumi .site-footer::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(40% 120% at 50% 130%, rgba(90,80,230,.28), transparent 70%); }
html.sumi .site-footer .footer-col-h { color: rgba(245,245,242,.5) !important; }
html.sumi .site-footer a:hover, html.sumi .site-footer button:hover { color: #fff !important; text-shadow: 0 0 14px rgba(143,134,255,.7); }

/* ── 10. Cartes, tiroir, modales, bannière ─────────────────────────────── */
html.sumi .cart-drawer, html.sumi .sub-overlay { background: var(--papier) !important; }
html.sumi #ac-cookie-banner { background: rgba(28,21,56,.94) !important; border-radius: 3px !important; border: 1px solid rgba(245,245,242,.1) !important;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8) !important; }
html.sumi #ac-cookie-banner button { border-radius: 999px !important; }
html.sumi #ac-ck-accept { background: #f5f5f2 !important; color: #1c1538 !important; border: 0 !important; }
html.sumi #ac-ck-refuse { background: transparent !important; color: #f5f5f2 !important; border: 1px solid rgba(245,245,242,.3) !important; }

/* Espace abonné : papier Sumi plutôt que blanc pur. */
html.sumi .sub-overlay, html.sumi .sub-modal { background: var(--papier) !important; }
html.sumi .sub-modal-head { background: rgba(245,245,242,.9) !important; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

/* ── 11. Révélations au défilement et transition de page ──────────────── */
html.sumi .reveal-on-scroll { opacity: 0; transform: translateY(26px); filter: blur(4px);
  transition: opacity .9s var(--ease-out), transform 1s var(--ease-out), filter .9s var(--ease-out); }
html.sumi .reveal-on-scroll.is-visible { opacity: 1; transform: none; filter: none; }
html.sumi .reveal-on-scroll.d1 { transition-delay: .08s; } html.sumi .reveal-on-scroll.d2 { transition-delay: .16s; }
html.sumi .reveal-on-scroll.d3 { transition-delay: .24s; }
html.sumi .page.sumi-entre > * { animation: sumiEntre .8s var(--ease-out) both; }
html.sumi .page.sumi-entre > *:nth-child(2) { animation-delay: .06s; } html.sumi .page.sumi-entre > *:nth-child(3) { animation-delay: .12s; }
html.sumi .page.sumi-entre > *:nth-child(n+4) { animation-delay: .18s; }
@keyframes sumiEntre { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
/* Le rideau d'encre : un fil de lumière traverse l'écran au changement de page. */
html.sumi .sumi-rideau { position: fixed; inset-inline: 0; top: 0; height: 2px; z-index: 9999; pointer-events: none;
  background: linear-gradient(90deg, transparent, #5a50e6, #b3acff, transparent); box-shadow: 0 0 16px 2px var(--lueur);
  transform: translateX(-100%); }
html.sumi .sumi-rideau.passe { animation: sumiRideau .9s var(--ease-io) forwards; }
@keyframes sumiRideau { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ── 12. Pointeur d'encre (ordinateur seulement, posé par sumi.js) ─────── */
html.sumi .sumi-curseur { position: fixed; top: 0; left: 0; z-index: 9998; pointer-events: none; width: 34px; height: 34px;
  margin: -17px 0 0 -17px; border-radius: 999px; border: 1px solid rgba(28,21,56,.35);
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background .35s, border-color .35s, opacity .3s;
  mix-blend-mode: multiply; opacity: 0; }
html.sumi .sumi-curseur.vu { opacity: 1; }
html.sumi .sumi-curseur.lien { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(90,80,230,.12); border-color: rgba(90,80,230,.4); }
html.sumi .sumi-curseur.sombre { border-color: rgba(245,245,242,.5); mix-blend-mode: normal; }

/* ── 12 bis. Tablette (761–1100 px) : même ordre que le téléphone (25/11, §116) ──
   Avant, la tablette gardait les deux colonnes : les quatre arguments étaient
   écrasés en colonnes de 40 px et les mots coupés lettre par lettre. */
@media (min-width: 761px) and (max-width: 1100px) {
  html.sumi .home-hero.avec-anim { flex-direction: column; min-height: 0; }
  html.sumi .home-hero.avec-anim .hero-photos { width: 100% !important; }
  html.sumi .home-hero.avec-anim .hero-overlay { background: linear-gradient(180deg, rgba(28,21,56,.7) 0%, rgba(28,21,56,.92) 60%, #1c1538 100%) !important; }
  html.sumi .home-hero.avec-anim .hero-content { display: contents; }
  html.sumi .home-hero.avec-anim .hero-content > * { position: relative; z-index: 2; margin-inline: 2.2rem; max-width: none; }
  html.sumi .home-hero.avec-anim .home-eyebrow { order: 1; margin-top: 2rem; }
  html.sumi .home-hero.avec-anim .home-title { order: 2; font-size: clamp(2.4rem, 1rem + 3.4vw, 3.2rem); line-height: 1.1; margin-bottom: .4rem; }
  html.sumi .sumi-anim { order: 3; position: relative; inset: auto; width: 100%; max-width: 640px; height: 560px; margin-inline: auto; }
  html.sumi .home-hero.avec-anim .home-tagline { order: 4; margin-top: .8rem; max-width: 40rem; }
  html.sumi .home-hero.avec-anim .home-stats { order: 5; margin-bottom: 2.4rem; display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 1rem !important; }
  html.sumi .home-hero.avec-anim .home-stat { border-inline-end: 0; margin-inline-end: 0; padding-inline-end: 0; }
}

/* ── 13. Téléphone ─────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  html.sumi .home-hero { min-height: 78vh; }
  html.sumi .hero-content { max-width: 100%; padding: 2rem 1.4rem 3rem; }
  html.sumi .hero-photos { width: 100% !important; opacity: .45; }
  html.sumi .hero-overlay { background: linear-gradient(180deg, rgba(28,21,56,.55) 0%, #1c1538 70%) !important; }
  html.sumi .sumi-enso { width: 120vw; inset-inline-end: -45%; top: 22%; opacity: .55; }
  html.sumi .home-hero.avec-anim { flex-direction: column; min-height: 0; }
  html.sumi .home-hero.avec-anim .hero-content { max-width: 100%; padding-bottom: .5rem; }
  html.sumi .home-hero.avec-anim .hero-photos { width: 100% !important; }
  html.sumi .home-hero.avec-anim .hero-overlay { background: linear-gradient(180deg, rgba(28,21,56,.7) 0%, rgba(28,21,56,.92) 60%, #1c1538 100%) !important; }
  /* 25/11 (§116) : sur téléphone, le titre reste en haut, l'animation vient juste
     après (visible sans défiler), puis l'accroche et les quatre arguments.
     .hero-content « s'efface » (display: contents) pour que ses enfants se rangent
     autour de l'animation ; chacun reprend les marges du bloc. */
  html.sumi .home-hero.avec-anim .hero-content { display: contents; }
  html.sumi .home-hero.avec-anim .hero-content > * { position: relative; z-index: 2; margin-inline: 1.25rem; }
  html.sumi .home-hero.avec-anim .home-eyebrow { order: 1; margin-top: 1.1rem; margin-bottom: .5rem; }
  html.sumi .home-hero.avec-anim .home-title { order: 2; font-size: clamp(1.7rem, 1rem + 3.4vw, 2.3rem); line-height: 1.14; margin-bottom: 0; }
  /* Secteurs des références : « Agroalimentaire » se coupait au milieu du mot. */
  html.sumi .refs-sector { padding-inline: 8px !important; }
  html.sumi .refs-sector-name { letter-spacing: 0; font-size: .62rem; word-break: normal; overflow-wrap: normal; hyphens: manual; }
  /* Titres de section : interligne un peu plus large sur téléphone (les lignes se touchaient). */
  html.sumi .agency-headline, html.sumi .refs-title, html.sumi .gc-title, html.sumi #ac-poles h2, html.sumi .pole-card-name { line-height: 1.16 !important; }
  html.sumi .sumi-anim { position: relative; width: 100%; height: 405px; order: 3; margin-top: .2rem; }
  html.sumi .home-hero.avec-anim .home-tagline { order: 4; margin-top: .6rem; }
  html.sumi .home-hero.avec-anim .home-stats { order: 5; margin-bottom: 2rem; }
  .ac-anim-legende { font-size: .9rem; }
  .ac-anim-etape { font-size: .46rem; letter-spacing: 0; }
  html.sumi .home-stats { display: grid !important; grid-template-columns: 1fr 1fr; gap: 0 1rem !important; }
  html.sumi .home-stat { border-inline-end: 0; margin-inline-end: 0; padding-inline-end: 0; }
  /* En-tête : logo et boutons plus compacts — à 375 px la langue débordait de 13 px. */
  html.sumi .mast-logo { flex-shrink: 0 !important; }
  html.sumi .mast-logo-img, html.sumi.sumi-defile .mast-logo-img { height: 60px !important; width: auto !important; max-width: none !important; }
  html.sumi .mast-actions { gap: .25rem !important; }
  html.sumi .mast-icon, html.sumi .sub-btn { width: 34px !important; height: 34px !important; padding: 0 !important; }
  html.sumi .cart-btn { height: 34px !important; padding: 0 .5rem !important; }
  html.sumi .sumi-coord { display: none; }
  html.sumi body { background-size: 100% 100%, 64px 64px, 64px 64px; }
}

/* ── 14. Mouvement réduit : tout s'immobilise, rien ne reste caché ───────── */
@media (prefers-reduced-motion: reduce) {
  html.sumi *, html.sumi *::before, html.sumi *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html.sumi .reveal-on-scroll, html.sumi .sumi-mot > span { opacity: 1 !important; transform: none !important; filter: none !important; }
  html.sumi .sumi-enso path { stroke-dashoffset: 0 !important; }
  .ac-anim-legende.on { animation: none; }
  html.sumi .sumi-curseur, html.sumi .sumi-rideau { display: none !important; }
}

/* ── 14. Rubriques sur la même page (25/11, §116 ; §120) ──────────────────
   Téléphone et tablette (≤ 1100 px) : le menu burger de l'en-tête donne déjà
   Accueil, L'Agence, Nos Pôles, Références… → pas de rangée de boutons en
   double sous l'en-tête (demande client 25/11, §120). Les entrées du burger
   font défiler jusqu'à la section sur l'accueil (allerA, app.js). */
@media (max-width: 1100px) {
  .mast-nav { display: none !important; }
}
/* Boutons « Découvrir l'agence en détail » / « Toutes nos références » au bout des sections. */
.ac-voir-plus { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.2rem; padding: .7rem 1.2rem; border-radius: 99px; font: 600 .9rem/1.2 var(--titre, 'Inter Tight', Inter, system-ui, sans-serif); color: #fff; background: #312782; box-shadow: 0 10px 24px rgba(49,39,130,.25); }
.ac-voir-plus:hover { background: #5a50e6; }
.ac-voir-plus:focus-visible { outline: 2px solid #8f86ff; outline-offset: 3px; }
.refs-section .ac-voir-plus { display: flex; width: max-content; margin: 1.6rem auto 0; }
/* Les ancres arrivent sous l'en-tête collé, pas dessous. */
#ac-agence, #ac-poles, #refs-section { scroll-margin-top: 140px; }
@media (max-width: 760px) { #ac-agence, #ac-poles, #refs-section { scroll-margin-top: 96px; } }
/* Flèche des boutons dans le sens de lecture ; en arabe, chiffres « 150+ » isolés et pas d'espacement des lettres (casse la liaison). */
.ac-voir-plus::after { content: '→'; }
[dir="rtl"] .ac-voir-plus::after { content: '←'; }
.refs-stat-num, .agency-pillar-num, .home-stat-num { unicode-bidi: isolate; direction: ltr; }
[dir="rtl"] .refs-stat-label, [dir="rtl"] .refs-sector-name, [dir="rtl"] .refs-eyebrow, [dir="rtl"] .agency-eyebrow, [dir="rtl"] .home-eyebrow, [dir="rtl"] .gc-eyebrow, [dir="rtl"] .mast-link { letter-spacing: 0 !important; }

/* Lien vers la page référencée du service affiché (25/11, §117). */
.ac-lien-seo { margin: 2rem 0 0; font-size: .85rem; }
.ac-lien-seo a { color: #5a50e6; text-decoration: underline; text-underline-offset: 3px; }
